XINU
Data Structures | Macros
am335x_eth.h File Reference

AM335X SoCのEthernetデバイスに関する定義。 More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eth_a_ale
 Address Lookup Engine(ALE)レジスタ用の構造体 More...
 
struct  eth_a_cpdma
 Cryptographic Processor RAM DMA(CPDMA、暗号化DMA)レジスタ用の構造体 More...
 
struct  eth_a_csreg
 Ethernet subsystemレジスタ構造体 More...
 
struct  eth_a_mdio
 Management Data Input/Output(MDIO)レジスタ用の構造体 More...
 
struct  eth_a_rx_desc
 DMA RX(受信)ディスクリプタ More...
 
struct  eth_a_sl
 CPSW_SLレジスタ用の構造体 More...
 
struct  eth_a_ss
 CPSW_SSレジスタ用の構造体 More...
 
struct  eth_a_stateram
 CPDMA_STATERAMレジスタ用の構造体 More...
 
struct  eth_a_tx_desc
 DMA TX(送信)ディスクリプタ More...
 
struct  eth_a_wr
 CPSW_WRレジスタ用の構造体 More...
 

Macros

#define ETH_AM335X_ALE_ADDR   0x4A100D00
 Address Lookup Engine(ALE)の開始アドレス More...
 
#define ETH_AM335X_ALECTL_BY   0x00000010
 Address Lookup Engine(ALE)制御をBypassモードとする More...
 
#define ETH_AM335X_ALECTL_EN   0x80000000
 Address Lookup Engine(ALE)を有効化する More...
 
#define ETH_AM335X_ALEPCTL_FWD   0x00000003
 Address Lookup Engine(ALE)制御をポートフォワード状態とする More...
 
#define ETH_AM335X_CPDMA_ADDR   0x4A100800
 Cryptographic Processor RAM DMA(CPDMA、暗号化DMA)の開始アドレス More...
 
#define ETH_AM335X_INIT_DELAY   1000000
 初期化時のディレイ More...
 
#define ETH_AM335X_MDIO_ADDR   0x4A101000
 Management Data Input/Output(MDIO)の開始アドレス More...
 
#define ETH_AM335X_MDIOCTL_EN   0x40000000
 Management Data Input/Output(MDIO)制御を有効化 More...
 
#define ETH_AM335X_MDIOUA_ACK   0x20000000
 Management Data Input/Output(MDIO) 読み込み確認応答(Ack) More...
 
#define ETH_AM335X_MDIOUA_DM   0x0000ffff
 Management Data Input/Output(MDIO)データマスク More...
 
#define ETH_AM335X_MDIOUA_GO   0x80000000
 実行するManagement Data Input/Output(MDIO)のアクセス More...
 
#define ETH_AM335X_MDIOUA_WR   0x40000000
 Management Data Input/Output(MDIO) 書き込みアクセス More...
 
#define ETH_AM335X_RDS_EOP   0x4000
 RX(受信)パケットの終了 More...
 
#define ETH_AM335X_RDS_EOQ   0x1000
 不明 More...
 
#define ETH_AM335X_RDS_OWN   0x2000
 DMAが所持するディスクリプタ More...
 
#define ETH_AM335X_RDS_SOP   0x8000
 RX(受信)パケットの開始 More...
 
#define ETH_AM335X_RX_RING_SIZE   32
 RX(受信)リングバッファサイズ More...
 
#define ETH_AM335X_RXINT   41
 RX(受信)の割り込みベクタ More...
 
#define ETH_AM335X_SL1_ADDR   0x4A100D80
 SL1の開始アドレス More...
 
#define ETH_AM335X_SLCTL_EN   0x00000020
 受信/送信の有効化 More...
 
#define ETH_AM335X_SLCTL_FD   0x00000001
 全二重通信 More...
 
#define ETH_AM335X_SLCTL_GIG   0x00000080
 ギガビットモード More...
 
#define ETH_AM335X_SLCTL_LB   0x00000002
 ループバック More...
 
#define ETH_AM335X_SS_ADDR   0x4A100000
 SSの開始アドレス More...
 
