GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / usb / usbeth.h
blob54f32ae0589fc11cc1f8997be9b4e13dec9469da
1 /* *********************************************************************
2 * Broadcom Common Firmware Environment (CFE)
3 *
4 * USB Ethernet File: usbeth.h
5 *
6 * Driver for USB Ethernet devices.
7 *
8 *********************************************************************
10 * Copyright 2000,2001,2002,2003
11 * Broadcom Corporation. All rights reserved.
13 * This software is furnished under license and may be used and
14 * copied only in accordance with the following terms and
15 * conditions. Subject to these conditions, you may download,
16 * copy, install, use, modify and distribute modified or unmodified
17 * copies of this software in source and/or binary form. No title
18 * or ownership is transferred hereby.
20 * 1) Any source code used, modified or distributed must reproduce
21 * and retain this copyright notice and list of conditions
22 * as they appear in the source file.
24 * 2) No right is granted to use any trade name, trademark, or
25 * logo of Broadcom Corporation. The "Broadcom Corporation"
26 * name may not be used to endorse or promote products derived
27 * from this software without the prior written permission of
28 * Broadcom Corporation.
30 * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR
31 * IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED
32 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
33 * PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT
34 * SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN
35 * PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,
36 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
37 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
38 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
39 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
40 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
41 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF
42 * THE POSSIBILITY OF SUCH DAMAGE.
43 ********************************************************************* */
45 /* *********************************************************************
46 * USB-Ethernet adapter driver includes
47 ********************************************************************* */
49 #ifndef __usbeth_h__
50 #define __usbeth_h__
52 /* **************************************
53 * CATC Netmate adapter
54 ************************************** */
56 #define CATC_MCAST_TBL_ADDR 0xFA80 //in Netmate's SRAM
57 #define CATC_GET_MAC_ADDR 0xF2
58 #define CATC_SET_REG 0xFA
59 #define CATC_GET_REG 0xFB
60 #define CATC_SET_MEM 0xFC
62 #define CATC_TX_BUF_CNT_REG 0x20
63 #define CATC_RX_BUF_CNT_REG 0x21
64 #define CATC_ADV_OP_MODES_REG 0x22
65 #define CATC_RX_FRAME_CNT_REG 0x24
67 #define CATC_ETH_CTRL_REG 0x60
68 #define CATC_ENET_STATUS_REG 0x61
69 #define CATC_ETH_ADDR_0_REG 0x67 // Byte #0 (leftmost)
70 #define CATC_LED_CTRL_REG 0x81
73 /* **************************************
74 * Admtek (PEGASUS II) adapter
75 ************************************** */
77 #define PEG_SET_REG 0xF1
78 #define PEG_GET_REG 0xF0
80 #define PEG_MCAST_TBL_REG 0x08
81 #define PEG_MAC_ADDR_0_REG 0x10
82 #define PEG_EEPROM_OFS_REG 0x20
83 #define PEG_EEPROM_DATA_REG 0x21
84 #define PEG_EEPROM_CTL_REG 0x23
85 #define PEG_PHY_ADDR_REG 0x25
86 #define PEG_PHY_DATA_REG 0x26 //& 27 for 2 bytes
87 #define PEG_PHY_CTRL_REG 0x28
88 #define PEG_ETH_CTL0_REG 0x00
89 #define PEG_ETH_CTL1_REG 0x01
90 #define PEG_ETH_CTL2_REG 0x02
91 #define PEG_GPIO0_REG 0x7e
92 #define PEG_GPIO1_REG 0x7f
93 #define PEG_INT_PHY_REG 0x7b
95 #define PHY_WRITE 0x20
96 #define PHY_READ 0x40
99 /* **************************************
100 * Realtek adapter
101 ************************************** */
103 #define RTEK_REG_ACCESS 0x05
104 #define RTEK_MAC_REG 0x0120
105 #define RTEK_CMD_REG 0x012E
106 #define RTEK_RXCFG_REG 0x0130
107 #define RTEK_RESET 0x10
108 #define RTEK_AUTOLOAD 0x01
112 #endif //__usbeth_h_