LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
usbeth.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  klsi_ether_desc_s
 
struct  usbeth_disp_s
 

Macros

#define CATC_MCAST_TBL_ADDR   0xFA80
 
#define CATC_GET_MAC_ADDR   0xF2
 
#define CATC_SET_REG   0xFA
 
#define CATC_GET_REG   0xFB
 
#define CATC_SET_MEM   0xFC
 
#define CATC_TX_BUF_CNT_REG   0x20
 
#define CATC_RX_BUF_CNT_REG   0x21
 
#define CATC_ADV_OP_MODES_REG   0x22
 
#define CATC_RX_FRAME_CNT_REG   0x24
 
#define CATC_ETH_CTRL_REG   0x60
 
#define CATC_ENET_STATUS_REG   0x61
 
#define CATC_ETH_ADDR_0_REG   0x67
 
#define CATC_LED_CTRL_REG   0x81
 
#define PEG_SET_REG   0xF1
 
#define PEG_GET_REG   0xF0
 
#define R_PEG_ETH_CTL0   0x00
 
#define R_PEG_ETH_CTL1   0x01
 
#define R_PEG_ETH_CTL2   0x02
 
#define R_PEG_MCAST_TBL   0x08
 
#define R_PEG_MAC_ADDR_0   0x10
 
#define R_PEG_EEPROM_OFS   0x20
 
#define R_PEG_EEPROM_DATA   0x21
 
#define R_PEG_EEPROM_CTL   0x23
 
#define R_PEG_PHY_ADDR   0x25
 
#define R_PEG_PHY_DATA   0x26
 
#define R_PEG_PHY_CTRL   0x28
 
#define R_PEG_INT_PHY   0x7b
 
#define R_PEG_GPIO0   0x7e
 
#define R_PEG_GPIO1   0x7f
 
#define PEG_PHY_WRITE   0x20
 
#define PEG_PHY_READ   0x40
 
#define RTEK_REG_ACCESS   0x05
 
#define R_RTEK_MAC   0x0120
 
#define R_RTEK_CMD   0x012E
 
#define R_RTEK_TXCFG   0x012F
 
#define R_RTEK_RXCFG   0x0130
 
#define R_RTEK_TXSTAT   0x0132
 
#define R_RTEK_RXSTAT   0x0133
 
#define RTEK_AUTOLOAD   0x01
 
#define RTEK_TXENABLE   0x04
 
#define RTEK_RXENABLE   0x08
 
#define RTEK_RESET   0x10
 
#define RTEK_MACADDR   0x04
 
#define RTEK_BCASTADDR   0x08
 
#define KLSI_SEND_SCAN   0xFF
 
#define KLSI_GET_ETH_DESC   0x00
 
#define KLSI_SET_MCAST_FILTER   0x01
 
#define KLSI_SET_PKT_FILTER   0x02
 
#define KLSI_SET_MAC   0x06
 
#define KLSI_GET_MAC   0x07
 
#define KLSI_SET_URB_SIZE   0x08
 
#define KLSI_SET_SOFS   0x09
 
#define KLSI_RX_PROMISC   0x0001
 
#define KLSI_RX_ALLMULTI   0x0002
 
#define KLSI_RX_UNICAST   0x0004
 
#define KLSI_RX_BROADCAST   0x0008
 
#define KLSI_RX_MULTICAST   0x0010
 

Typedefs

typedef struct klsi_ether_desc_s klsi_ether_desc_t
 
typedef struct usbeth_disp_s usbeth_disp_t
 

Functions

int usbeth_register (usbeth_disp_t *disp, void *softc)
 
void usbeth_unregister (void *softc)
 

Macro Definition Documentation

◆ CATC_ADV_OP_MODES_REG

#define CATC_ADV_OP_MODES_REG   0x22

Definition at line 65 of file usbeth.h.

◆ CATC_ENET_STATUS_REG

#define CATC_ENET_STATUS_REG   0x61

Definition at line 69 of file usbeth.h.

◆ CATC_ETH_ADDR_0_REG

