diff options
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 3e9696c12caa..0da5ea7908b0 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -40,6 +40,8 @@ static inline int falcon_rev(struct efx_nic *efx) | |||
40 | * @set_id_led: Set state of identifying LED or revert to automatic function | 40 | * @set_id_led: Set state of identifying LED or revert to automatic function |
41 | * @monitor: Board-specific health check function | 41 | * @monitor: Board-specific health check function |
42 | * @fini: Shut down hardware and free resources | 42 | * @fini: Shut down hardware and free resources |
43 | * @i2c_adap: I2C adapter for on-board peripherals | ||
44 | * @i2c_data: Data for bit-banging algorithm | ||
43 | * @hwmon_client: I2C client for hardware monitor | 45 | * @hwmon_client: I2C client for hardware monitor |
44 | * @ioexp_client: I2C client for power/port control | 46 | * @ioexp_client: I2C client for power/port control |
45 | */ | 47 | */ |
@@ -52,18 +54,18 @@ struct falcon_board { | |||
52 | void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode); | 54 | void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode); |
53 | int (*monitor) (struct efx_nic *nic); | 55 | int (*monitor) (struct efx_nic *nic); |
54 | void (*fini) (struct efx_nic *nic); | 56 | void (*fini) (struct efx_nic *nic); |
57 | struct i2c_adapter i2c_adap; | ||
58 | struct i2c_algo_bit_data i2c_data; | ||
55 | struct i2c_client *hwmon_client, *ioexp_client; | 59 | struct i2c_client *hwmon_client, *ioexp_client; |
56 | }; | 60 | }; |
57 | 61 | ||
58 | /** | 62 | /** |
59 | * struct falcon_nic_data - Falcon NIC state | 63 | * struct falcon_nic_data - Falcon NIC state |
60 | * @pci_dev2: The secondary PCI device if present | 64 | * @pci_dev2: The secondary PCI device if present |
61 | * @i2c_data: Operations and state for I2C bit-bashing algorithm | ||
62 | * @board: Board state and functions | 65 | * @board: Board state and functions |
63 | */ | 66 | */ |
64 | struct falcon_nic_data { | 67 | struct falcon_nic_data { |
65 | struct pci_dev *pci_dev2; | 68 | struct pci_dev *pci_dev2; |
66 | struct i2c_algo_bit_data i2c_data; | ||
67 | struct falcon_board board; | 69 | struct falcon_board board; |
68 | }; | 70 | }; |
69 | 71 | ||