2009-05-23 23:11:19 +04:00
|
|
|
/* $NetBSD: clockvar.h,v 1.11 2009/05/23 19:11:19 he Exp $ */
|
1995-06-28 06:44:51 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Author: Chris G. Demetriou
|
2005-02-27 03:26:58 +03:00
|
|
|
*
|
1995-06-28 06:44:51 +04:00
|
|
|
* Permission to use, copy, modify and distribute this software and
|
|
|
|
* its documentation is hereby granted, provided that both the copyright
|
|
|
|
* notice and this permission notice appear in all copies of the
|
|
|
|
* software, derivative works or modified versions, and any portions
|
|
|
|
* thereof, and that both notices appear in supporting documentation.
|
2005-02-27 03:26:58 +03:00
|
|
|
*
|
|
|
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
|
|
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
1995-06-28 06:44:51 +04:00
|
|
|
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
2005-02-27 03:26:58 +03:00
|
|
|
*
|
1995-06-28 06:44:51 +04:00
|
|
|
* Carnegie Mellon requests users of this software to return to
|
|
|
|
*
|
|
|
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
|
|
|
* School of Computer Science
|
|
|
|
* Carnegie Mellon University
|
|
|
|
* Pittsburgh PA 15213-3890
|
|
|
|
*
|
|
|
|
* any improvements or extensions that they make and grant Carnegie the
|
|
|
|
* rights to redistribute these changes.
|
|
|
|
*/
|
|
|
|
|
2009-05-23 23:11:19 +04:00
|
|
|
#include <sys/device.h>
|
|
|
|
|
1995-06-28 06:44:51 +04:00
|
|
|
/*
|
2004-02-13 14:36:08 +03:00
|
|
|
* Definitions for CPU-independent clock handling for the alpha and pmax.
|
1995-06-28 06:44:51 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1996-04-18 02:01:16 +04:00
|
|
|
* clockfns structure:
|
1995-06-28 06:44:51 +04:00
|
|
|
*
|
1996-04-18 02:01:16 +04:00
|
|
|
* function switch used by chip-independent clock code, to access
|
|
|
|
* chip-dependent routines.
|
1995-06-28 06:44:51 +04:00
|
|
|
*/
|
1996-04-18 02:01:16 +04:00
|
|
|
struct clockfns {
|
2009-05-12 18:16:35 +04:00
|
|
|
void (*cf_init)(device_t);
|
1995-06-28 06:44:51 +04:00
|
|
|
};
|
1996-04-18 02:01:16 +04:00
|
|
|
|
2009-05-12 18:16:35 +04:00
|
|
|
void clockattach(device_t, const struct clockfns *);
|