9#ifndef IF_TSEC_PUBLIC_INTERFACE_H
10#define IF_TSEC_PUBLIC_INTERFACE_H
82#define TSEC_TXIRQ ( (1<<(31-9)) | (1<<(31-11)) )
83#define TSEC_RXIRQ ( (1<<(31-0)) | (1<<(31- 3)) | (1<<(31-24)) )
84#define TSEC_LKIRQ ( 1<<(31- 4) )
156 void (*cleanup_txbuf)(
void *user_buf,
void *cleanup_txbuf_arg,
int error_on_tx_occurred),
157 void * cleanup_txbuf_arg,
158 void * (*alloc_rxbuf)(
int *p_size, uintptr_t *p_data_addr),
159 void (*consume_rxbuf)(
void *user_buf,
void *consume_rxbuf_arg,
int len),
160 void * consume_rxbuf_arg,
175 void (*isr)(
void *isr_arg),
177 void (*cleanup_txbuf)(
void *user_buf,
void *cleanup_txbuf_arg,
int error_on_tx_occurred),
178 void * cleanup_txbuf_arg,
179 void * (*alloc_rxbuf)(
int *p_size, uintptr_t *p_data_addr),
180 void (*consume_rxbuf)(
void *user_buf,
void *consume_rxbuf_arg,
int len),
181 void * consume_rxbuf_arg,
198BSP_tsec_swipe_tx(
struct tsec_private *mp);
205BSP_tsec_reset_stats(
struct tsec_private *mp);
217BSP_tsec_init_hw(
struct tsec_private *mp,
int promisc,
unsigned char *enaddr);
228BSP_tsec_mcast_filter_clear(
struct tsec_private *mp);
237BSP_tsec_mcast_filter_accept_all(
struct tsec_private *mp);
251BSP_tsec_mcast_filter_accept_add(
struct tsec_private *mp,
unsigned char *enaddr);
266BSP_tsec_mcast_filter_accept_del(
struct tsec_private *mp,
unsigned char *enaddr);
272BSP_tsec_dump_stats(
struct tsec_private *mp, FILE *f);
278BSP_tsec_stop_hw(
struct tsec_private *mp);
288BSP_tsec_detach(
struct tsec_private *mp);
310BSP_tsec_send_buf(
struct tsec_private *mp,
void *m_head,
void *data_p,
int len);
320BSP_tsec_swipe_rx(
struct tsec_private *mp);
324BSP_tsec_read_eaddr(
struct tsec_private *mp,
unsigned char *eaddr);
328BSP_tsec_mdio_rd(
struct tsec_private *mp,
unsigned reg);
332BSP_tsec_mdio_wr(
struct tsec_private *mp,
unsigned reg, uint32_t val);
343BSP_tsec_media_ioctl(
struct tsec_private *mp,
int cmd,
int *parg);
384BSP_tsec_enable_irqs(
struct tsec_private *mp);
388BSP_tsec_disable_irqs(
struct tsec_private *mp);
395BSP_tsec_ack_irqs(
struct tsec_private *mp);
403BSP_tsec_enable_irq_mask(
struct tsec_private *mp, uint32_t irq_mask);
415BSP_tsec_disable_irq_mask(
struct tsec_private *mp, uint32_t irq_mask);
429BSP_tsec_ack_irq_mask(
struct tsec_private *mp, uint32_t mask);
437BSP_tsec_get_tid(
struct tsec_private *mp);
440BSP_tsec_getp(
unsigned index);
466struct rtems_bsdnet_ifconfig;
469rtems_tsec_attach(
struct rtems_bsdnet_ifconfig *ifcfg,
int attaching);
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
This header file defines the RTEMS Classic API.