xref: /netbsd-src/sys/dev/dec/clockvar.h (revision c41150258370d1b87db9f2a7c2c4b2a0ac41e219)
1*c4115025She /* $NetBSD: clockvar.h,v 1.11 2009/05/23 19:11:19 he Exp $ */
240e29d58Scgd 
340e29d58Scgd /*
440e29d58Scgd  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
540e29d58Scgd  * All rights reserved.
640e29d58Scgd  *
740e29d58Scgd  * Author: Chris G. Demetriou
840e29d58Scgd  *
940e29d58Scgd  * Permission to use, copy, modify and distribute this software and
1040e29d58Scgd  * its documentation is hereby granted, provided that both the copyright
1140e29d58Scgd  * notice and this permission notice appear in all copies of the
1240e29d58Scgd  * software, derivative works or modified versions, and any portions
1340e29d58Scgd  * thereof, and that both notices appear in supporting documentation.
1440e29d58Scgd  *
1540e29d58Scgd  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1640e29d58Scgd  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1740e29d58Scgd  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1840e29d58Scgd  *
1940e29d58Scgd  * Carnegie Mellon requests users of this software to return to
2040e29d58Scgd  *
2140e29d58Scgd  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2240e29d58Scgd  *  School of Computer Science
2340e29d58Scgd  *  Carnegie Mellon University
2440e29d58Scgd  *  Pittsburgh PA 15213-3890
2540e29d58Scgd  *
2640e29d58Scgd  * any improvements or extensions that they make and grant Carnegie the
2740e29d58Scgd  * rights to redistribute these changes.
2840e29d58Scgd  */
2940e29d58Scgd 
30*c4115025She #include <sys/device.h>
31*c4115025She 
3240e29d58Scgd /*
33d20841bbSwiz  * Definitions for CPU-independent clock handling for the alpha and pmax.
3440e29d58Scgd  */
3540e29d58Scgd 
3640e29d58Scgd /*
3771c79240Scgd  * clockfns structure:
3840e29d58Scgd  *
3971c79240Scgd  * function switch used by chip-independent clock code, to access
4071c79240Scgd  * chip-dependent routines.
4140e29d58Scgd  */
4271c79240Scgd struct clockfns {
43529e91fcScegger 	void	(*cf_init)(device_t);
4440e29d58Scgd };
4571c79240Scgd 
46529e91fcScegger void clockattach(device_t, const struct clockfns *);
47