2007-02-10 22:25:27 +08:00
|
|
|
/*
|
|
|
|
* This file contains the function prototypes, data structure
|
|
|
|
* and defines for all the host/station commands
|
|
|
|
*/
|
2007-11-16 07:05:47 +08:00
|
|
|
#ifndef _LBS_HOSTCMD_H
|
|
|
|
#define _LBS_HOSTCMD_H
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
#include <linux/wireless.h>
|
|
|
|
#include "11d.h"
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
/* 802.11-related definitions */
|
|
|
|
|
|
|
|
/* TxPD descriptor */
|
|
|
|
struct txpd {
|
|
|
|
/* Current Tx packet status */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 tx_status;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* Tx control */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 tx_control;
|
|
|
|
__le32 tx_packet_location;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* Tx packet length */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 tx_packet_length;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* First 2 byte of destination MAC address */
|
|
|
|
u8 tx_dest_addr_high[2];
|
|
|
|
/* Last 4 byte of destination MAC address */
|
|
|
|
u8 tx_dest_addr_low[4];
|
|
|
|
/* Pkt Priority */
|
|
|
|
u8 priority;
|
|
|
|
/* Pkt Trasnit Power control */
|
|
|
|
u8 powermgmt;
|
|
|
|
/* Amount of time the packet has been queued in the driver (units = 2ms) */
|
|
|
|
u8 pktdelay_2ms;
|
|
|
|
/* reserved */
|
|
|
|
u8 reserved1;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* RxPD Descriptor */
|
|
|
|
struct rxpd {
|
|
|
|
/* Current Rx packet status */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 status;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* SNR */
|
|
|
|
u8 snr;
|
|
|
|
|
|
|
|
/* Tx control */
|
|
|
|
u8 rx_control;
|
|
|
|
|
|
|
|
/* Pkt length */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 pkt_len;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Noise Floor */
|
|
|
|
u8 nf;
|
|
|
|
|
|
|
|
/* Rx Packet Rate */
|
|
|
|
u8 rx_rate;
|
|
|
|
|
|
|
|
/* Pkt addr */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 pkt_ptr;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Next Rx RxPD addr */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 next_rxpd_ptr;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Pkt Priority */
|
|
|
|
u8 priority;
|
|
|
|
u8 reserved[3];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2007-12-12 01:33:30 +08:00
|
|
|
struct cmd_header {
|
|
|
|
__le16 command;
|
|
|
|
__le16 size;
|
|
|
|
__le16 seqnum;
|
|
|
|
__le16 result;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ctrl_node {
|
|
|
|
struct list_head list;
|
2007-12-15 17:22:52 +08:00
|
|
|
int result;
|
2007-12-06 00:58:11 +08:00
|
|
|
/* command response */
|
2007-12-12 01:33:30 +08:00
|
|
|
int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *);
|
2007-12-11 02:36:10 +08:00
|
|
|
unsigned long callback_arg;
|
2007-12-06 00:58:11 +08:00
|
|
|
/* command data */
|
2007-12-12 02:49:39 +08:00
|
|
|
struct cmd_header *cmdbuf;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* wait queue */
|
|
|
|
u16 cmdwaitqwoken;
|
|
|
|
wait_queue_head_t cmdwait_q;
|
|
|
|
};
|
|
|
|
|
2007-08-02 22:45:55 +08:00
|
|
|
/* Generic structure to hold all key types. */
|
|
|
|
struct enc_key {
|
|
|
|
u16 len;
|
2007-11-16 07:05:47 +08:00
|
|
|
u16 flags; /* KEY_INFO_* from defs.h */
|
|
|
|
u16 type; /* KEY_TYPE_* from defs.h */
|
2007-08-02 22:45:55 +08:00
|
|
|
u8 key[32];
|
2007-02-10 22:25:27 +08:00
|
|
|
};
|
|
|
|
|
2007-11-16 07:05:47 +08:00
|
|
|
/* lbs_offset_value */
|
|
|
|
struct lbs_offset_value {
|
2007-02-10 22:25:27 +08:00
|
|
|
u32 offset;
|
|
|
|
u32 value;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Define general data structure */
|
|
|
|
/* cmd_DS_GEN */
|
|
|
|
struct cmd_ds_gen {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 command;
|
|
|
|
__le16 size;
|
|
|
|
__le16 seqnum;
|
|
|
|
__le16 result;
|
2007-12-06 00:58:11 +08:00
|
|
|
void *cmdresp[0];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
#define S_DS_GEN sizeof(struct cmd_ds_gen)
|
2007-12-06 00:58:11 +08:00
|
|
|
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
/*
|
2007-08-02 23:31:18 +08:00
|
|
|
* Define data structure for CMD_GET_HW_SPEC
|
2007-02-10 22:25:27 +08:00
|
|
|
* This structure defines the response for the GET_HW_SPEC command
|
|
|
|
*/
|
|
|
|
struct cmd_ds_get_hw_spec {
|
2007-12-12 01:42:16 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
/* HW Interface version number */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 hwifversion;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* HW version number */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 version;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* Max number of TxPD FW can handle */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 nr_txpd;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* Max no of Multicast address */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 nr_mcast_adr;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* MAC address */
|
|
|
|
u8 permanentaddr[6];
|
|
|
|
|
|
|
|
/* region Code */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 regioncode;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Number of antenna used */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 nr_antenna;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2008-01-16 22:55:22 +08:00
|
|
|
/* FW release number, example 0x01030304 = 2.3.4p1 */
|
|
|
|
__le32 fwrelease;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Base Address of TxPD queue */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 wcb_base;
|
2007-02-10 22:25:27 +08:00
|
|
|
/* Read Pointer of RxPd queue */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 rxpd_rdptr;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Write Pointer of RxPd queue */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 rxpd_wrptr;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/*FW/HW capability */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 fwcapinfo;
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_subscribe_event {
|
2007-12-18 15:01:37 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 events;
|
2007-11-26 17:07:14 +08:00
|
|
|
|
|
|
|
/* A TLV to the CMD_802_11_SUBSCRIBE_EVENT command can contain a
|
|
|
|
* number of TLVs. From the v5.1 manual, those TLVs would add up to
|
|
|
|
* 40 bytes. However, future firmware might add additional TLVs, so I
|
|
|
|
* bump this up a bit.
|
|
|
|
*/
|
2007-12-18 15:01:37 +08:00
|
|
|
uint8_t tlv[128];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This scan handle Country Information IE(802.11d compliant)
|
2007-08-02 23:31:18 +08:00
|
|
|
* Define data structure for CMD_802_11_SCAN
|
2007-02-10 22:25:27 +08:00
|
|
|
*/
|
|
|
|
struct cmd_ds_802_11_scan {
|
2008-03-03 19:18:03 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
uint8_t bsstype;
|
|
|
|
uint8_t bssid[ETH_ALEN];
|
|
|
|
uint8_t tlvbuffer[0];
|
2007-02-10 22:25:27 +08:00
|
|
|
#if 0
|
|
|
|
mrvlietypes_ssidparamset_t ssidParamSet;
|
|
|
|
mrvlietypes_chanlistparamset_t ChanListParamSet;
|
|
|
|
mrvlietypes_ratesparamset_t OpRateSet;
|
|
|
|
#endif
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_scan_rsp {
|
2008-03-03 19:18:03 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 bssdescriptsize;
|
2008-03-03 19:18:03 +08:00
|
|
|
uint8_t nr_sets;
|
|
|
|
uint8_t bssdesc_and_tlvbuffer[0];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_get_log {
|
2008-03-17 19:45:58 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 mcasttxframe;
|
|
|
|
__le32 failed;
|
|
|
|
__le32 retry;
|
|
|
|
__le32 multiretry;
|
|
|
|
__le32 framedup;
|
|
|
|
__le32 rtssuccess;
|
|
|
|
__le32 rtsfailure;
|
|
|
|
__le32 ackfailure;
|
|
|
|
__le32 rxfrag;
|
|
|
|
__le32 mcastrxframe;
|
|
|
|
__le32 fcserror;
|
|
|
|
__le32 txframe;
|
|
|
|
__le32 wepundecryptable;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_mac_control {
|
2008-03-12 23:05:40 +08:00
|
|
|
struct cmd_header hdr;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2008-03-12 23:05:40 +08:00
|
|
|
u16 reserved;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_mac_multicast_adr {
|
2008-05-20 20:32:45 +08:00
|
|
|
struct cmd_header hdr;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 nr_of_adrs;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 maclist[ETH_ALEN * MRVDRV_MAX_MULTICAST_LIST_SIZE];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_authenticate {
|
|
|
|
u8 macaddr[ETH_ALEN];
|
|
|
|
u8 authtype;
|
|
|
|
u8 reserved[10];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_deauthenticate {
|
2008-08-22 05:46:18 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
u8 macaddr[ETH_ALEN];
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reasoncode;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_associate {
|
|
|
|
u8 peerstaaddr[6];
|
2007-08-02 22:43:44 +08:00
|
|
|
__le16 capability;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 listeninterval;
|
|
|
|
__le16 bcnperiod;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 dtimperiod;
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
mrvlietypes_ssidparamset_t ssidParamSet;
|
|
|
|
mrvlietypes_phyparamset_t phyparamset;
|
|
|
|
mrvlietypes_ssparamset_t ssparamset;
|
|
|
|
mrvlietypes_ratesparamset_t ratesParamSet;
|
|
|
|
#endif
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_associate_rsp {
|
|
|
|
struct ieeetypes_assocrsp assocRsp;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_set_wep {
|
2007-12-18 13:18:05 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
/* ACT_ADD, ACT_REMOVE or ACT_ENABLE */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* key Index selected for Tx */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 keyindex;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* 40, 128bit or TXWEP */
|
2007-12-18 13:18:05 +08:00
|
|
|
uint8_t keytype[4];
|
|
|
|
uint8_t keymaterial[4][16];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_3_get_stat {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 xmitok;
|
|
|
|
__le32 rcvok;
|
|
|
|
__le32 xmiterror;
|
|
|
|
__le32 rcverror;
|
|
|
|
__le32 rcvnobuffer;
|
|
|
|
__le32 rcvcrcerror;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_get_stat {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 txfragmentcnt;
|
|
|
|
__le32 mcasttxframecnt;
|
|
|
|
__le32 failedcnt;
|
|
|
|
__le32 retrycnt;
|
|
|
|
__le32 Multipleretrycnt;
|
|
|
|
__le32 rtssuccesscnt;
|
|
|
|
__le32 rtsfailurecnt;
|
|
|
|
__le32 ackfailurecnt;
|
|
|
|
__le32 frameduplicatecnt;
|
|
|
|
__le32 rxfragmentcnt;
|
|
|
|
__le32 mcastrxframecnt;
|
|
|
|
__le32 fcserrorcnt;
|
|
|
|
__le32 bcasttxframecnt;
|
|
|
|
__le32 bcastrxframecnt;
|
|
|
|
__le32 txbeacon;
|
|
|
|
__le32 rxbeacon;
|
|
|
|
__le32 wepundecryptable;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_snmp_mib {
|
2008-09-11 00:49:00 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
__le16 action;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 oid;
|
|
|
|
__le16 bufsize;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 value[128];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_mac_reg_map {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 buffersize;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 regmap[128];
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reserved;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_bbp_reg_map {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 buffersize;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 regmap[128];
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reserved;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_rf_reg_map {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 buffersize;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 regmap[64];
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reserved;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_mac_reg_access {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 offset;
|
|
|
|
__le32 value;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_bbp_reg_access {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 offset;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 value;
|
|
|
|
u8 reserved[3];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_rf_reg_access {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 offset;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 value;
|
|
|
|
u8 reserved[3];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_radio_control {
|
2007-12-18 11:43:48 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 control;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2007-11-21 06:44:28 +08:00
|
|
|
struct cmd_ds_802_11_beacon_control {
|
|
|
|
__le16 action;
|
|
|
|
__le16 beacon_enable;
|
|
|
|
__le16 beacon_period;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-11-21 06:44:28 +08:00
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_802_11_sleep_params {
|
2007-12-18 12:48:31 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
/* ACT_GET/ACT_SET */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Sleep clock error in ppm */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 error;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Wakeup offset in usec */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 offset;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Clock stabilization time in usec */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 stabletime;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* control periodic calibration */
|
2007-12-18 12:48:31 +08:00
|
|
|
uint8_t calcontrol;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* control the use of external sleep clock */
|
2007-12-18 12:48:31 +08:00
|
|
|
uint8_t externalsleepclk;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* reserved field, should be set to zero */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reserved;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_inactivity_timeout {
|
2007-12-18 12:04:37 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
/* ACT_GET/ACT_SET */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Inactivity timeout in msec */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 timeout;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rf_channel {
|
2007-12-12 05:54:15 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-12-12 05:54:15 +08:00
|
|
|
__le16 channel;
|
|
|
|
__le16 rftype; /* unused */
|
|
|
|
__le16 reserved; /* unused */
|
|
|
|
u8 channellist[32]; /* unused */
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rssi {
|
|
|
|
/* weighting factor */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 N;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 reserved_0;
|
|
|
|
__le16 reserved_1;
|
|
|
|
__le16 reserved_2;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rssi_rsp {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 SNR;
|
|
|
|
__le16 noisefloor;
|
|
|
|
__le16 avgSNR;
|
|
|
|
__le16 avgnoisefloor;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_mac_address {
|
2008-03-26 16:58:32 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 macadd[ETH_ALEN];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rf_tx_power {
|
2008-08-20 03:15:35 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2008-08-20 03:15:35 +08:00
|
|
|
__le16 curlevel;
|
|
|
|
s8 maxlevel;
|
|
|
|
s8 minlevel;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rf_antenna {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* Number of antennas or 0xffff(diversity) */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 antennamode;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2007-08-03 01:16:55 +08:00
|
|
|
struct cmd_ds_802_11_monitor_mode {
|
2007-12-07 23:30:44 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 mode;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-08-03 01:16:55 +08:00
|
|
|
|
2007-08-03 01:19:24 +08:00
|
|
|
struct cmd_ds_set_boot2_ver {
|
2007-12-12 01:33:30 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-12-07 23:30:44 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 version;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-08-03 01:19:24 +08:00
|
|
|
|
2007-12-17 10:43:40 +08:00
|
|
|
struct cmd_ds_802_11_fw_wake_method {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
__le16 action;
|
|
|
|
__le16 method;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-12-17 10:43:40 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_sleep_period {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
__le16 action;
|
|
|
|
__le16 period;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-12-17 10:43:40 +08:00
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_802_11_ps_mode {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 nullpktinterval;
|
|
|
|
__le16 multipledtim;
|
|
|
|
__le16 reserved;
|
|
|
|
__le16 locallisteninterval;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2008-03-26 20:22:11 +08:00
|
|
|
struct cmd_confirm_sleep {
|
|
|
|
struct cmd_header hdr;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2008-03-26 20:22:11 +08:00
|
|
|
__le16 nullpktinterval;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 multipledtim;
|
|
|
|
__le16 reserved;
|
|
|
|
__le16 locallisteninterval;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_data_rate {
|
2007-12-12 04:50:59 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-08-02 23:40:45 +08:00
|
|
|
__le16 reserved;
|
|
|
|
u8 rates[MAX_RATES];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_rate_adapt_rateset {
|
2008-05-24 17:59:49 +08:00
|
|
|
struct cmd_header hdr;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 enablehwauto;
|
|
|
|
__le16 bitmap;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_ad_hoc_start {
|
2008-08-22 09:46:59 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-08-02 23:18:40 +08:00
|
|
|
u8 ssid[IW_ESSID_MAX_SIZE];
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 bsstype;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 beaconperiod;
|
2008-08-22 09:46:59 +08:00
|
|
|
u8 dtimperiod; /* Reserved on v9 and later */
|
2007-02-10 22:25:27 +08:00
|
|
|
union IEEEtypes_ssparamset ssparamset;
|
|
|
|
union ieeetypes_phyparamset phyparamset;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 probedelay;
|
2007-08-02 22:43:44 +08:00
|
|
|
__le16 capability;
|
2007-08-02 23:40:45 +08:00
|
|
|
u8 rates[MAX_RATES];
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 tlv_memory_size_pad[100];
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2008-08-22 09:46:59 +08:00
|
|
|
struct cmd_ds_802_11_ad_hoc_result {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
u8 pad[3];
|
|
|
|
u8 bssid[ETH_ALEN];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2008-08-22 09:46:59 +08:00
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct adhoc_bssdesc {
|
2008-08-22 09:46:59 +08:00
|
|
|
u8 bssid[ETH_ALEN];
|
|
|
|
u8 ssid[IW_ESSID_MAX_SIZE];
|
2007-08-02 22:43:44 +08:00
|
|
|
u8 type;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 beaconperiod;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 dtimperiod;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le64 timestamp;
|
|
|
|
__le64 localtime;
|
2007-02-10 22:25:27 +08:00
|
|
|
union ieeetypes_phyparamset phyparamset;
|
|
|
|
union IEEEtypes_ssparamset ssparamset;
|
2007-08-02 22:43:44 +08:00
|
|
|
__le16 capability;
|
2007-08-02 23:40:45 +08:00
|
|
|
u8 rates[MAX_RATES];
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the
|
|
|
|
* Adhoc join command and will cause a binary layout mismatch with
|
|
|
|
* the firmware
|
|
|
|
*/
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_ad_hoc_join {
|
2008-08-22 09:46:59 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-08-02 22:43:44 +08:00
|
|
|
struct adhoc_bssdesc bss;
|
2008-08-22 09:46:59 +08:00
|
|
|
__le16 failtimeout; /* Reserved on v9 and later */
|
|
|
|
__le16 probedelay; /* Reserved on v9 and later */
|
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2008-08-22 09:46:59 +08:00
|
|
|
struct cmd_ds_802_11_ad_hoc_stop {
|
|
|
|
struct cmd_header hdr;
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_enable_rsn {
|
2007-12-18 13:47:17 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 enable;
|
2007-06-19 00:01:12 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
struct MrvlIEtype_keyParamSet {
|
|
|
|
/* type ID */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 type;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* length of Payload */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 length;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* type of key: WEP=0, TKIP=1, AES=2 */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 keytypeid;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* key control Info specific to a keytypeid */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 keyinfo;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* length of key */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 keylen;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* key material of size keylen */
|
|
|
|
u8 key[32];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2007-02-10 22:25:27 +08:00
|
|
|
|
2008-10-21 07:46:56 +08:00
|
|
|
#define MAX_WOL_RULES 16
|
|
|
|
|
|
|
|
struct host_wol_rule {
|
|
|
|
uint8_t rule_no;
|
|
|
|
uint8_t rule_ops;
|
|
|
|
__le16 sig_offset;
|
|
|
|
__le16 sig_length;
|
|
|
|
__le16 reserve;
|
|
|
|
__be32 sig_mask;
|
|
|
|
__be32 signature;
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2008-10-21 07:46:56 +08:00
|
|
|
|
|
|
|
struct wol_config {
|
|
|
|
uint8_t action;
|
|
|
|
uint8_t pattern;
|
|
|
|
uint8_t no_rules_in_cmd;
|
|
|
|
uint8_t result;
|
|
|
|
struct host_wol_rule rule[MAX_WOL_RULES];
|
2009-01-13 05:14:27 +08:00
|
|
|
} __attribute__ ((packed));
|
2008-10-21 07:46:56 +08:00
|
|
|
|
2007-12-13 04:19:29 +08:00
|
|
|
struct cmd_ds_host_sleep {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
__le32 criteria;
|
|
|
|
uint8_t gpio;
|
2008-10-21 07:46:56 +08:00
|
|
|
uint16_t gap;
|
|
|
|
struct wol_config wol_conf;
|
2007-12-13 04:19:29 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2008-10-21 07:46:56 +08:00
|
|
|
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_802_11_key_material {
|
2008-03-03 19:15:39 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2007-02-10 22:25:27 +08:00
|
|
|
struct MrvlIEtype_keyParamSet keyParamSet[2];
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_eeprom_access {
|
2008-03-26 17:03:48 +08:00
|
|
|
struct cmd_header hdr;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 offset;
|
2008-03-26 17:03:48 +08:00
|
|
|
__le16 len;
|
|
|
|
/* firmware says it returns a maximum of 20 bytes */
|
|
|
|
#define LBS_EEPROM_READ_LEN 20
|
|
|
|
u8 value[LBS_EEPROM_READ_LEN];
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_tpc_cfg {
|
2008-09-12 02:17:25 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
2008-09-12 02:17:25 +08:00
|
|
|
uint8_t enable;
|
|
|
|
int8_t P0;
|
|
|
|
int8_t P1;
|
|
|
|
int8_t P2;
|
|
|
|
uint8_t usesnr;
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2008-09-12 02:17:25 +08:00
|
|
|
|
|
|
|
struct cmd_ds_802_11_pa_cfg {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
__le16 action;
|
|
|
|
uint8_t enable;
|
|
|
|
int8_t P0;
|
|
|
|
int8_t P1;
|
|
|
|
int8_t P2;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_802_11_led_ctrl {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le16 numled;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 data[256];
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_afc {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 afc_auto;
|
2007-02-10 22:25:27 +08:00
|
|
|
union {
|
|
|
|
struct {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 threshold;
|
|
|
|
__le16 period;
|
2007-02-10 22:25:27 +08:00
|
|
|
};
|
|
|
|
struct {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 timing_offset; /* signed */
|
|
|
|
__le16 carrier_offset; /* signed */
|
2007-02-10 22:25:27 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_tx_rate_query {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 txrate;
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_get_tsf {
|
|
|
|
__le64 tsfvalue;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_bt_access {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le32 id;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 addr1[ETH_ALEN];
|
|
|
|
u8 addr2[ETH_ALEN];
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
struct cmd_ds_fwt_access {
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le32 id;
|
2007-05-26 01:53:26 +08:00
|
|
|
u8 valid;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 da[ETH_ALEN];
|
|
|
|
u8 dir;
|
|
|
|
u8 ra[ETH_ALEN];
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 ssn;
|
|
|
|
__le32 dsn;
|
|
|
|
__le32 metric;
|
2007-05-26 01:53:26 +08:00
|
|
|
u8 rate;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 hopcount;
|
|
|
|
u8 ttl;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 expiration;
|
2007-02-10 22:25:27 +08:00
|
|
|
u8 sleepmode;
|
2007-05-26 11:36:54 +08:00
|
|
|
__le32 snr;
|
|
|
|
__le32 references;
|
2007-05-26 01:53:26 +08:00
|
|
|
u8 prec[ETH_ALEN];
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2007-12-12 07:56:42 +08:00
|
|
|
|
|
|
|
struct cmd_ds_mesh_config {
|
|
|
|
struct cmd_header hdr;
|
|
|
|
|
|
|
|
__le16 action;
|
|
|
|
__le16 channel;
|
|
|
|
__le16 type;
|
|
|
|
__le16 length;
|
|
|
|
u8 data[128]; /* last position reserved */
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_mesh_access {
|
2007-12-12 04:23:59 +08:00
|
|
|
struct cmd_header hdr;
|
|
|
|
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 action;
|
|
|
|
__le32 data[32]; /* last position reserved */
|
2007-02-10 22:25:27 +08:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2007-05-26 00:12:06 +08:00
|
|
|
/* Number of stats counters returned by the firmware */
|
|
|
|
#define MESH_STATS_NUM 8
|
|
|
|
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_command {
|
|
|
|
/* command header */
|
2007-05-26 11:36:54 +08:00
|
|
|
__le16 command;
|
|
|
|
__le16 size;
|
|
|
|
__le16 seqnum;
|
|
|
|
__le16 result;
|
2007-02-10 22:25:27 +08:00
|
|
|
|
|
|
|
/* command Body */
|
|
|
|
union {
|
|
|
|
struct cmd_ds_802_11_ps_mode psmode;
|
|
|
|
struct cmd_ds_802_11_associate associate;
|
|
|
|
struct cmd_ds_802_11_authenticate auth;
|
|
|
|
struct cmd_ds_802_11_get_stat gstat;
|
|
|
|
struct cmd_ds_802_3_get_stat gstat_8023;
|
|
|
|
struct cmd_ds_802_11_rf_antenna rant;
|
2007-08-03 01:16:55 +08:00
|
|
|
struct cmd_ds_802_11_monitor_mode monitor;
|
2007-02-10 22:25:27 +08:00
|
|
|
struct cmd_ds_802_11_rssi rssi;
|
|
|
|
struct cmd_ds_802_11_rssi_rsp rssirsp;
|
|
|
|
struct cmd_ds_mac_reg_access macreg;
|
|
|
|
struct cmd_ds_bbp_reg_access bbpreg;
|
|
|
|
struct cmd_ds_rf_reg_access rfreg;
|
|
|
|
|
|
|
|
struct cmd_ds_802_11d_domain_info domaininfo;
|
|
|
|
struct cmd_ds_802_11d_domain_info domaininforesp;
|
|
|
|
|
|
|
|
struct cmd_ds_802_11_tpc_cfg tpccfg;
|
|
|
|
struct cmd_ds_802_11_afc afc;
|
|
|
|
struct cmd_ds_802_11_led_ctrl ledgpio;
|
|
|
|
|
|
|
|
struct cmd_tx_rate_query txrate;
|
|
|
|
struct cmd_ds_bt_access bt;
|
|
|
|
struct cmd_ds_fwt_access fwt;
|
|
|
|
struct cmd_ds_get_tsf gettsf;
|
2007-11-21 06:44:28 +08:00
|
|
|
struct cmd_ds_802_11_beacon_control bcn_ctrl;
|
2007-02-10 22:25:27 +08:00
|
|
|
} params;
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
#endif
|