linux/drivers/net/wireless/ath/ath9k/hif_usb.h

/*
 * Copyright (c) 2010-2011 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef HTC_USB_H
#define HTC_USB_H

/* old firmware images */
#define FIRMWARE_AR7010_1_1
#define FIRMWARE_AR9271

/* supported Major FW version */
#define MAJOR_VERSION_REQ
#define MINOR_VERSION_REQ
/* minimal and maximal supported Minor FW version. */
#define FIRMWARE_MINOR_IDX_MAX
#define FIRMWARE_MINOR_IDX_MIN
#define HTC_FW_PATH

#define HTC_9271_MODULE_FW
#define HTC_7010_MODULE_FW

extern int htc_use_dev_fw;

#define IS_AR7010_DEVICE(_v)

#define AR9271_FIRMWARE
#define AR9271_FIRMWARE_TEXT
#define AR7010_FIRMWARE_TEXT

#define FIRMWARE_DOWNLOAD
#define FIRMWARE_DOWNLOAD_COMP

#define ATH_USB_RX_STREAM_MODE_TAG
#define ATH_USB_TX_STREAM_MODE_TAG

/* FIXME: Verify these numbers (with Windows) */
#define MAX_TX_URB_NUM
#define MAX_TX_BUF_NUM
#define MAX_TX_BUF_SIZE
#define MAX_TX_AGGR_NUM

#define MAX_RX_URB_NUM
#define MAX_RX_BUF_SIZE
#define MAX_PKT_NUM_IN_TRANSFER

#define MAX_REG_OUT_URB_NUM
#define MAX_REG_IN_URB_NUM

#define MAX_REG_IN_BUF_SIZE

/* USB Endpoint definition */
#define USB_WLAN_TX_PIPE
#define USB_WLAN_RX_PIPE
#define USB_REG_IN_PIPE
#define USB_REG_OUT_PIPE

#define USB_MSG_TIMEOUT

#define HIF_USB_MAX_RXPIPES
#define HIF_USB_MAX_TXPIPES

struct tx_buf {};

struct rx_buf {};

#define HIF_USB_TX_STOP
#define HIF_USB_TX_FLUSH

struct hif_usb_tx {};

struct cmd_buf {};

#define HIF_USB_START
#define HIF_USB_READY

struct hif_device_usb {};

int ath9k_hif_usb_init(void);
void ath9k_hif_usb_exit(void);
void ath9k_hif_usb_dealloc_urbs(struct hif_device_usb *hif_dev);

#endif /* HTC_USB_H */