mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Ben Hutchings](/assets/img/avatar_default.png)
The 10Xpress PHY supports flash upgrades through MDIO, but needs to be put in upgrade mode at power-up. This adds a module parameter and other logic to support that. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
28 lines
954 B
C
28 lines
954 B
C
/****************************************************************************
|
|
* Driver for Solarflare Solarstorm network controllers and boards
|
|
* Copyright 2007 Solarflare Communications Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation, incorporated herein by reference.
|
|
*/
|
|
|
|
#ifndef EFX_BOARDS_H
|
|
#define EFX_BOARDS_H
|
|
|
|
/* Board IDs (must fit in 8 bits) */
|
|
enum efx_board_type {
|
|
EFX_BOARD_INVALID = 0,
|
|
EFX_BOARD_SFE4001 = 1, /* SFE4001 (10GBASE-T) */
|
|
EFX_BOARD_SFE4002 = 2,
|
|
/* Insert new types before here */
|
|
EFX_BOARD_MAX
|
|
};
|
|
|
|
extern int efx_set_board_info(struct efx_nic *efx, u16 revision_info);
|
|
extern int sfe4001_poweron(struct efx_nic *efx);
|
|
extern void sfe4001_poweroff(struct efx_nic *efx);
|
|
/* Are we putting the PHY into flash config mode */
|
|
extern unsigned int sfe4001_phy_flash_cfg;
|
|
|
|
#endif
|