54 for (i = 0; i <
len; ++i )
64 for ( i = 0; i <
len; ++i )
77 for ( i = 0; i < ( ms / 100 ); ++i )
85 if (i == ( ms / 100 ) )
123 for ( i = 0; i < 20000; ++i )
128 (
status != 0xFFFFFFFFu ) ) )
135 DBGC (
nic,
"Boot code hanged" );
141 for ( i = 0; i < 48000; ++i )
152 DBGC (
nic,
"FW Restart timed out" );
162 DBGC (
nic,
"FW Restart failed" );
171 DBGC (
nic,
"Dynamic FW load not implemented" );
206 return ( (
val & 0xf ) != 0 ) && ( (
val & 0xF0 ) != 0 );
int atl2_hw_reset(struct atl_nic *nic)
#define ATL2_RESET_STATUS_BOOT_FAILED_MASK
An aQuanita network card.
int atl2_hw_fw_init_(struct atl_nic *nic)
#define ATL2_RESET_STATUS_REQ_GSR
#define ATL2_LINK_STS_OUT_OFF
#define ATL2_MIF_SHARED_BUF_OUT
int atl2_hw_get_mac(struct atl_nic *nic, uint8_t *mac)
#define ATL2_MIF_SHARED_BUF_IN
void atl2_hw_write_shared_in_(struct atl_nic *nic, uint32_t offset, uint32_t *data, uint32_t len)
uint8_t mac[ETH_ALEN]
MAC address.
int atl2_hw_finish_ack_(struct atl_nic *nic, uint32_t ms)
#define ATL2_HOST_FINISHED_WRITE
#define ATL2_MCP_BUSY_WRITE
#define ATL2_HOST_MODE_ACTIVE
#define ATL2_LINK_OPTS_IN_OFF
#define ENOTSUP
Operation not supported.
int(* reset)(struct atl_nic *nic)
void * memcpy(void *dest, const void *src, size_t len) __nonnull
#define ATL2_GLB_RST_CTRL2
#define ATL2_HOST_ITR_REQ
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
#define ATL_WRITE_REG(VAL, REG)
void atl2_hw_read_shared_in_(struct atl_nic *nic, uint32_t offset, uint32_t *data, uint32_t len)
int atl2_hw_stop(struct atl_nic *nic)
#define ATL2_MAC_ADDR_IN_OFF
static int atl2_hw_boot_completed_(struct atl_nic *nic)
#define ATL_READ_REG(REG)
#define ETIME
Timer expired.
int atl2_hw_get_link(struct atl_nic *nic)
Marvell AQtion family network card driver definitions.
#define ATL2_RESET_STATUS_BC_STARTED
int atl2_hw_start(struct atl_nic *nic)
struct atl_hw_ops atl2_hw
#define EIO
Input/output error.
#define ATL2_FW_HOST_INTERRUPT_REQUEST_READY
u8 request[0]
List of IEs requested.
uint8_t data[48]
Additional event data.
uint16_t offset
Offset to command line.
#define ATL2_RESET_STATUS_BOOT_COMPLETED_MASK
#define ATL2_LINK_CTRL_IN_OFF