summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_skreg.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-12-22 20:54:48 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-12-22 20:54:48 +0000
commit18e73a0ee31aaea3d6233f0cfbfaaa6bb8b96ce7 (patch)
tree101984b331a41b8882bf8d65674555ad147f3d9d /sys/dev/pci/if_skreg.h
parenta0a99d79a29f234568671e2e29d03bf7a94595e2 (diff)
re-work PHY setup, media handling and dual-port detection.
Based on the Marvell FreeBSD driver.
Diffstat (limited to 'sys/dev/pci/if_skreg.h')
-rw-r--r--sys/dev/pci/if_skreg.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/if_skreg.h b/sys/dev/pci/if_skreg.h
index 7aea4147dcf..c9f1c1fdb53 100644
--- a/sys/dev/pci/if_skreg.h
+++ b/sys/dev/pci/if_skreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_skreg.h,v 1.25 2005/11/26 19:16:28 brad Exp $ */
+/* $OpenBSD: if_skreg.h,v 1.26 2005/12/22 20:54:47 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -320,7 +320,11 @@
#define SK_YUKON_FE 0xB7
#define SK_YUKON_FAMILY(x) ((x) & 0xB0)
-#define SK_IS_YUKON2(sc) \
+#define SK_IS_GENESIS(sc) \
+ ((sc)->sk_type == SK_GENESIS)
+#define SK_IS_YUKON(sc) \
+ ((sc)->sk_type >= SK_YUKON && (sc)->sk_type <= SK_YUKON_FE)
+#define SK_IS_YUKON2(sc) \
((sc)->sk_type >= SK_YUKON_XL && (sc)->sk_type <= SK_YUKON_FE)
/* Known revisions in SK_CONFIG */