diff options
author | silby <silby@FreeBSD.org> | 2003-03-18 06:29:51 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-03-18 06:29:51 +0000 |
commit | 675a64d536e2ea0c4c219d61d4faad7c1f9bdc98 (patch) | |
tree | 01d631f3231bc0b2f6f1b665f3f88f31c01a44f9 /sys/pci/if_xlreg.h | |
parent | c67f918d581b524182a91b083f5649439eaa0815 (diff) | |
download | FreeBSD-src-675a64d536e2ea0c4c219d61d4faad7c1f9bdc98.zip FreeBSD-src-675a64d536e2ea0c4c219d61d4faad7c1f9bdc98.tar.gz |
Instead of relying on a compile time define to determine whether the xl
driver should use port or memory based IO, determine it dynamically
at runtime, preferring MMIO where possible. This helps us support newer
arches which dislike port based access better.
Tested on i386 & sparc64, with 3c900, 905, 905b, and 905C cards.
(in varying combinations by both jake and myself)
Diffstat (limited to 'sys/pci/if_xlreg.h')
-rw-r--r-- | sys/pci/if_xlreg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h index f4dadbd..f437890 100644 --- a/sys/pci/if_xlreg.h +++ b/sys/pci/if_xlreg.h @@ -570,6 +570,7 @@ struct xl_mii_frame { #define XL_FLAG_INVERT_LED_PWR 0x0020 #define XL_FLAG_INVERT_MII_PWR 0x0040 #define XL_FLAG_NO_XCVR_PWR 0x0080 +#define XL_FLAG_USE_MMIO 0x0100 #define XL_NO_XCVR_PWR_MAGICBITS 0x0900 |