Exemplo n.º 1
0
static void sfn4112f_init_leds(struct efx_nic *efx)
{
	xfp_set_led(efx, SFN4112F_ACT_LED,
		    QUAKE_LED_RXLINK | QUAKE_LED_LINK_ACT);
	xfp_set_led(efx, SFN4112F_LINK_LED,
		    QUAKE_LED_RXLINK | QUAKE_LED_LINK_STAT);
}
Exemplo n.º 2
0
static void sfe4002_init_leds(struct efx_nic *efx)
{
	/* Set the TX and RX LEDs to reflect status and activity, and the
	 * fault LED off */
	xfp_set_led(efx, SFE4002_TX_LED,
		    QUAKE_LED_TXLINK | QUAKE_LED_LINK_ACTSTAT);
	xfp_set_led(efx, SFE4002_RX_LED,
		    QUAKE_LED_RXLINK | QUAKE_LED_LINK_ACTSTAT);
	xfp_set_led(efx, SFE4002_FAULT_LED, QUAKE_LED_OFF);
}
Exemplo n.º 3
0
Arquivo: boards.c Projeto: 274914765/C
static int sfe4002_init_leds(struct efx_nic *efx)
{
    /* Set the TX and RX LEDs to reflect status and activity, and the
     * fault LED off */
    xfp_set_led(efx, SFE4002_TX_LED,
            QUAKE_LED_TXLINK | QUAKE_LED_LINK_ACTSTAT);
    xfp_set_led(efx, SFE4002_RX_LED,
            QUAKE_LED_RXLINK | QUAKE_LED_LINK_ACTSTAT);
    xfp_set_led(efx, SFE4002_FAULT_LED, QUAKE_LED_OFF);
    efx->board_info.blinker.led_num = SFE4002_FAULT_LED;
    return 0;
}
Exemplo n.º 4
0
Arquivo: boards.c Projeto: 274914765/C
static void sfe4002_fault_led(struct efx_nic *efx, int state)
{
    xfp_set_led(efx, SFE4002_FAULT_LED, state ? QUAKE_LED_ON :
            QUAKE_LED_OFF);
}
Exemplo n.º 5
0
static void sfn4112f_set_id_led(struct efx_nic *efx, bool state)
{
	xfp_set_led(efx, SFN4112F_LINK_LED,
		    state ? QUAKE_LED_ON : QUAKE_LED_OFF);
}
Exemplo n.º 6
0
static void sfe4002_set_id_led(struct efx_nic *efx, bool state)
{
	xfp_set_led(efx, SFE4002_FAULT_LED, state ? QUAKE_LED_ON :
			QUAKE_LED_OFF);
}