Changeset 2a6e4ac2 in mainline
- Timestamp:
- 2011-01-06T15:03:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc23ef6
- Parents:
- 506a805
- Location:
- uspace/srv/hw/netif/dp8390
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.c
r506a805 r2a6e4ac2 10 10 #include <byteorder.h> 11 11 #include <errno.h> 12 13 12 #include <netif_local.h> 14 13 #include <net/packet.h> 15 14 #include <packet_client.h> 16 17 15 #include "dp8390_drv.h" 18 16 #include "dp8390_port.h" 19 20 #include "local.h"21 17 #include "dp8390.h" 18 #include "ne2000.h" 22 19 23 20 /** Queues the outgoing packet. -
uspace/srv/hw/netif/dp8390/dp8390.h
r506a805 r2a6e4ac2 13 13 14 14 #include "dp8390_port.h" 15 #include "local.h"16 15 17 16 /** Input/output size. -
uspace/srv/hw/netif/dp8390/dp8390_module.c
r506a805 r2a6e4ac2 43 43 #include <ipc/ipc.h> 44 44 #include <ipc/services.h> 45 46 45 #include <net/modules.h> 47 46 #include <packet_client.h> … … 51 50 #include <netif_interface.h> 52 51 #include <netif_local.h> 53 54 52 #include "dp8390.h" 55 53 #include "dp8390_drv.h" -
uspace/srv/hw/netif/dp8390/ne2000.c
r506a805 r2a6e4ac2 9 9 #include <stdio.h> 10 10 #include <unistd.h> 11 12 11 #include "dp8390_port.h" 13 14 #include "local.h"15 12 #include "dp8390.h" 16 13 #include "ne2000.h" … … 21 18 /** Type definition of the testing function. 22 19 */ 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)); 24 21 25 22 /** 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};23 u8_t pat0[] = {0x00, 0x00, 0x00, 0x00}; 24 u8_t pat1[] = {0xFF, 0xFF, 0xFF, 0xFF}; 25 u8_t pat2[] = {0xA5, 0x5A, 0x69, 0x96}; 26 u8_t pat3[] = {0x96, 0x69, 0x5A, 0xA5}; 30 27 31 28 /** Tests 8 bit NE2000 network interface. -
uspace/srv/hw/netif/dp8390/ne2000.h
r506a805 r2a6e4ac2 11 11 12 12 #include <libarch/ddi.h> 13 14 13 #include "dp8390_port.h" 15 14 … … 61 60 * @returns The read value. 62 61 */ 63 #define inw_ne(dep, reg) (inw(dep->de_base_port +reg))62 #define inw_ne(dep, reg) (inw(dep->de_base_port + reg)) 64 63 65 64 /** Writes 1 word (2 bytes) register. … … 68 67 * @param[in] data The value to be written. 69 68 */ 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 71 struct dpeth; 72 73 int ne_probe(struct dpeth *dep); 71 74 72 75 #endif
Note:
See TracChangeset
for help on using the changeset viewer.