Changeset 18b6a88 in mainline for uspace/drv/nic/rtl8139/defs.h


Ignore:
Timestamp:
2018-04-15T09:35:04Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8139/defs.h

    r8ebe212 r18b6a88  
    219219static inline void rtl8139_regs_unlock(void *io_base)
    220220{
    221         pio_write_8((io_base) + CR9346, RTL8139_REGS_UNLOCKED);
     221        pio_write_8(io_base + CR9346, RTL8139_REGS_UNLOCKED);
    222222}
    223223
     
    261261/** Transmit status descriptor registers bits */
    262262enum 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 */
    278278};
    279279
     
    480480/** Mapping of HW version -> version ID */
    481481extern const struct rtl8139_hwver_map rtl8139_versions[RTL8139_VER_COUNT + 1];
    482 extern const char* model_names[RTL8139_VER_COUNT];
     482extern const char *model_names[RTL8139_VER_COUNT];
    483483
    484484/** Size in the frame header while copying from RxFIFO to Rx buffer */
Note: See TracChangeset for help on using the changeset viewer.