From e60a899d719914bd1c04c0647458145c90c8276f Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 26 Dec 2000 06:38:04 +0000 Subject: Minor newbus/style(9) cleanups. o Move the ax88190 code to its own function. o Move all device_method_t, driver_t and DRIVER_MODULE definitions to the end of files. o Wrap a few lines > 80 characters. o Use the same devclass for all ed drivers. This allows machines with multiple types of cards to have their cards numbered correctly. Before, you could wind up with two ed0's. o Protect if_edvar.h from multiple includes because I was there. --- sys/dev/ed/if_ed.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/ed/if_ed.c') diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index f978954..08e7cc1 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -67,6 +67,8 @@ #include #include +devclass_t ed_devclass; + static void ed_init __P((void *)); static int ed_ioctl __P((struct ifnet *, u_long, caddr_t)); static void ed_start __P((struct ifnet *)); -- cgit v1.1