1 #ifndef RTEMS_BSDNET_IF_MVE_PUBLIC_SYMBOLS_H 2 #define RTEMS_BSDNET_IF_MVE_PUBLIC_SYMBOLS_H 49 #include <rtems/rtems_bsdnet.h> 50 #include <bsp/early_enet_link_status.h> 57 extern int rtems_mve_attach(
struct rtems_bsdnet_ifconfig *,
int);
69 #define BSP_MVE_IRQ_RX (1<<2) 70 #define BSP_MVE_IRQ_TX (1<<0) 71 #define BSP_MVE_IRQ_LINK (1<<16) 139 struct mveth_private *
143 void (*cleanup_txbuf)(
void *user_buf,
void *cleanup_txbuf_arg,
int error_on_tx_occurred),
144 void *cleanup_txbuf_arg,
145 void *(*alloc_rxbuf)(
int *p_size, uintptr_t *p_data_addr),
146 void (*consume_rxbuf)(
void *user_buf,
void *consume_rxbuf_arg,
int len),
147 void *consume_rxbuf_arg,
159 struct mveth_private *
162 void (*isr)(
void *isr_arg),
164 void (*cleanup_txbuf)(
void *user_buf,
void *cleanup_txbuf_arg,
int error_on_tx_occurred),
165 void *cleanup_txbuf_arg,
166 void *(*alloc_rxbuf)(
int *p_size, uintptr_t *p_data_addr),
167 void (*consume_rxbuf)(
void *user_buf,
void *consume_rxbuf_arg,
int len),
168 void *consume_rxbuf_arg,
188 BSP_mve_init_hw(
struct mveth_private *mp,
int promisc,
unsigned char *enaddr);
196 BSP_mve_mcast_filter_clear(
struct mveth_private *mp);
202 BSP_mve_mcast_filter_accept_all(
struct mveth_private *mp);
220 BSP_mve_mcast_filter_accept_add(
struct mveth_private *mp,
unsigned char *enaddr);
229 BSP_mve_mcast_filter_accept_del(
struct mveth_private *mp,
unsigned char *enaddr);
235 BSP_mve_stop_hw(
struct mveth_private *mp);
244 BSP_mve_detach(
struct mveth_private *mp);
247 BSP_mve_send_buf_raw(
struct mveth_private *mp,
void *head_p,
int h_len,
248 void *data_p,
int d_len);
269 BSP_mve_send_buf(
struct mveth_private *mp,
void *m_head,
void *data_p,
int len);
279 BSP_mve_swipe_tx(
struct mveth_private *mp);
288 BSP_mve_swipe_rx(
struct mveth_private *mp);
292 BSP_mve_read_eaddr(
struct mveth_private *mp,
unsigned char *eaddr);
304 BSP_mve_media_ioctl(
struct mveth_private *mp,
int cmd,
int *parg);
316 BSP_mve_enable_irqs(
struct mveth_private *mp);
320 BSP_mve_disable_irqs(
struct mveth_private *mp);
326 BSP_mve_ack_irqs(
struct mveth_private *mp);
334 BSP_mve_enable_irq_mask(
struct mveth_private *mp, uint32_t irq_mask);
346 BSP_mve_disable_irq_mask(
struct mveth_private *mp, uint32_t irq_mask);
360 BSP_mve_ack_irq_mask(
struct mveth_private *mp, uint32_t mask);
379 BSP_mve_ack_link_chg(
struct mveth_private *mp,
int *pmedia);
386 BSP_mve_get_tid(
struct mveth_private *mp);
393 BSP_mve_dump_stats(
struct mveth_private *mp, FILE *f);
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Definition: early_enet_link_status.h:14