diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-10-30 07:54:38 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-10-30 07:54:38 +0000 |
commit | 5b7c9f6a51fe9ce55b3846f1ad3e63ee333a12b6 (patch) | |
tree | 863ba13a2750fb69edb36481c129683f838e1770 /sys/pci/if_rlreg.h | |
parent | b839b1116f390c669ecb1f948656d39be198bba5 (diff) | |
download | FreeBSD-src-5b7c9f6a51fe9ce55b3846f1ad3e63ee333a12b6.zip FreeBSD-src-5b7c9f6a51fe9ce55b3846f1ad3e63ee333a12b6.tar.gz |
Fix support for cardbus cards:
- Add DRIVER_MODULE() declaration to make this driver a
child of cardbus
- Handle different width EEPROMs
The CIS parser still barfs when scanning this card, but it seems to
probe/attach correctly anyway. I can't do a traffic test just yet
since I don't have a proper crossover cable handy.
Diffstat (limited to 'sys/pci/if_rlreg.h')
-rw-r--r-- | sys/pci/if_rlreg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h index 60d1836..a023301 100644 --- a/sys/pci/if_rlreg.h +++ b/sys/pci/if_rlreg.h @@ -238,7 +238,8 @@ /* 9346 EEPROM commands */ #define RL_EECMD_WRITE 0x140 -#define RL_EECMD_READ 0x180 +#define RL_EECMD_READ_6BIT 0x180 +#define RL_EECMD_READ_8BIT 0x600 #define RL_EECMD_ERASE 0x1c0 #define RL_EE_ID 0x00 @@ -364,6 +365,7 @@ struct rl_softc { device_t rl_miibus; u_int8_t rl_unit; /* interface number */ u_int8_t rl_type; + int rl_eecmd_read; u_int8_t rl_stats_no_timeout; int rl_txthresh; struct rl_chain_data rl_cdata; |