xref: /netbsd-src/sys/dev/dec/mcclockvar.h (revision eaf783ae5ba3dfae113a5a7ab2fc2a01cb25068e)
1*eaf783aeStsutsui /* $NetBSD: mcclockvar.h,v 1.8 2011/06/04 01:43:56 tsutsui Exp $ */
217731baaScgd 
317731baaScgd /*
417731baaScgd  * Copyright (c) 1996 Carnegie-Mellon University.
517731baaScgd  * All rights reserved.
617731baaScgd  *
717731baaScgd  * Author: Chris G. Demetriou
817731baaScgd  *
917731baaScgd  * Permission to use, copy, modify and distribute this software and
1017731baaScgd  * its documentation is hereby granted, provided that both the copyright
1117731baaScgd  * notice and this permission notice appear in all copies of the
1217731baaScgd  * software, derivative works or modified versions, and any portions
1317731baaScgd  * thereof, and that both notices appear in supporting documentation.
1417731baaScgd  *
1517731baaScgd  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1617731baaScgd  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1717731baaScgd  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1817731baaScgd  *
1917731baaScgd  * Carnegie Mellon requests users of this software to return to
2017731baaScgd  *
2117731baaScgd  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2217731baaScgd  *  School of Computer Science
2317731baaScgd  *  Carnegie Mellon University
2417731baaScgd  *  Pittsburgh PA 15213-3890
2517731baaScgd  *
2617731baaScgd  * any improvements or extensions that they make and grant Carnegie the
2717731baaScgd  * rights to redistribute these changes.
2817731baaScgd  */
2971c79240Scgd 
3071c79240Scgd struct mcclock_softc {
31*eaf783aeStsutsui 	device_t sc_dev;
3271c79240Scgd 	const struct mcclock_busfns *sc_busfns;
3328b31e73Sjoerg 	struct todr_chip_handle sc_todr;
3471c79240Scgd };
3571c79240Scgd 
3671c79240Scgd struct mcclock_busfns {
3718db93c7Sperry 	void    (*mc_bf_write)(struct mcclock_softc *, u_int, u_int);
3818db93c7Sperry 	u_int   (*mc_bf_read)(struct mcclock_softc *, u_int);
3971c79240Scgd };
4071c79240Scgd 
4118db93c7Sperry void mcclock_attach(struct mcclock_softc *, const struct mcclock_busfns *);
42