linux/drivers/net/wireless/atmel/at76c50x-usb.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (c) 2002,2003 Oliver Kurth
 *	     (c) 2003,2004 Joerg Albert <[email protected]>
 *	     (c) 2007 Guido Guenther <[email protected]>
 *
 * This driver was based on information from the Sourceforge driver
 * released and maintained by Atmel:
 *
 *  http://sourceforge.net/projects/atmelwlandriver/
 *
 * Although the code was completely re-written,
 * it would have been impossible without Atmel's decision to
 * release an Open Source driver (unfortunately the firmware was
 * kept binary only). Thanks for that decision to Atmel!
 */

#ifndef _AT76_USB_H
#define _AT76_USB_H

/* Board types */
enum board_type {};

#define CMD_STATUS_IDLE
#define CMD_STATUS_COMPLETE
#define CMD_STATUS_UNKNOWN
#define CMD_STATUS_INVALID_PARAMETER
#define CMD_STATUS_FUNCTION_NOT_SUPPORTED
#define CMD_STATUS_TIME_OUT
#define CMD_STATUS_IN_PROGRESS
#define CMD_STATUS_HOST_FAILURE
#define CMD_STATUS_SCAN_FAILED

/* answers to get op mode */
#define OPMODE_NONE
#define OPMODE_NORMAL_NIC_WITH_FLASH
#define OPMODE_HW_CONFIG_MODE
#define OPMODE_DFU_MODE_WITH_FLASH
#define OPMODE_NORMAL_NIC_WITHOUT_FLASH

#define CMD_SET_MIB
#define CMD_GET_MIB
#define CMD_SCAN
#define CMD_JOIN
#define CMD_START_IBSS
#define CMD_RADIO_ON
#define CMD_RADIO_OFF
#define CMD_STARTUP

#define MIB_LOCAL
#define MIB_MAC_ADDR
#define MIB_MAC
#define MIB_MAC_MGMT
#define MIB_MAC_WEP
#define MIB_PHY
#define MIB_FW_VERSION
#define MIB_MDOMAIN

#define ADHOC_MODE
#define INFRASTRUCTURE_MODE

/* values for struct mib_local, field preamble_type */
#define PREAMBLE_TYPE_LONG
#define PREAMBLE_TYPE_SHORT
#define PREAMBLE_TYPE_AUTO

/* values for tx_rate */
#define TX_RATE_1MBIT
#define TX_RATE_2MBIT
#define TX_RATE_5_5MBIT
#define TX_RATE_11MBIT
#define TX_RATE_AUTO

/* power management modes */
#define AT76_PM_OFF
#define AT76_PM_ON
#define AT76_PM_SMART

struct hwcfg_r505 {} __packed;

struct hwcfg_rfmd {} __packed;

struct hwcfg_intersil {} __packed;

at76_hwcfg;

#define WEP_SMALL_KEY_LEN
#define WEP_LARGE_KEY_LEN
#define WEP_KEYS

struct at76_card_config {} __packed;

struct at76_command {} __packed;

/* Length of Atmel-specific Rx header before 802.11 frame */
#define AT76_RX_HDRLEN

struct at76_rx_buffer {} __packed;

/* Length of Atmel-specific Tx header before 802.11 frame */
#define AT76_TX_HDRLEN

struct at76_tx_buffer {} __packed;

/* defines for scan_type below */
#define SCAN_TYPE_ACTIVE
#define SCAN_TYPE_PASSIVE

struct at76_req_scan {} __packed;

struct at76_req_ibss {} __packed;

struct at76_req_join {} __packed;

struct mib_local {} __packed;

struct mib_mac_addr {} __packed;

struct mib_mac {} __packed;

struct mib_mac_mgmt {} __packed;

struct mib_mac_wep {} __packed;

struct mib_phy {} __packed;

struct mib_fw_version {} __packed;

struct mib_mdomain {} __packed;

struct set_mib_buffer {} __packed;

struct at76_fw_header {} __packed;

/* a description of a regulatory domain and the allowed channels */
struct reg_domain {};

/* Data for one loaded firmware file */
struct fwentry {};

struct at76_priv {};

#define AT76_SUPPORTED_FILTERS

#define SCAN_POLL_INTERVAL

#define CMD_COMPLETION_TIMEOUT

#define DEF_RTS_THRESHOLD
#define DEF_FRAG_THRESHOLD
#define DEF_SHORT_RETRY_LIMIT
#define DEF_CHANNEL
#define DEF_SCAN_MIN_TIME
#define DEF_SCAN_MAX_TIME

/* the max padding size for tx in bytes (see calc_padding) */
#define MAX_PADDING_SIZE

#endif				/* _AT76_USB_H */