OpenCores
URL https://opencores.org/ocsvn/wdsp/wdsp/trunk

Subversion Repositories wdsp

[/] [wdsp/] [trunk/] [sw/] [.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 parrado
 
2
#define ETH_MODER               0x00
3
#define ETH_INT_SOURCE      0x04
4
#define ETH_INT_MASK        0x08
5
#define ETH_IPGT                0x0C
6
#define ETH_IPGR1               0x10
7
#define ETH_IPGR2               0x14
8
#define ETH_PACKETLEN       0x18
9
#define ETH_COLLCONF        0x1C
10
#define ETH_TX_BD_NUM       0x20
11
#define ETH_CTRLMODER       0x24
12
#define ETH_MIIMODER        0x28
13
#define ETH_MIICOMMAND          0x2C
14
#define ETH_MIIADDRESS      0x30
15
#define ETH_MIITX_DATA      0x34
16
#define ETH_MIIRX_DATA      0x38
17
#define ETH_MIISTATUS       0x3C
18
#define ETH_MAC_ADDR0       0x40
19
#define ETH_MAC_ADDR1       0x44
20
#define ETH_HASH0_ADR       0x48
21
#define ETH_HASH1_ADR       0x4C
22
#define ETH_TXCTRL              0x50
23
 
24
#define ETH_TXBD0H              0x404
25
#define ETH_TXBD0L              0x400
26
 
27
#define ETH_RXBD0H              0x604   //this depends on TX_BD_NUM but this is the standard value
28
#define ETH_RXBD0L              0x600   //this depends on TX_BD_NUM but this is the standard value
29
 
30
//MODER BITS
31
#define ETH_RECSMALL        0x00010000
32
#define ETH_PAD                 0x00008000
33
#define ETH_HUGEN               0x00004000
34
#define ETH_CRCEN               0x00002000
35
#define ETH_DLYCRCEN        0x00001000
36
#define ETH_FULLD               0x00000400
37
#define ETH_EXDFREN             0x00000200
38
#define ETH_NOBCKOF             0x00000100
39
#define ETH_LOOPBCK             0x00000080
40
#define ETH_IFG                 0x00000040
41
#define ETH_PRO                 0x00000020
42
#define ETH_IAM                 0x00000010
43
#define ETH_BRO                 0x00000008
44
#define ETH_NOPRE               0x00000004
45
#define ETH_TXEN                0x00000002
46
#define ETH_RXEN                0x00000001
47
 
48
//INTERRUPTS BITS
49
#define ETH_RXC                 0x00000040
50
#define ETH_TXC                 0x00000020
51
#define ETH_BUSY                0x00000010
52
#define ETH_RXE                 0x00000008
53
#define ETH_RXB                 0x00000004
54
#define ETH_TXE                 0x00000002
55
#define ETH_TXB                 0x00000001
56
 
57
//BUFFER DESCRIPTOR BITS
58
#define ETH_RXBD_EMPTY      0x00008000
59
#define ETH_RXBD_IRQ        0x00004000
60
#define ETH_RXBD_WRAP       0x00002000
61
#define ETH_RXBD_CF             0x00000100
62
#define ETH_RXBD_MISS       0x00000080
63
#define ETH_RXBD_OR             0x00000040
64
#define ETH_RXBD_IS             0x00000020
65
#define ETH_RXBD_DN             0x00000010
66
#define ETH_RXBD_TL             0x00000008
67
#define ETH_RXBD_SF             0x00000004
68
#define ETH_RXBD_CRC        0x00000002
69
#define ETH_RXBD_LC             0x00000001
70
 
71
#define ETH_TXBD_READY      0x00008000
72
#define ETH_TXBD_IRQ        0x00004000
73
#define ETH_TXBD_WRAP       0x00002000
74
#define ETH_TXBD_PAD        0x00001000
75
#define ETH_TXBD_CRC        0x00000800
76
#define ETH_TXBD_UR             0x00000100
77
#define ETH_TXBD_RL             0x00000008
78
#define ETH_TXBD_LC             0x00000004
79
#define ETH_TXBD_DF             0x00000002
80
#define ETH_TXBD_CS             0x00000001
81
 
82
//user defines
83
#define OWN_MAC_ADDRESS         0x554734228892
84
#define BROADCAST_ADDRESS       0xFFFFFFFFFFFF
85
 
86
#define HDR_LEN       14
87
#define CRC_LEN       4
88
#define BD_SND  ( ETH_TXBD_READY | ETH_TXBD_IRQ | ETH_TXBD_WRAP | ETH_TXBD_PAD | ETH_TXBD_CRC )
89
#define RX_READY    ( ETH_RXBD_EMPTY | ETH_RXBD_IRQ | ETH_RXBD_WRAP )
90
#define TX_READY ( ETH_TXBD_IRQ | ETH_TXBD_WRAP | ETH_TXBD_PAD | ETH_TXBD_CRC )
91
 
92
//~user defines
93
 
94
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.