Changeset 2a6e4ac2 in mainline


Ignore:
Timestamp:
2011-01-06T15:03:23Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc23ef6
Parents:
506a805
Message:

cstyle & clutter removal

Location:
uspace/srv/hw/netif/dp8390
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390.c

    r506a805 r2a6e4ac2  
    1010#include <byteorder.h>
    1111#include <errno.h>
    12 
    1312#include <netif_local.h>
    1413#include <net/packet.h>
    1514#include <packet_client.h>
    16 
    1715#include "dp8390_drv.h"
    1816#include "dp8390_port.h"
    19 
    20 #include "local.h"
    2117#include "dp8390.h"
     18#include "ne2000.h"
    2219
    2320/** Queues the outgoing packet.
  • uspace/srv/hw/netif/dp8390/dp8390.h

    r506a805 r2a6e4ac2  
    1313
    1414#include "dp8390_port.h"
    15 #include "local.h"
    1615
    1716/** Input/output size.
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    r506a805 r2a6e4ac2  
    4343#include <ipc/ipc.h>
    4444#include <ipc/services.h>
    45 
    4645#include <net/modules.h>
    4746#include <packet_client.h>
     
    5150#include <netif_interface.h>
    5251#include <netif_local.h>
    53 
    5452#include "dp8390.h"
    5553#include "dp8390_drv.h"
  • uspace/srv/hw/netif/dp8390/ne2000.c

    r506a805 r2a6e4ac2  
    99#include <stdio.h>
    1010#include <unistd.h>
    11 
    1211#include "dp8390_port.h"
    13 
    14 #include "local.h"
    1512#include "dp8390.h"
    1613#include "ne2000.h"
     
    2118/** Type definition of the testing function.
    2219 */
    23 _PROTOTYPE(typedef int (*testf_t), (dpeth_t *dep, int pos, u8_t *pat)   );
     20_PROTOTYPE(typedef int (*testf_t), (dpeth_t *dep, int pos, u8_t *pat));
    2421
    2522/** Data patterns */
    26 u8_t pat0[]= {0x00, 0x00, 0x00, 0x00};
    27 u8_t pat1[]= {0xFF, 0xFF, 0xFF, 0xFF};
    28 u8_t pat2[]= {0xA5, 0x5A, 0x69, 0x96};
    29 u8_t pat3[]= {0x96, 0x69, 0x5A, 0xA5};
     23u8_t pat0[] = {0x00, 0x00, 0x00, 0x00};
     24u8_t pat1[] = {0xFF, 0xFF, 0xFF, 0xFF};
     25u8_t pat2[] = {0xA5, 0x5A, 0x69, 0x96};
     26u8_t pat3[] = {0x96, 0x69, 0x5A, 0xA5};
    3027
    3128/** Tests 8 bit NE2000 network interface.
  • uspace/srv/hw/netif/dp8390/ne2000.h

    r506a805 r2a6e4ac2  
    1111
    1212#include <libarch/ddi.h>
    13 
    1413#include "dp8390_port.h"
    1514
     
    6160 *  @returns The read value.
    6261 */
    63 #define inw_ne(dep, reg)  (inw(dep->de_base_port+reg))
     62#define inw_ne(dep, reg)  (inw(dep->de_base_port + reg))
    6463
    6564/** Writes 1 word (2 bytes) register.
     
    6867 *  @param[in] data The value to be written.
    6968 */
    70 #define outw_ne(dep, reg, data)  (outw(dep->de_base_port+reg, data))
     69#define outw_ne(dep, reg, data)  (outw(dep->de_base_port + reg, data))
     70
     71struct dpeth;
     72
     73int ne_probe(struct dpeth *dep);
    7174
    7275#endif
Note: See TracChangeset for help on using the changeset viewer.