1 #ifndef RTEMS_COMPAT_DEFS_H 2 #define RTEMS_COMPAT_DEFS_H 11 #define NETDRIVER_SLOTS 1 13 #define NETDRIVER "gfe" 15 #define NETDRIVER_PREFIX gfe 29 #define NET_CHIP_MEM_IO 30 #undef NET_CHIP_PORT_IO 35 #define NET_SOFTC_BHANDLE_FIELD sc_memh 43 #define IF_VAR_HEADER "../if_gfe/if_gfevar.h" 66 #define NET_DISABLE_IRQS(sc) GE_WRITE(sc, EIMR, 0) 67 #define NET_ENABLE_IRQS(sc) GE_WRITE(sc, EIMR, sc->sc_intrmask) 83 #define dm_segs gdm_segs 84 #define dm_nsegs gdm_nsegs 87 typedef uint32_t bus_addr_t;
88 typedef uint32_t bus_size_t;
92 #define BUS_DMA_NOCACHE 0xdeadbeef 95 #define bus_dmamap_sync(args...) do { __asm__ volatile("sync":::"memory"); } while(0) 97 #error "Dont' know how to sync memory on your CPU" 100 int ether_sprintf_r(
const unsigned char *enaddr,
char *buf,
int len);
103 int snprintf(
char *,
size_t,
const char *,...);
108 #define SPRINTFVARDECL char rtems_sprintf_local_buf[3*6] 110 #define ether_sprintf_macro(a) \ 111 (snprintf(rtems_sprintf_local_buf, \ 112 sizeof(rtems_sprintf_local_buf), \ 113 "%02X:%02X:%02X:%02X:%02X:%02X", \ 114 a[0],a[1],a[2],a[3],a[4],a[5]) ? \ 115 rtems_sprintf_local_buf : 0 \ 119 #define aprint_normal(args...) printf(args) 120 #define aprint_error(args...) fprintf(stderr,args) 122 #define delay(arg) DELAY(arg) 124 #define KASSERT(a...) do {} while (0) 126 #define gfe_assign_desc _bsd_gfe_assign_desc 127 #define gfe_attach _bsd_gfe_attach 128 #define gfe_dbg_config _bsd_gfe_dbg_config 129 #define gfe_dmamem_alloc _bsd_gfe_dmamem_alloc 130 #define gfe_dmamem_free _bsd_gfe_dmamem_free 131 #define gfe_hash_alloc _bsd_gfe_hash_alloc 132 #define gfe_hash_compute _bsd_gfe_hash_compute 133 #define gfe_hash_entry_op _bsd_gfe_hash_entry_op 134 #define gfe_hash_fill _bsd_gfe_hash_fill 135 #define gfe_ifioctl _bsd_gfe_ifioctl 136 #define gfe_ifstart _bsd_gfe_ifstart 137 #define gfe_ifwatchdog _bsd_gfe_ifwatchdog 138 #define gfe_init _bsd_gfe_init 139 #define gfe_intr _bsd_gfe_intr 140 #define gfe_mdio_access _bsd_gfe_mdio_access 141 #define gfe_mii_read _bsd_gfe_mii_read 142 #define gfe_mii_write _bsd_gfe_mii_write 143 #define gfe_probe _bsd_gfe_probe 144 #define gfe_rx_cleanup _bsd_gfe_rx_cleanup 145 #define gfe_rx_get _bsd_gfe_rx_get 146 #define gfe_rx_prime _bsd_gfe_rx_prime 147 #define gfe_rx_process _bsd_gfe_rx_process 148 #define gfe_rx_rxqalloc _bsd_gfe_rx_rxqalloc 149 #define gfe_rx_rxqinit _bsd_gfe_rx_rxqinit 150 #define gfe_rx_stop _bsd_gfe_rx_stop 151 #define gfe_tick _bsd_gfe_tick 152 #define gfe_tx_cleanup _bsd_gfe_tx_cleanup 153 #define gfe_tx_done _bsd_gfe_tx_done 154 #define gfe_tx_enqueue _bsd_gfe_tx_enqueue 155 #define gfe_tx_start _bsd_gfe_tx_start 156 #define gfe_tx_stop _bsd_gfe_tx_stop 157 #define gfe_tx_txqalloc _bsd_gfe_tx_txqalloc 158 #define gfe_whack _bsd_gfe_whack 159 #define the_gfe_devs _bsd_the_gfe_devs Definition: rtemscompat1.h:15
Definition: if_gfevar.h:58
Definition: rtemscompat_defs.h:91