diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/sfc/phy.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/sfc/phy.h')
-rw-r--r-- | drivers/net/sfc/phy.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/drivers/net/sfc/phy.h b/drivers/net/sfc/phy.h index 5bc26137257b..11d148cd8441 100644 --- a/drivers/net/sfc/phy.h +++ b/drivers/net/sfc/phy.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | * Driver for Solarflare Solarstorm network controllers and boards | 2 | * Driver for Solarflare Solarstorm network controllers and boards |
3 | * Copyright 2007-2009 Solarflare Communications Inc. | 3 | * Copyright 2007-2010 Solarflare Communications Inc. |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or modify it | 5 | * This program is free software; you can redistribute it and/or modify it |
6 | * under the terms of the GNU General Public License version 2 as published | 6 | * under the terms of the GNU General Public License version 2 as published |
@@ -11,21 +11,16 @@ | |||
11 | #define EFX_PHY_H | 11 | #define EFX_PHY_H |
12 | 12 | ||
13 | /**************************************************************************** | 13 | /**************************************************************************** |
14 | * 10Xpress (SFX7101 and SFT9001) PHYs | 14 | * 10Xpress (SFX7101) PHY |
15 | */ | 15 | */ |
16 | extern struct efx_phy_operations falcon_sfx7101_phy_ops; | 16 | extern const struct efx_phy_operations falcon_sfx7101_phy_ops; |
17 | extern struct efx_phy_operations falcon_sft9001_phy_ops; | ||
18 | 17 | ||
19 | extern void tenxpress_set_id_led(struct efx_nic *efx, enum efx_led_mode mode); | 18 | extern void tenxpress_set_id_led(struct efx_nic *efx, enum efx_led_mode mode); |
20 | 19 | ||
21 | /* Wait for the PHY to boot. Return 0 on success, -EINVAL if the PHY failed | ||
22 | * to boot due to corrupt flash, or some other negative error code. */ | ||
23 | extern int sft9001_wait_boot(struct efx_nic *efx); | ||
24 | |||
25 | /**************************************************************************** | 20 | /**************************************************************************** |
26 | * AMCC/Quake QT202x PHYs | 21 | * AMCC/Quake QT202x PHYs |
27 | */ | 22 | */ |
28 | extern struct efx_phy_operations falcon_qt202x_phy_ops; | 23 | extern const struct efx_phy_operations falcon_qt202x_phy_ops; |
29 | 24 | ||
30 | /* These PHYs provide various H/W control states for LEDs */ | 25 | /* These PHYs provide various H/W control states for LEDs */ |
31 | #define QUAKE_LED_LINK_INVAL (0) | 26 | #define QUAKE_LED_LINK_INVAL (0) |
@@ -42,9 +37,20 @@ extern struct efx_phy_operations falcon_qt202x_phy_ops; | |||
42 | extern void falcon_qt202x_set_led(struct efx_nic *p, int led, int state); | 37 | extern void falcon_qt202x_set_led(struct efx_nic *p, int led, int state); |
43 | 38 | ||
44 | /**************************************************************************** | 39 | /**************************************************************************** |
40 | * Transwitch CX4 retimer | ||
41 | */ | ||
42 | extern const struct efx_phy_operations falcon_txc_phy_ops; | ||
43 | |||
44 | #define TXC_GPIO_DIR_INPUT 0 | ||
45 | #define TXC_GPIO_DIR_OUTPUT 1 | ||
46 | |||
47 | extern void falcon_txc_set_gpio_dir(struct efx_nic *efx, int pin, int dir); | ||
48 | extern void falcon_txc_set_gpio_val(struct efx_nic *efx, int pin, int val); | ||
49 | |||
50 | /**************************************************************************** | ||
45 | * Siena managed PHYs | 51 | * Siena managed PHYs |
46 | */ | 52 | */ |
47 | extern struct efx_phy_operations efx_mcdi_phy_ops; | 53 | extern const struct efx_phy_operations efx_mcdi_phy_ops; |
48 | 54 | ||
49 | extern int efx_mcdi_mdio_read(struct efx_nic *efx, unsigned int bus, | 55 | extern int efx_mcdi_mdio_read(struct efx_nic *efx, unsigned int bus, |
50 | unsigned int prtad, unsigned int devad, | 56 | unsigned int prtad, unsigned int devad, |