Annotation of funnyos/other/skeleton_driver.c, Revision 1.2
1.1 nbrk 1: /*
1.2 ! nbrk 2: * $Id: skeleton_driver.c,v 1.1 2007/11/15 15:05:30 nbrk Exp $
1.1 nbrk 3: */
4: #include <sys/types.h>
5: #include <sys/device.h>
6: #include <sys/bus.h>
7:
8: #include <arch/XXX/dev/XXXreg.h>
9: #include <arch/XXX/dev/XXXvar.h>
10:
11: /*
12: * Skeleton driver.
13: */
14:
15: int XXX_attach(struct device *, uint32_t, uint8_t);
16:
17: struct driver XXX_dr = {
18: sizeof(struct XXX_dd),
19: XXX_attach,
20: NULL,
21: NULL
22: };
23:
24:
25: int
1.2 ! nbrk 26: XXX_attach(struct device *self, uint32_t loc, uint8_t flags)
1.1 nbrk 27: {
28: struct XXX_dd *ddp = self->dv_devdata;
29:
30: return(0);
31: }
32:
CVSweb