1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2007-2010 Solarflare Communications Inc.
10 /****************************************************************************
11 * 10Xpress (SFX7101) PHY
13 extern const struct ef4_phy_operations falcon_sfx7101_phy_ops
;
15 void tenxpress_set_id_led(struct ef4_nic
*efx
, enum ef4_led_mode mode
);
17 /****************************************************************************
18 * AMCC/Quake QT202x PHYs
20 extern const struct ef4_phy_operations falcon_qt202x_phy_ops
;
22 /* These PHYs provide various H/W control states for LEDs */
23 #define QUAKE_LED_LINK_INVAL (0)
24 #define QUAKE_LED_LINK_STAT (1)
25 #define QUAKE_LED_LINK_ACT (2)
26 #define QUAKE_LED_LINK_ACTSTAT (3)
27 #define QUAKE_LED_OFF (4)
28 #define QUAKE_LED_ON (5)
29 #define QUAKE_LED_LINK_INPUT (6) /* Pin is an input. */
30 /* What link the LED tracks */
31 #define QUAKE_LED_TXLINK (0)
32 #define QUAKE_LED_RXLINK (8)
34 void falcon_qt202x_set_led(struct ef4_nic
*p
, int led
, int state
);
36 /****************************************************************************
37 * Transwitch CX4 retimer
39 extern const struct ef4_phy_operations falcon_txc_phy_ops
;
41 #define TXC_GPIO_DIR_INPUT 0
42 #define TXC_GPIO_DIR_OUTPUT 1
44 void falcon_txc_set_gpio_dir(struct ef4_nic
*efx
, int pin
, int dir
);
45 void falcon_txc_set_gpio_val(struct ef4_nic
*efx
, int pin
, int val
);