#define ETH_AM335X_STATERAM_ADDR   0x4A100A00
 STATERAMの開始アドレス More...
 
#define ETH_AM335X_TDS_DIR   0x0010
 不明 More...
 
#define ETH_AM335X_TDS_EOP   0x4000
 TX(送信)パケットの終了 More...
 
#define ETH_AM335X_TDS_EOQ   0x1000
 不明 More...
 
#define ETH_AM335X_TDS_OWN   0x2000
 DMAが所持するディスクリプタ More...
 
#define ETH_AM335X_TDS_P1   0x0001
 不明 More...
 
#define ETH_AM335X_TDS_SOP   0x8000
 TX(送信)パケットの開始 More...
 
#define ETH_AM335X_TX_RING_SIZE   16
 TX(送信)リングバッファサイズ More...
 
#define ETH_AM335X_TXINT   42
 TX(送信)の割り込みベクタ More...
 
#define ETH_AM335X_WR_ADDR   0x4A101200
 WRの開始アドレス More...
 

Detailed Description

AM335X SoCのEthernetデバイスに関する定義。

Definition in file am335x_eth.h.

Macro Definition Documentation

◆ ETH_AM335X_ALE_ADDR

#define ETH_AM335X_ALE_ADDR   0x4A100D00

Address Lookup Engine(ALE)の開始アドレス

Definition at line 382 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_ALECTL_BY

#define ETH_AM335X_ALECTL_BY   0x00000010

Address Lookup Engine(ALE)制御をBypassモードとする

Definition at line 45 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_ALECTL_EN

#define ETH_AM335X_ALECTL_EN   0x80000000

Address Lookup Engine(ALE)を有効化する

Definition at line 43 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_ALEPCTL_FWD

#define ETH_AM335X_ALEPCTL_FWD   0x00000003

Address Lookup Engine(ALE)制御をポートフォワード状態とする

Definition at line 47 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_CPDMA_ADDR

#define ETH_AM335X_CPDMA_ADDR   0x4A100800

Cryptographic Processor RAM DMA(CPDMA、暗号化DMA)の開始アドレス

Definition at line 384 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_INIT_DELAY

#define ETH_AM335X_INIT_DELAY   1000000

初期化時のディレイ

Definition at line 400 of file am335x_eth.h.

Referenced by eth_phy_reset().

◆ ETH_AM335X_MDIO_ADDR

#define ETH_AM335X_MDIO_ADDR   0x4A101000

Management Data Input/Output(MDIO)の開始アドレス

Definition at line 390 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_MDIOCTL_EN

#define ETH_AM335X_MDIOCTL_EN   0x40000000

Management Data Input/Output(MDIO)制御を有効化

Definition at line 283 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_MDIOUA_ACK

#define ETH_AM335X_MDIOUA_ACK   0x20000000

Management Data Input/Output(MDIO) 読み込み確認応答(Ack)

Definition at line 289 of file am335x_eth.h.

Referenced by eth_phy_read().

◆ ETH_AM335X_MDIOUA_DM

#define ETH_AM335X_MDIOUA_DM   0x0000ffff

Management Data Input/Output(MDIO)データマスク

Definition at line 291 of file am335x_eth.h.

Referenced by eth_phy_read().

◆ ETH_AM335X_MDIOUA_GO

#define ETH_AM335X_MDIOUA_GO   0x80000000

実行するManagement Data Input/Output(MDIO)のアクセス

Definition at line 285 of file am335x_eth.h.

Referenced by eth_phy_read(), and eth_phy_write().

◆ ETH_AM335X_MDIOUA_WR

#define ETH_AM335X_MDIOUA_WR   0x40000000

Management Data Input/Output(MDIO) 書き込みアクセス

Definition at line 287 of file am335x_eth.h.

Referenced by eth_phy_write().

◆ ETH_AM335X_RDS_EOP

#define ETH_AM335X_RDS_EOP   0x4000

RX(受信)パケットの終了

Definition at line 338 of file am335x_eth.h.

◆ ETH_AM335X_RDS_EOQ

