76 for (
k = 0;
k < 1000;
k++) {
85 DBGC (
nic,
"MAC kickstart failed\n" );
108 for (
k = 0;
k < 1000;
k++) {
116 DBGC (
nic,
"FW kickstart failed\n" );
156 for (
k = 0;
k < 1000;
k++ ) {
163 DBGC (
nic,
"RBL Restart failed\n" );
170 for (
k = 0;
k < 1000;
k++ ) {
178 DBGC (
nic,
"FW kickstart failed\n" );
194 for (
k = 0;
k < 1000; ++
k ) {
198 boot_exit_code != 0 )
203 DBGC (
nic,
"Neither RBL nor FLB firmware started\n" );
207 rbl_enabled = ( boot_exit_code != 0 );
210 if ( ( (
fw_ver >> 24 ) & 0xFF ) >= 4 ) {
215 for (
k = 0;
k < sem_timeout; ++
k ) {
221 for (
k = 0;
k < sem_timeout; ++
k ) {
254 for ( i = 0; i < 100; ++i ) {
260 DBGC (
nic,
"Semaphore Register not set\n" );
266 for ( i = 0; i <
size; ++i,
addr += 4 ) {
270 for ( j = 0; j < 10000; ++j ) {
276 DBGC (
nic,
"Reading from CTRL3 Register Failed\n" );
293 if ( efuse_addr != 0) {
An aQuanita network card.
Global compiler definitions.
#define ATL_MAC_PHY_CTRL_RST_DIS
#define ATL_MPI_BOOT_EXIT_CODE
#define ATL_MIF_PWR_GATING_EN_CTRL_RESET
#define ATL_GLB_CTRL_RST_DIS
#define ATL_RX_CTRL_RST_DIS
uint8_t size
Entry size (in 32-bit words)
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
uint8_t mac[ETH_ALEN]
MAC address.
#define ATL_MAC_ADDRESS_SIZE
#define ATL_GEN_PROV9_ENABLE
#define ENOTSUP
Operation not supported.
int(* reset)(struct atl_nic *nic)
#define ATL_MIF_PWR_GATING_EN_CTRL
void * memcpy(void *dest, const void *src, size_t len) __nonnull
#define ATL_LINK_ADV_AUTONEG
#define ATL_GLB_CTRL2_MBOX_ERR_UP_RUN_STALL
#define ATL_GLB_CTRL2_MAC_KICK_START
int atl_hw_reset_flb_(struct atl_nic *nic)
#define ATL_GBL_MCP_SEM1_RELEASE
#define ATL_SEM_MAX_TIMEOUT
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
int atl_hw_start(struct atl_nic *nic)
#define ATL_WRITE_REG(VAL, REG)
int atl_hw_get_link(struct atl_nic *nic)
#define ATL_MPI_DAISY_CHAIN_STS_ERROR_STATUS
#define ATL_GLB_CTRL2_FW_RESET
#define ATL_SEM_RAM_RESET
#define ATL_READ_REG(REG)
int atl_hw_get_mac(struct atl_nic *nic, uint8_t *mac)
static const uint32_t k[64]
MD5 constants.
int atl_hw_reset(struct atl_nic *nic)
Marvell AQtion family network card driver definitions.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
#define ATL_MPI_DAISY_CHAIN_STS
#define cpu_to_be32(value)
int atl_hw_read_mem(struct atl_nic *nic, uint32_t addr, uint32_t *buffer, uint32_t size)
#define EIO
Input/output error.
#define ATL_GLB_CTRL2_MBOX_ERR_UP_RUN_NORMAL
#define ATL_GBL_NVR_PROV4_RESET
#define ATL_TX_CTRL_RST_DIS
#define ATL_MBOX_CTRL1_START_MBOX_OPT
int atl_hw_reset_rbl_(struct atl_nic *nic)
#define ATL_GLB_NVR_PROV4
int atl_hw_stop(struct atl_nic *nic)
#define ATL_GLB_STD_CTRL_RESET