diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-03-28 19:37:54 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-03-28 19:37:54 +0000 |
commit | 8ae9b8c2b3c5707238e312f29f7fd0ac65417a68 (patch) | |
tree | bf1bca71efa5651535bd4debbee0f0326ec7aaab /sys/dev/usb/if_kuereg.h | |
parent | 85d190436bee0a39d5c12a32c419929402e28758 (diff) |
Much cleaner sync with NetBSD. Some #if defined() magic has been sent in the
form of a diff to augustss@netbsd.org so that future syncs will be very easy.
This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet,
CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested).
Diffstat (limited to 'sys/dev/usb/if_kuereg.h')
-rw-r--r-- | sys/dev/usb/if_kuereg.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/usb/if_kuereg.h b/sys/dev/usb/if_kuereg.h index dba241d9dad..ad5cf17b517 100644 --- a/sys/dev/usb/if_kuereg.h +++ b/sys/dev/usb/if_kuereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_kuereg.h,v 1.1 2000/03/26 18:49:44 aaron Exp $ */ +/* $OpenBSD: if_kuereg.h,v 1.2 2000/03/28 19:37:48 aaron Exp $ */ /* $NetBSD: if_kuereg.h,v 1.9 2000/03/24 22:13:24 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -161,7 +161,17 @@ struct kue_cdata { struct kue_softc { USBBASEDEVICE kue_dev; +#if defined(__FreeBSD__) || defined(__OpenBSD__) struct arpcom arpcom; +#define GET_IFP(sc) (&(sc)->arpcom.ac_if) +#elif defined(__NetBSD__) + struct ethercom kue_ec; +#if NRND > 0 + rndsource_element_t rnd_source; +#endif +#define GET_IFP(sc) (&(sc)->kue_ec.ec_if) +#endif + usbd_device_handle kue_udev; usbd_interface_handle kue_iface; u_int16_t kue_vendor; |