#define ETH_AM335X_RDS_EOQ   0x1000

不明

Definition at line 342 of file am335x_eth.h.

◆ ETH_AM335X_RDS_OWN

#define ETH_AM335X_RDS_OWN   0x2000

DMAが所持するディスクリプタ

Definition at line 340 of file am335x_eth.h.

Referenced by ethhandler(), ethinit(), and ethread().

◆ ETH_AM335X_RDS_SOP

#define ETH_AM335X_RDS_SOP   0x8000

RX(受信)パケットの開始

Definition at line 336 of file am335x_eth.h.

◆ ETH_AM335X_RX_RING_SIZE

#define ETH_AM335X_RX_RING_SIZE   32

RX(受信)リングバッファサイズ

Definition at line 344 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_RXINT

#define ETH_AM335X_RXINT   41

RX(受信)の割り込みベクタ

Definition at line 396 of file am335x_eth.h.

Referenced by ethhandler(), and ethinit().

◆ ETH_AM335X_SL1_ADDR

#define ETH_AM335X_SL1_ADDR   0x4A100D80

SL1の開始アドレス

Definition at line 388 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_SLCTL_EN

#define ETH_AM335X_SLCTL_EN   0x00000020

受信/送信の有効化

Definition at line 170 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_SLCTL_FD

#define ETH_AM335X_SLCTL_FD   0x00000001

全二重通信

Definition at line 166 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_SLCTL_GIG

#define ETH_AM335X_SLCTL_GIG   0x00000080

ギガビットモード

Definition at line 172 of file am335x_eth.h.

◆ ETH_AM335X_SLCTL_LB

#define ETH_AM335X_SLCTL_LB   0x00000002

ループバック

Definition at line 168 of file am335x_eth.h.

◆ ETH_AM335X_SS_ADDR

#define ETH_AM335X_SS_ADDR   0x4A100000

SSの開始アドレス

Definition at line 392 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_STATERAM_ADDR

#define ETH_AM335X_STATERAM_ADDR   0x4A100A00

STATERAMの開始アドレス

Definition at line 386 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_TDS_DIR

#define ETH_AM335X_TDS_DIR   0x0010

不明

Definition at line 375 of file am335x_eth.h.

Referenced by ethinit(), and ethwrite().

◆ ETH_AM335X_TDS_EOP

#define ETH_AM335X_TDS_EOP   0x4000

TX(送信)パケットの終了

Definition at line 369 of file am335x_eth.h.

Referenced by ethinit(), and ethwrite().

◆ ETH_AM335X_TDS_EOQ

#define ETH_AM335X_TDS_EOQ   0x1000

不明

Definition at line 373 of file am335x_eth.h.

◆ ETH_AM335X_TDS_OWN

#define ETH_AM335X_TDS_OWN   0x2000

DMAが所持するディスクリプタ

Definition at line 371 of file am335x_eth.h.

Referenced by ethhandler(), and ethwrite().

◆ ETH_AM335X_TDS_P1

#define ETH_AM335X_TDS_P1   0x0001

不明

Definition at line 377 of file am335x_eth.h.

Referenced by ethinit(), and ethwrite().

◆ ETH_AM335X_TDS_SOP

#define ETH_AM335X_TDS_SOP   0x8000

TX(送信)パケットの開始

Definition at line 367 of file am335x_eth.h.

Referenced by ethinit(), and ethwrite().

◆ ETH_AM335X_TX_RING_SIZE

#define ETH_AM335X_TX_RING_SIZE   16

TX(送信)リングバッファサイズ

Definition at line 379 of file am335x_eth.h.

Referenced by ethinit().

◆ ETH_AM335X_TXINT

#define ETH_AM335X_TXINT   42

TX(送信)の割り込みベクタ

Definition at line 398 of file am335x_eth.h.

Referenced by ethhandler(), and ethinit().

◆ ETH_AM335X_WR_ADDR

#define ETH_AM335X_WR_ADDR   0x4A101200

WRの開始アドレス

Definition at line 394 of file am335x_eth.h.

Referenced by ethinit().