FreeBSD/sys/dev/bxe/bxe.c
/* send a NIG loopback debug packet */
send a NIG loopback debug packet
send a NIG loopback debug packet
static void
bxe_lb_pckt(struct bxe_softc *sc)
{
    uint32_t wb_write[3];
    wb_write[0] = 0x55555555;
    wb_write[1] = 0x55555555;
    wb_write[2] = 0x20;     
    REG_WR_DMAE(sc, NIG_REG_DEBUG_PACKET_LB, wb_write, 3);
    wb_write[0] = 0x09000000;
    wb_write[1] = 0x55555555;
    wb_write[2] = 0x10;     
    REG_WR_DMAE(sc, NIG_REG_DEBUG_PACKET_LB, wb_write, 3);
}
static void bxe_lb_pckt ( struct bxe_softc * sc ) { uint32_t wb_write [ 3 ] ; wb_write [ 0 ] = 0x55555555 ; wb_write [ 1 ] = 0x55555555 ; wb_write [ 2 ] = 0x20 ; REG_WR_DMAE ( sc , NIG_REG_DEBUG_PACKET_LB , wb_write , 3 ) ; wb_write [ 0 ] = 0x09000000 ; wb_write [ 1 ] = 0x55555555 ; wb_write [ 2 ] = 0x10 ; REG_WR_DMAE ( sc , NIG_REG_DEBUG_PACKET_LB , wb_write , 3 ) ; }
send a NIG loopback debug packet
send a NIG loopback debug packet
/* Ethernet source and destination addresses */ /* SOP */ /* NON-IP protocol */ /* EOP, eop_bvalid = 0 */