FreeBSD/sys/dev/dpaa/if_dtsec_im.c
/**
 * @group dTSEC FMan PORT routines.
 * @{
 */
@group dTSEC FMan PORT routines.
@group dTSEC FMan PORT routines .
static e_RxStoreResponse
dtsec_im_fm_port_rx_callback(t_Handle app, uint8_t *data, uint16_t length,
    uint16_t status, uint8_t position, t_Handle buf_context)
{
	struct dtsec_softc *sc;
	struct mbuf *m;
	sc = app;
	m = m_devget(data, length, 0, sc->sc_ifnet, NULL);
	if (m)
		(*sc->sc_ifnet->if_input)(sc->sc_ifnet, m);
	XX_FreeSmart(data);
	return (e_RX_STORE_RESPONSE_CONTINUE);
}
static e_RxStoreResponse dtsec_im_fm_port_rx_callback ( t_Handle app , uint8_t * data , uint16_t length , uint16_t status , uint8_t position , t_Handle buf_context ) { struct dtsec_softc * sc ; struct mbuf * m ; sc = app ; m = m_devget ( data , length , 0 , sc -> sc_ifnet , NULL ) ; if ( m ) ( * sc -> sc_ifnet -> if_input ) ( sc -> sc_ifnet , m ) ; XX_FreeSmart ( data ) ; return ( e_RX_STORE_RESPONSE_CONTINUE ) ; }
@group dTSEC FMan PORT routines.
@group dTSEC FMan PORT routines .
/* TODO STATUS / Position checking */