#define CATC_ETH_ADDR_0_REG   0x67

Definition at line 70 of file usbeth.h.

◆ CATC_ETH_CTRL_REG

#define CATC_ETH_CTRL_REG   0x60

Definition at line 68 of file usbeth.h.

◆ CATC_GET_MAC_ADDR

#define CATC_GET_MAC_ADDR   0xF2

Definition at line 58 of file usbeth.h.

◆ CATC_GET_REG

#define CATC_GET_REG   0xFB

Definition at line 60 of file usbeth.h.

◆ CATC_LED_CTRL_REG

#define CATC_LED_CTRL_REG   0x81

Definition at line 71 of file usbeth.h.

◆ CATC_MCAST_TBL_ADDR

#define CATC_MCAST_TBL_ADDR   0xFA80

Definition at line 56 of file usbeth.h.

◆ CATC_RX_BUF_CNT_REG

#define CATC_RX_BUF_CNT_REG   0x21

Definition at line 64 of file usbeth.h.

◆ CATC_RX_FRAME_CNT_REG

#define CATC_RX_FRAME_CNT_REG   0x24

Definition at line 66 of file usbeth.h.

◆ CATC_SET_MEM

#define CATC_SET_MEM   0xFC

Definition at line 61 of file usbeth.h.

◆ CATC_SET_REG

#define CATC_SET_REG   0xFA

Definition at line 59 of file usbeth.h.

◆ CATC_TX_BUF_CNT_REG

#define CATC_TX_BUF_CNT_REG   0x20

Definition at line 63 of file usbeth.h.

◆ KLSI_GET_ETH_DESC

#define KLSI_GET_ETH_DESC   0x00

Definition at line 145 of file usbeth.h.

◆ KLSI_GET_MAC

#define KLSI_GET_MAC   0x07

Definition at line 149 of file usbeth.h.

◆ KLSI_RX_ALLMULTI

#define KLSI_RX_ALLMULTI   0x0002

Definition at line 167 of file usbeth.h.

◆ KLSI_RX_BROADCAST

#define KLSI_RX_BROADCAST   0x0008

Definition at line 169 of file usbeth.h.

◆ KLSI_RX_MULTICAST

#define KLSI_RX_MULTICAST   0x0010

Definition at line 170 of file usbeth.h.

◆ KLSI_RX_PROMISC

#define KLSI_RX_PROMISC   0x0001

Definition at line 166 of file usbeth.h.

◆ KLSI_RX_UNICAST

#define KLSI_RX_UNICAST   0x0004

Definition at line 168 of file usbeth.h.

◆ KLSI_SEND_SCAN

#define KLSI_SEND_SCAN   0xFF

Definition at line 142 of file usbeth.h.

◆ KLSI_SET_MAC

#define KLSI_SET_MAC   0x06

Definition at line 148 of file usbeth.h.

◆ KLSI_SET_MCAST_FILTER

#define KLSI_SET_MCAST_FILTER   0x01

Definition at line 146 of file usbeth.h.

◆ KLSI_SET_PKT_FILTER

#define KLSI_SET_PKT_FILTER   0x02

Definition at line 147 of file usbeth.h.

◆ KLSI_SET_SOFS

#define KLSI_SET_SOFS   0x09

Definition at line 151 of file usbeth.h.

◆ KLSI_SET_URB_SIZE

#define KLSI_SET_URB_SIZE   0x08

Definition at line 150 of file usbeth.h.

◆ PEG_GET_REG

#define PEG_GET_REG   0xF0

Definition at line 84 of file usbeth.h.

◆ PEG_PHY_READ

#define PEG_PHY_READ   0x40

Definition at line 103 of file usbeth.h.

◆ PEG_PHY_WRITE

#define PEG_PHY_WRITE   0x20

Definition at line 102 of file usbeth.h.

◆ PEG_SET_REG

#define PEG_SET_REG   0xF1

Definition at line 83 of file usbeth.h.

◆ R_PEG_EEPROM_CTL

#define R_PEG_EEPROM_CTL   0x23

