diff options
author | yongari <yongari@FreeBSD.org> | 2008-07-02 06:29:43 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2008-07-02 06:29:43 +0000 |
commit | 84387bd2a3e0614e65b8d99cc4c5752334b4717d (patch) | |
tree | de34a8eaf63a00aa342573afe3fd2a8a53f743fa /sys/pci | |
parent | 04dc8c2e9ca4c8f78470df89b1e5bdb533e64838 (diff) | |
download | FreeBSD-src-84387bd2a3e0614e65b8d99cc4c5752334b4717d.zip FreeBSD-src-84387bd2a3e0614e65b8d99cc4c5752334b4717d.tar.gz |
Instead of allocating variables for each events/hardware flags, use
a dedicated flag that represents controller capabilities/events.
This will simplify many part of code that requires different
workaround for each controller revisions and will enhance
readability.
While I'm here move PHY wakeup code up before mii_phy_probe() which
seems to help to wake PHY in some cases.
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_rlreg.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h index 7d10dcf..1fcf6ac 100644 --- a/sys/pci/if_rlreg.h +++ b/sys/pci/if_rlreg.h @@ -807,8 +807,12 @@ struct rl_softc { struct task rl_inttask; int rl_txstart; - int rl_link; - int rl_msi; + uint32_t rl_flags; +#define RL_FLAG_MSI 0x0001 +#define RL_FLAG_INVMAR 0x0004 +#define RL_FLAG_PHYWAKE 0x0008 +#define RL_FLAG_NOJUMBO 0x0010 +#define RL_FLAG_LINK 0x8000 }; #define RL_LOCK(_sc) mtx_lock(&(_sc)->rl_mtx) |