Changeset 18b6a88 in mainline for uspace/drv/nic/rtl8139/defs.h
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8139/defs.h
r8ebe212 r18b6a88 219 219 static inline void rtl8139_regs_unlock(void *io_base) 220 220 { 221 pio_write_8( (io_base)+ CR9346, RTL8139_REGS_UNLOCKED);221 pio_write_8(io_base + CR9346, RTL8139_REGS_UNLOCKED); 222 222 } 223 223 … … 261 261 /** Transmit status descriptor registers bits */ 262 262 enum rtl8139_tsd { 263 TSD_CRS = (1 << 31), /**< Carrier Sense Lost */264 TSD_TABT = (1 << 30), /**< Transmit Abort */265 TSD_OWC = (1 << 29), /**< Out of Window Collision */266 TSD_CDH = (1 << 28), /**< CD Heart Beat */267 TSD_NCC_SHIFT = 24, /**< Collision Count - bit shift */268 TSD_NCC_SIZE = 4, /**< Collision Count - bit size */269 TSD_NCC_MASK = (1 << 4) -1,/**< Collision Count - bit size */270 TSD_ERTXTH_SHIFT = 16, /**< Early Tx Threshold - bit shift */271 TSD_ERTXTH_SIZE = 6, /**< Early Tx Treshold - bit size */272 TSD_TOK = (1 << 15), /**< Transmit OK */273 TSD_TUN = (1 << 14), /**< Transmit FIFO Underrun */274 TSD_OWN = (1 << 13), /**< OWN */275 TSD_SIZE_SHIFT = 0, /**< Size - bit shift */276 TSD_SIZE_SIZE = 13, /**< Size - bit size */277 TSD_SIZE_MASK = 0x1fff /**< Size - bit mask */263 TSD_CRS = (1 << 31), /**< Carrier Sense Lost */ 264 TSD_TABT = (1 << 30), /**< Transmit Abort */ 265 TSD_OWC = (1 << 29), /**< Out of Window Collision */ 266 TSD_CDH = (1 << 28), /**< CD Heart Beat */ 267 TSD_NCC_SHIFT = 24, /**< Collision Count - bit shift */ 268 TSD_NCC_SIZE = 4, /**< Collision Count - bit size */ 269 TSD_NCC_MASK = (1 << 4) - 1, /**< Collision Count - bit size */ 270 TSD_ERTXTH_SHIFT = 16, /**< Early Tx Threshold - bit shift */ 271 TSD_ERTXTH_SIZE = 6, /**< Early Tx Treshold - bit size */ 272 TSD_TOK = (1 << 15), /**< Transmit OK */ 273 TSD_TUN = (1 << 14), /**< Transmit FIFO Underrun */ 274 TSD_OWN = (1 << 13), /**< OWN */ 275 TSD_SIZE_SHIFT = 0, /**< Size - bit shift */ 276 TSD_SIZE_SIZE = 13, /**< Size - bit size */ 277 TSD_SIZE_MASK = 0x1fff /**< Size - bit mask */ 278 278 }; 279 279 … … 480 480 /** Mapping of HW version -> version ID */ 481 481 extern const struct rtl8139_hwver_map rtl8139_versions[RTL8139_VER_COUNT + 1]; 482 extern const char *model_names[RTL8139_VER_COUNT];482 extern const char *model_names[RTL8139_VER_COUNT]; 483 483 484 484 /** Size in the frame header while copying from RxFIFO to Rx buffer */
Note:
See TracChangeset
for help on using the changeset viewer.