|
Lines 45-51
Link Here
|
| 45 |
static int foo_frob(device_t, int, int); |
45 |
static int foo_frob(device_t, int, int); |
| 46 |
static int foo_twiddle(device_t, char *); |
46 |
static int foo_twiddle(device_t, char *); |
| 47 |
|
47 |
|
| 48 |
static struct device_method foo_methods[] = { |
48 |
static struct device_method_t foo_methods[] = { |
| 49 |
/* Methods from the device interface */ |
49 |
/* Methods from the device interface */ |
| 50 |
DEVMETHOD(device_probe, foo_probe), |
50 |
DEVMETHOD(device_probe, foo_probe), |
| 51 |
DEVMETHOD(device_attach, foo_attach), |
51 |
DEVMETHOD(device_attach, foo_attach), |
|
Lines 62-69
Link Here
|
| 62 |
static driver_t foo_driver { |
62 |
static driver_t foo_driver { |
| 63 |
"foo", |
63 |
"foo", |
| 64 |
foo_methods, |
64 |
foo_methods, |
| 65 |
DRIVER_TYPE_MISC, |
65 |
sizeof(struct foo_softc) |
| 66 |
sizeof(struct foo_softc), |
|
|
| 67 |
}; |
66 |
}; |
| 68 |
|
67 |
|
| 69 |
static devclass_t foo_devclass; |
68 |
static devclass_t foo_devclass; |