#include <linux/completion.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <linux/skbuff.h>
#include <linux/usb.h>
#include "zd_def.h"
Go to the source code of this file.
|
enum | devicetype { DEVICE_ZD1211 = 0,
DEVICE_ZD1211B = 1,
DEVICE_INSTALLER = 2
} |
|
enum | endpoints {
EP_CTRL = 0,
EP_DATA_OUT = 1,
EP_DATA_IN = 2,
EP_INT_IN = 3,
EP_REGS_OUT = 4
} |
|
enum | {
USB_MAX_TRANSFER_SIZE = 4096,
USB_MAX_RX_SIZE = 4800,
USB_MAX_IOWRITE16_COUNT = 15,
USB_MAX_IOWRITE32_COUNT = USB_MAX_IOWRITE16_COUNT/2,
USB_MAX_IOREAD16_COUNT = 15,
USB_MAX_IOREAD32_COUNT = USB_MAX_IOREAD16_COUNT/2,
USB_MIN_RFWRITE_BIT_COUNT = 16,
USB_MAX_RFWRITE_BIT_COUNT = 28,
USB_MAX_EP_INT_BUFFER = 64,
USB_ZD1211B_BCD_DEVICE = 0x4810
} |
|
enum | control_requests {
ReadMem = 0xf1,
GetMac = 0xf2,
Reset = 0xf4,
SetMac = 0xf5,
SetRxMode = 0xf5,
WriteROM = 0xf8,
SetReg = 0xfa,
GetReg = 0xfb,
WriteMem = 0xfc,
ReadROM = 0xfd,
USB_REQ_WRITE_REGS = 0x21,
USB_REQ_READ_REGS = 0x22,
USB_REQ_WRITE_RF = 0x23,
USB_REQ_PROG_FLASH = 0x24,
USB_REQ_EEPROM_START = 0x0128,
USB_REQ_EEPROM_MID = 0x28,
USB_REQ_EEPROM_END = 0x0228,
USB_REQ_FIRMWARE_DOWNLOAD = 0x30,
USB_REQ_FIRMWARE_CONFIRM = 0x31,
USB_REQ_FIRMWARE_READ_DATA = 0x32
} |
|
enum | { RF_IF_LE = 0x02,
RF_CLK = 0x04,
RF_DATA = 0x08
} |
|
enum | usb_int_id { USB_INT_TYPE = 0x01,
USB_INT_ID_REGS = 0x90,
USB_INT_ID_RETRY_FAILED = 0xa0
} |
|
enum | usb_int_flags { USB_INT_READ_REGS_EN = 0x01
} |
|
|
void | zd_usb_init (struct zd_usb *usb, struct ieee80211_hw *hw, struct usb_interface *intf) |
|
int | zd_usb_init_hw (struct zd_usb *usb) |
|
void | zd_usb_clear (struct zd_usb *usb) |
|
int | zd_usb_scnprint_id (struct zd_usb *usb, char *buffer, size_t size) |
|
void | zd_tx_watchdog_enable (struct zd_usb *usb) |
|
void | zd_tx_watchdog_disable (struct zd_usb *usb) |
|
int | zd_usb_enable_int (struct zd_usb *usb) |
|
void | zd_usb_disable_int (struct zd_usb *usb) |
|
int | zd_usb_enable_rx (struct zd_usb *usb) |
|
void | zd_usb_disable_rx (struct zd_usb *usb) |
|
void | zd_usb_reset_rx_idle_timer (struct zd_usb *usb) |
|
void | zd_usb_enable_tx (struct zd_usb *usb) |
|
void | zd_usb_disable_tx (struct zd_usb *usb) |
|
int | zd_usb_tx (struct zd_usb *usb, struct sk_buff *skb) |
|
int | zd_usb_ioread16v (struct zd_usb *usb, u16 *values, const zd_addr_t *addresses, unsigned int count) |
|
void | zd_usb_iowrite16v_async_start (struct zd_usb *usb) |
|
int | zd_usb_iowrite16v_async_end (struct zd_usb *usb, unsigned int timeout) |
|
int | zd_usb_iowrite16v_async (struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, unsigned int count) |
|
int | zd_usb_iowrite16v (struct zd_usb *usb, const struct zd_ioreq16 *ioreqs, unsigned int count) |
|
int | zd_usb_rfwrite (struct zd_usb *usb, u32 value, u8 bits) |
|
int | zd_usb_read_fw (struct zd_usb *usb, zd_addr_t addr, u8 *data, u16 len) |
|
#define ZD_TX_TIMEOUT (HZ * 5) |
- Enumerator:
USB_MAX_TRANSFER_SIZE |
|
USB_MAX_RX_SIZE |
|
USB_MAX_IOWRITE16_COUNT |
|
USB_MAX_IOWRITE32_COUNT |
|
USB_MAX_IOREAD16_COUNT |
|
USB_MAX_IOREAD32_COUNT |
|
USB_MIN_RFWRITE_BIT_COUNT |
|
USB_MAX_RFWRITE_BIT_COUNT |
|
USB_MAX_EP_INT_BUFFER |
|
USB_ZD1211B_BCD_DEVICE |
|
Definition at line 53 of file zd_usb.h.
- Enumerator:
-
Definition at line 98 of file zd_usb.h.
- Enumerator:
ReadMem |
|
GetMac |
|
Reset |
|
SetMac |
|
SetRxMode |
|
WriteROM |
|
SetReg |
|
GetReg |
|
WriteMem |
|
ReadROM |
|
USB_REQ_WRITE_REGS |
|
USB_REQ_READ_REGS |
|
USB_REQ_WRITE_RF |
|
USB_REQ_PROG_FLASH |
|
USB_REQ_EEPROM_START |
|
USB_REQ_EEPROM_MID |
|
USB_REQ_EEPROM_END |
|
USB_REQ_FIRMWARE_DOWNLOAD |
|
USB_REQ_FIRMWARE_CONFIRM |
|
USB_REQ_FIRMWARE_READ_DATA |
|
Definition at line 70 of file zd_usb.h.
- Enumerator:
DEVICE_ZD1211 |
|
DEVICE_ZD1211B |
|
DEVICE_INSTALLER |
|
Definition at line 39 of file zd_usb.h.
- Enumerator:
EP_CTRL |
|
EP_DATA_OUT |
|
EP_DATA_IN |
|
EP_INT_IN |
|
EP_REGS_OUT |
|
Definition at line 45 of file zd_usb.h.
- Enumerator:
USB_INT_TYPE |
|
USB_INT_ID_REGS |
|
USB_INT_ID_RETRY_FAILED |
|
Definition at line 117 of file zd_usb.h.
zd_usb_disable_tx - disable transmission : the zd1211rw-private USB structure
Frees all URBs in the free list and marks the transmission as disabled.
Definition at line 894 of file zd_usb.c.
zd_usb_enable_tx - enables transmission : a &struct zd_usb pointer
This function enables transmission and prepares the &zd_usb_tx data structure.
Definition at line 922 of file zd_usb.c.
zd_usb_tx: initiates transfer of a frame of the device
: the zd1211rw-private USB structure : a &struct sk_buff pointer
This function tranmits a frame to the device. It doesn't wait for completion. The frame must contain the control set and have all the control set information available.
The function returns 0 if the transfer has been successfully initiated.
Definition at line 1030 of file zd_usb.c.