diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2008-07-02 06:29:43 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2008-07-02 06:29:43 +0000 |
commit | 351a76f9aa2adca9e7580e5af1863ef86226a02a (patch) | |
tree | de34a8eaf63a00aa342573afe3fd2a8a53f743fa /sys/pci/if_rlreg.h | |
parent | c4a6405c88157159ca351597cf83c1a4e5502fbd (diff) | |
download | src-351a76f9aa2adca9e7580e5af1863ef86226a02a.tar.gz src-351a76f9aa2adca9e7580e5af1863ef86226a02a.zip |
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.
Notes
Notes:
svn path=/head/; revision=180171
Diffstat (limited to 'sys/pci/if_rlreg.h')
-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 7d10dcfba2bf..1fcf6ac93bbf 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) |