iPXE
|
#include <etherboot.h>
#include <nic.h>
#include <ipxe/pci.h>
#include <ipxe/ethernet.h>
#include "wlan_compat.h"
#include "p80211hdr.h"
#include "hfa384x.h"
#include <errno.h>
Go to the source code of this file.
Data Structures | |
struct | hfa384x |
struct | wlan_llc |
struct | wlan_snap |
struct | wlan_80211hdr |
Typedefs | |
typedef struct hfa384x | hfa384x_t |
typedef struct wlan_llc | wlan_llc_t |
typedef struct wlan_snap | wlan_snap_t |
typedef struct wlan_80211hdr | wlan_80211hdr_t |
Variables | |
static const char | hardcoded_ssid [] = "" |
static hfa384x_t | hw_global |
static const wlan_llc_t | wlan_llc_snap = { 0xaa, 0xaa, 0x03 } |
static struct nic_operations | prism2_operations |
#define hfa384x2host_16 | ( | n | ) | (__le16_to_cpu((uint16_t)(n))) |
#define hfa384x2host_32 | ( | n | ) | (__le32_to_cpu((uint32_t)(n))) |
#define host2hfa384x_16 | ( | n | ) | (__cpu_to_le16((uint16_t)(n))) |
#define host2hfa384x_32 | ( | n | ) | (__cpu_to_le32((uint32_t)(n))) |
#define PLX_LOCAL_CONFIG_REGISTER_BASE ( PCI_BASE_ADDRESS_1 ) |
#define PLX_LOCAL_ADDRESS_SPACE_0_BASE ( PCI_BASE_ADDRESS_2 ) |
#define PLX_LOCAL_ADDRESS_SPACE_1_BASE ( PCI_BASE_ADDRESS_3 ) |
#define PLX_LOCAL_ADDRESS_SPACE_2_BASE ( PCI_BASE_ADDRESS_4 ) |
#define PLX_LOCAL_ADDRESS_SPACE_3_BASE ( PCI_BASE_ADDRESS_5 ) |
#define PRISM2_PLX_ATTR_MEM_BASE ( PLX_LOCAL_ADDRESS_SPACE_0_BASE ) |
#define PRISM2_PLX_IO_BASE ( PLX_LOCAL_ADDRESS_SPACE_1_BASE ) |
#define PRISM2_PCI_MEM_BASE ( PCI_BASE_ADDRESS_0 ) |
#define COR_OFFSET ( 0x3e0 ) /* COR attribute offset of Prism2 PC card */ |
#define COR_VALUE ( 0x41 ) /* Enable PC card with irq in level trigger (but interrupts disabled) */ |
typedef struct wlan_llc wlan_llc_t |
typedef struct wlan_snap wlan_snap_t |
typedef struct wlan_80211hdr wlan_80211hdr_t |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
Definition at line 183 of file prism2.c.
References inw(), readw(), and reg.
Referenced by hfa384x_docmd_wait(), hfa384x_getreg_noswap(), hfa384x_prepare_bap(), hfa384x_wait_for_event(), prism2_poll(), prism2_probe(), and prism2_transmit().
Definition at line 193 of file prism2.c.
References outw, reg, val, and writew.
Referenced by hfa384x_docmd_wait(), hfa384x_prepare_bap(), hfa384x_setreg_noswap(), hfa384x_wait_for_event(), prism2_poll(), and prism2_probe().
Definition at line 207 of file prism2.c.
References hfa384x_getreg(), and reg.
Referenced by hfa384x_copy_from_bap(), and hfa384x_copy_to_bap().
Definition at line 211 of file prism2.c.
References hfa384x_setreg(), reg, and val.
Referenced by hfa384x_copy_to_bap().
|
static |
Definition at line 238 of file prism2.c.
References cmd, ETIMEDOUT, HFA384x_CMD, HFA384x_CMD_ISBUSY, HFA384x_EVACK, HFA384x_EVACK_CMD, HFA384x_EVSTAT, HFA384x_EVSTAT_ISCMD, hfa384x_getreg(), HFA384x_PARAM0, HFA384x_PARAM1, HFA384x_PARAM2, HFA384x_RESP0, HFA384x_RESP1, HFA384x_RESP2, hfa384x_setreg(), HFA384x_STATUS, HFA384x_STATUS_RESULT_GET, printf(), reg, and udelay().
Referenced by hfa384x_cmd_access(), prism2_probe(), and prism2_transmit().
Definition at line 300 of file prism2.c.
References BAP_TIMEOUT, EINVAL, HFA384x_BAP_OFFSET_MAX, hfa384x_getreg(), HFA384x_OFFSET0, HFA384x_OFFSET_ISBUSY, HFA384x_OFFSET_ISERR, HFA384x_SELECT0, hfa384x_setreg(), offset, reg, result, and udelay().
Referenced by hfa384x_copy_from_bap(), and hfa384x_copy_to_bap().
|
static |
Definition at line 344 of file prism2.c.
References HFA384x_DATA0, hfa384x_getreg_noswap(), hfa384x_prepare_bap(), len, offset, printf(), reg, and result.
Referenced by hfa384x_drvr_getconfig(), prism2_poll(), prism2_probe(), and prism2_transmit().
|
static |
Definition at line 383 of file prism2.c.
References HFA384x_DATA0, hfa384x_getreg_noswap(), hfa384x_prepare_bap(), hfa384x_setreg_noswap(), len, offset, printf(), and result.
Referenced by hfa384x_drvr_setconfig(), and prism2_transmit().
Definition at line 426 of file prism2.c.
References HFA384x_CMD_CMDCODE_SET, HFA384x_CMD_WRITE_SET, HFA384x_CMDCODE_ACCESS, hfa384x_docmd_wait(), and write.
Referenced by hfa384x_drvr_getconfig(), and hfa384x_drvr_setconfig().
Definition at line 445 of file prism2.c.
References hfa384x2host_16, hfa384x_cmd_access(), hfa384x_copy_from_bap(), len, printf(), hfa384x_record::reclen, and result.
Referenced by prism2_probe().
Definition at line 518 of file prism2.c.
References hfa384x_cmd_access(), hfa384x_copy_to_bap(), host2hfa384x_16, len, printf(), hfa384x_record::reclen, result, and hfa384x_record::rid.
Referenced by hfa384x_drvr_setconfig16(), and prism2_probe().
Definition at line 555 of file prism2.c.
References hfa384x_drvr_setconfig(), host2hfa384x_16, val, and value.
Referenced by prism2_probe().
|
static |
Definition at line 587 of file prism2.c.
References count, HFA384x_EVACK, HFA384x_EVSTAT, hfa384x_getreg(), hfa384x_setreg(), printf(), reg, timeout(), and udelay().
Referenced by prism2_probe(), and prism2_transmit().
|
static |
Definition at line 609 of file prism2.c.
References ETH_HLEN, hfa384x2host_16, hfa384x2host_32, hfa384x_copy_from_bap(), HFA384x_EVACK, HFA384x_EVACK_RX_SET, HFA384x_EVSTAT, HFA384x_EVSTAT_ISRX, hfa384x_getreg(), HFA384x_RX_DATA_OFF, HFA384x_RXFID, hfa384x_setreg(), hw_global, nic::packet, nic::packetlen, reg, result, and rxdesc::status.
|
static |
Definition at line 661 of file prism2.c.
References HFA384x_ALLOCFID, HFA384x_CMD_CMDCODE_SET, HFA384x_CMDCODE_ALLOC, HFA384x_CMDCODE_TX, hfa384x_copy_from_bap(), hfa384x_copy_to_bap(), hfa384x_docmd_wait(), HFA384x_DRVR_TXBUF_MAX, HFA384x_EVACK_INFO, HFA384x_EVSTAT_ALLOC, HFA384x_EVSTAT_ISTXEXC, HFA384x_EVSTAT_TX, HFA384x_EVSTAT_TXEXC, hfa384x_getreg(), HFA384x_TX_MACPORT_SET, HFA384x_TX_STRUCTYPE_SET, HFA384x_TX_TXEX_SET, HFA384x_TX_TXOK_SET, HFA384x_TXCOMPLFID, HFA384x_TXSTATUS_ISACKERR, HFA384x_TXSTATUS_ISAGEDERR, HFA384x_TXSTATUS_ISDISCON, HFA384x_TXSTATUS_ISFORMERR, HFA384x_TXSTATUS_ISRETRYERR, hfa384x_wait_for_event(), host2hfa384x_16, host2ieee16, htons, hw_global, memcpy(), memset(), nic::node_addr, printf(), result, wlan_80211hdr::snap, status, wlan_snap::type, WLAN_ADDR_LEN, WLAN_FSTYPE_DATAONLY, WLAN_FTYPE_DATA, wlan_llc_snap, WLAN_SET_FC_FSTYPE, WLAN_SET_FC_FTYPE, and WLAN_SET_FC_TODS.
Definition at line 736 of file prism2.c.
Referenced by prism2_pci_disable(), and prism2_plx_disable().
|
static |
Definition at line 769 of file prism2.c.
References DBG, eth_ntoa(), hfa384x_InfFrame::framelen, hardcoded_ssid, hfa384x2host_16, HFA384x_CMD_CMDCODE_SET, HFA384x_CMD_MACPORT_SET, HFA384x_CMDCODE_ENABLE, HFA384x_CMDCODE_INIT, HFA384x_CNFAUTHENTICATION_OPENSYSTEM, hfa384x_copy_from_bap(), hfa384x_docmd_wait(), hfa384x_drvr_getconfig(), hfa384x_drvr_setconfig(), hfa384x_drvr_setconfig16(), HFA384x_EVACK, HFA384x_EVSTAT_INFO, hfa384x_getreg(), HFA384x_INFOFID, HFA384x_INTEN, HFA384x_IT_LINKSTATUS, HFA384x_LINK_CONNECTED, HFA384x_RID_CNFAUTHENTICATION, HFA384x_RID_CNFDESIREDSSID, HFA384x_RID_CNFDESIREDSSID_LEN, HFA384x_RID_CNFMAXDATALEN, HFA384x_RID_CNFOWNMACADDR, HFA384x_RID_CNFOWNMACADDR_LEN, HFA384x_RID_CNFPORTTYPE, HFA384x_RID_CURRENTBSSID, HFA384x_RID_TXRATECNTL, hfa384x_setreg(), hfa384x_wait_for_event(), hfa384x_InfFrame::info, hfa384x_InfFrame::infotype, nic::irqno, hfa384x_LinkStatus::linkstatus, hfa384x_infodata::linkstatus, MAX_JOIN_INFO_COUNT, memset(), nic::nic_op, nic::node_addr, printf(), prism2_operations, result, ssid, WLAN_BSSID_LEN, and WLAN_DATA_MAXLEN.
Referenced by prism2_pci_probe(), and prism2_plx_probe().
|
static |
Definition at line 38 of file prism2.c.
Referenced by prism2_probe().
|
static |
Definition at line 143 of file prism2.c.
Referenced by prism2_pci_probe(), prism2_plx_probe(), prism2_poll(), and prism2_transmit().
|
static |
Definition at line 157 of file prism2.c.
Referenced by prism2_transmit().
|
static |
Definition at line 758 of file prism2.c.
Referenced by prism2_probe().