summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_urlreg.h
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-07-29 02:59:06 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-07-29 02:59:06 +0000
commit4086530d708bed9831a330ef620e851147763eee (patch)
tree6873aa909058464dfa835387c25da6a352ad5951 /sys/dev/usb/if_urlreg.h
parentf97fe54aee46678bf456645edf1a98781fb6394f (diff)
Make code more portable
Diffstat (limited to 'sys/dev/usb/if_urlreg.h')
-rw-r--r--sys/dev/usb/if_urlreg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/usb/if_urlreg.h b/sys/dev/usb/if_urlreg.h
index 337703663a2..2457b452171 100644
--- a/sys/dev/usb/if_urlreg.h
+++ b/sys/dev/usb/if_urlreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_urlreg.h,v 1.3 2002/05/07 19:32:49 nate Exp $ */
+/* $OpenBSD: if_urlreg.h,v 1.4 2002/07/29 02:59:05 nate Exp $ */
/* $NetBSD: if_urlreg.h,v 1.1 2002/03/28 21:09:11 ichiro Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -131,7 +131,11 @@ typedef uWord url_rxhdr_t; /* Recive Header */
#define URL_RXHDR_PHYPKT_MASK (0x4000) /* Physical match packet */
#define URL_RXHDR_MCASTPKT_MASK (0x8000) /* Multicast packet */
+#if defined(__NetBSD__)
+#define GET_IFP(sc) (&(sc)->sc_ec.ec_if)
+#else
#define GET_IFP(sc) (&(sc)->sc_ac.ac_if)
+#endif
#define GET_MII(sc) (&(sc)->sc_mii)
struct url_chain {
@@ -174,7 +178,11 @@ struct url_softc {
struct timeval sc_rx_notice;
/* Ethernet */
+#if defined(__NetBSD__)
+ struct ethercom sc_ec; /* ethernet common */
+#else
struct arpcom sc_ac; /* ethernet common */
+#endif
struct mii_data sc_mii;
struct lock sc_mii_lock;
int sc_link;