dev_ether.h Source File

Back to the index.

dev_ether.h
Go to the documentation of this file.
1 #ifndef TESTMACHINE_ETHER_H
2 #define TESTMACHINE_ETHER_H
3 
4 /*
5  * Definitions used by the "ether" device in GXemul.
6  *
7  * This file is in the public domain.
8  */
9 
10 
11 #define DEV_ETHER_ADDRESS 0x14000000
12 #define DEV_ETHER_LENGTH 0x8000
13 
14 #define DEV_ETHER_BUFFER 0x0000
15 #define DEV_ETHER_BUFFER_SIZE 0x4000
16 #define DEV_ETHER_STATUS 0x4000
17 #define DEV_ETHER_PACKETLENGTH 0x4010
18 #define DEV_ETHER_COMMAND 0x4020
19 #define DEV_ETHER_MAC 0x4040
20 
21 /* Status bits: */
22 #define DEV_ETHER_STATUS_PACKET_RECEIVED 1
23 #define DEV_ETHER_STATUS_MORE_PACKETS_AVAILABLE 2
24 
25 /* Commands: */
26 #define DEV_ETHER_COMMAND_RX 0
27 #define DEV_ETHER_COMMAND_TX 1
28 
29 
30 #endif /* TESTMACHINE_ETHER_H */

Generated on Sun Sep 30 2018 16:05:18 for GXemul by doxygen 1.8.13