diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-11-04 15:34:28 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-11-06 00:49:57 -0500 |
commit | f41507245ef8b079685aba8da5b5b2b5e87e70bc (patch) | |
tree | be8c8aee6a6fc3c69d946dcd3fe24306bf89775e /drivers/net/sfc/net_driver.h | |
parent | 0a95f56323ce93dac354c1b2d54bf959a985cf7d (diff) |
sfc: Expose flash region storing boot code as MTD
The boot code that appears as a PCI expansion ROM on the SFC4000 is
stored in flash. Expose this as a standard MTD device to allow for
in-place upgrades.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index cdb11fad6050..c953eb19df42 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -655,6 +655,7 @@ union efx_multicast_hash { | |||
655 | * This field will be %NULL if no flash device is present. | 655 | * This field will be %NULL if no flash device is present. |
656 | * @spi_eeprom: SPI EEPROM device | 656 | * @spi_eeprom: SPI EEPROM device |
657 | * This field will be %NULL if no EEPROM device is present. | 657 | * This field will be %NULL if no EEPROM device is present. |
658 | * @spi_lock: SPI bus lock | ||
658 | * @n_rx_nodesc_drop_cnt: RX no descriptor drop count | 659 | * @n_rx_nodesc_drop_cnt: RX no descriptor drop count |
659 | * @nic_data: Hardware dependant state | 660 | * @nic_data: Hardware dependant state |
660 | * @mac_lock: MAC access lock. Protects @port_enabled, @phy_mode, | 661 | * @mac_lock: MAC access lock. Protects @port_enabled, @phy_mode, |
@@ -731,6 +732,7 @@ struct efx_nic { | |||
731 | 732 | ||
732 | struct efx_spi_device *spi_flash; | 733 | struct efx_spi_device *spi_flash; |
733 | struct efx_spi_device *spi_eeprom; | 734 | struct efx_spi_device *spi_eeprom; |
735 | struct mutex spi_lock; | ||
734 | 736 | ||
735 | unsigned n_rx_nodesc_drop_cnt; | 737 | unsigned n_rx_nodesc_drop_cnt; |
736 | 738 | ||