File indexing completed on 2025-05-11 08:23:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef _ethernet_h_
0013 #define _ethernet_h_
0014
0015
0016 #define BFIN_ETHERNET_DEBUG_NONE 0x0000
0017 #define BFIN_ETHERNET_DEBUG_ALL 0xFFFF
0018
0019 #define BFIN_ETHERNET_DEBUG (BFIN_ETHERNET_DEBUG_NONE)
0020
0021
0022 #ifdef __cplusplus
0023 extern "C" {
0024 #endif
0025
0026
0027 typedef struct {
0028 uint32_t sclk;
0029 void *ethBaseAddress;
0030 void *rxdmaBaseAddress;
0031 void *txdmaBaseAddress;
0032 int rxDescCount;
0033 int txDescCount;
0034 enum {rmii, mii} phyType;
0035 int phyAddr;
0036 } bfin_ethernet_configuration_t;
0037
0038
0039 void bfin_ethernet_rxdma_isr(int vector);
0040 void bfin_ethernet_txdma_isr(int vector);
0041 void bfin_ethernet_mac_isr(int vector);
0042
0043 int bfin_ethernet_driver_attach(struct rtems_bsdnet_ifconfig *config,
0044 int attaching,
0045 bfin_ethernet_configuration_t *chip);
0046
0047
0048 #ifdef __cplusplus
0049 }
0050 #endif
0051
0052
0053 #endif
0054