Definition at line 93 of file usbeth.h.

◆ R_PEG_EEPROM_DATA

#define R_PEG_EEPROM_DATA   0x21

Definition at line 92 of file usbeth.h.

◆ R_PEG_EEPROM_OFS

#define R_PEG_EEPROM_OFS   0x20

Definition at line 91 of file usbeth.h.

◆ R_PEG_ETH_CTL0

#define R_PEG_ETH_CTL0   0x00

Definition at line 86 of file usbeth.h.

◆ R_PEG_ETH_CTL1

#define R_PEG_ETH_CTL1   0x01

Definition at line 87 of file usbeth.h.

◆ R_PEG_ETH_CTL2

#define R_PEG_ETH_CTL2   0x02

Definition at line 88 of file usbeth.h.

◆ R_PEG_GPIO0

#define R_PEG_GPIO0   0x7e

Definition at line 98 of file usbeth.h.

◆ R_PEG_GPIO1

#define R_PEG_GPIO1   0x7f

Definition at line 99 of file usbeth.h.

◆ R_PEG_INT_PHY

#define R_PEG_INT_PHY   0x7b

Definition at line 97 of file usbeth.h.

◆ R_PEG_MAC_ADDR_0

#define R_PEG_MAC_ADDR_0   0x10

Definition at line 90 of file usbeth.h.

◆ R_PEG_MCAST_TBL

#define R_PEG_MCAST_TBL   0x08

Definition at line 89 of file usbeth.h.

◆ R_PEG_PHY_ADDR

#define R_PEG_PHY_ADDR   0x25

Definition at line 94 of file usbeth.h.

◆ R_PEG_PHY_CTRL

#define R_PEG_PHY_CTRL   0x28

Definition at line 96 of file usbeth.h.

◆ R_PEG_PHY_DATA

#define R_PEG_PHY_DATA   0x26

Definition at line 95 of file usbeth.h.

◆ R_RTEK_CMD

#define R_RTEK_CMD   0x012E

Definition at line 118 of file usbeth.h.

◆ R_RTEK_MAC

#define R_RTEK_MAC   0x0120

Definition at line 117 of file usbeth.h.

◆ R_RTEK_RXCFG

#define R_RTEK_RXCFG   0x0130

Definition at line 120 of file usbeth.h.

◆ R_RTEK_RXSTAT

#define R_RTEK_RXSTAT   0x0133

Definition at line 122 of file usbeth.h.

◆ R_RTEK_TXCFG

#define R_RTEK_TXCFG   0x012F

Definition at line 119 of file usbeth.h.

◆ R_RTEK_TXSTAT

#define R_RTEK_TXSTAT   0x0132

Definition at line 121 of file usbeth.h.

◆ RTEK_AUTOLOAD

#define RTEK_AUTOLOAD   0x01

Definition at line 125 of file usbeth.h.

◆ RTEK_BCASTADDR

#define RTEK_BCASTADDR   0x08

Definition at line 132 of file usbeth.h.

◆ RTEK_MACADDR

#define RTEK_MACADDR   0x04

Definition at line 131 of file usbeth.h.

◆ RTEK_REG_ACCESS

#define RTEK_REG_ACCESS   0x05

Definition at line 115 of file usbeth.h.

◆ RTEK_RESET

#define RTEK_RESET   0x10

Definition at line 128 of file usbeth.h.

◆ RTEK_RXENABLE

#define RTEK_RXENABLE   0x08

Definition at line 127 of file usbeth.h.

◆ RTEK_TXENABLE

#define RTEK_TXENABLE   0x04

Definition at line 126 of file usbeth.h.

Typedef Documentation

◆ klsi_ether_desc_t

◆ usbeth_disp_t

typedef struct usbeth_disp_s usbeth_disp_t

Function Documentation

◆ usbeth_register()

int usbeth_register ( usbeth_disp_t disp,
void *  softc 
)

Definition at line 78 of file usbeth.c.

◆ usbeth_unregister()

void usbeth_unregister ( void *  softc)

Definition at line 97 of file usbeth.c.