Changeset 506a805 in mainline for uspace/srv/hw/netif/dp8390/ne2000.h


Ignore:
Timestamp:
2011-01-06T14:57:42Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2a6e4ac2
Parents:
d3c9b60
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/ne2000.h

    rd3c9b60 r506a805  
    1616/** DP8390 register offset.
    1717 */
    18 #define NE_DP8390       0x00
     18#define NE_DP8390  0x00
    1919
    2020/** Data register.
    2121 */
    22 #define NE_DATA         0x10
     22#define NE_DATA  0x10
    2323
    2424/** Reset register.
    2525 */
    26 #define NE_RESET        0x1F
     26#define NE_RESET  0x1f
    2727
    2828/** NE1000 data start.
    2929 */
    30 #define NE1000_START    0x2000
     30#define NE1000_START  0x2000
    3131
    3232/** NE1000 data size.
    3333 */
    34 #define NE1000_SIZE     0x2000
     34#define NE1000_SIZE  0x2000
    3535
    3636/** NE2000 data start.
    3737 */
    38 #define NE2000_START    0x4000
     38#define NE2000_START  0x4000
    3939
    4040/** NE2000 data size.
    4141 */
    42 #define NE2000_SIZE     0x4000
     42#define NE2000_SIZE  0x4000
    4343
    4444/** Reads 1 byte register.
     
    4747 *  @returns The read value.
    4848 */
    49 #define inb_ne(dep, reg)        (inb(dep->de_base_port+reg))
     49#define inb_ne(dep, reg)  (inb(dep->de_base_port + reg))
    5050
    5151/** Writes 1 byte register.
     
    5454 *  @param[in] data The value to be written.
    5555 */
    56 #define outb_ne(dep, reg, data) (outb(dep->de_base_port+reg, data))
     56#define outb_ne(dep, reg, data)  (outb(dep->de_base_port + reg, data))
    5757
    5858/** Reads 1 word (2 bytes) register.
     
    6161 *  @returns The read value.
    6262 */
    63 #define inw_ne(dep, reg)        (inw(dep->de_base_port+reg))
     63#define inw_ne(dep, reg)  (inw(dep->de_base_port+reg))
    6464
    6565/** Writes 1 word (2 bytes) register.
     
    6868 *  @param[in] data The value to be written.
    6969 */
    70 #define outw_ne(dep, reg, data) (outw(dep->de_base_port+reg, data))
     70#define outw_ne(dep, reg, data)  (outw(dep->de_base_port+reg, data))
    7171
    72 #endif /* __NET_NETIF_NE2000_H__ */
     72#endif
    7373
    7474/** @}
Note: See TracChangeset for help on using the changeset viewer.