Changeset 274
- Timestamp:
- Feb 13, 2011, 3:00:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mos-driver/if_mosreg.h
r273 r274 99 99 #define MOS_CTL_SLEEP 0x04 100 100 #define MOS_CTL_TX_ENB 0x08 101 /* 102 * The documentation calls this bit 'reserved', but in the FreeBSD driver 101 /* 102 * The documentation calls this bit 'reserved', but in the FreeBSD driver 103 103 * provided by the vendor, this enables the receiver. 104 104 */ … … 150 150 #define MOS_IFACE_IDX 0 151 151 152 #define MCS7730 0x0001 /* MCS7730 */153 #define MCS7830 0x0002 /* MCS7830 */152 #define MCS7730 0x0001 /* MCS7730 */ 153 #define MCS7830 0x0002 /* MCS7830 */ 154 154 155 155 #define MOS_INC(x, y) (x) = (x + 1) % y 156 156 157 157 struct mos_softc { 158 struct usb_ether 159 struct ifnetifp;158 struct usb_ether sc_ue; 159 struct ifnet ifp; 160 160 161 u_int16_t 161 u_int16_t mos_flags; 162 162 163 int 164 unsigned char 165 unsigned char 163 int mos_link; 164 unsigned char mos_ipgs[2]; 165 unsigned char mos_phyaddrs[2]; 166 166 167 struct mtx 168 struct usb_xfer 167 struct mtx sc_mtx; 168 struct usb_xfer *sc_xfer[MOS_ENDPT_MAX]; 169 169 }; 170 170 … … 173 173 #define MOS_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 174 174 #define MOS_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t) 175
Note:
See TracChangeset
for help on using the changeset viewer.