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