linux/drivers/net/wireless/ath/ath10k/usb.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (c) 2004-2011 Atheros Communications Inc.
 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
 * Copyright (c) 2016-2017 Erik Stromdahl <[email protected]>
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#ifndef _USB_H_
#define _USB_H_

/* constants */
#define TX_URB_COUNT
#define RX_URB_COUNT
#define ATH10K_USB_RX_BUFFER_SIZE

#define ATH10K_USB_PIPE_INVALID

/* USB endpoint definitions */
#define ATH10K_USB_EP_ADDR_APP_CTRL_IN
#define ATH10K_USB_EP_ADDR_APP_DATA_IN
#define ATH10K_USB_EP_ADDR_APP_DATA2_IN
#define ATH10K_USB_EP_ADDR_APP_INT_IN

#define ATH10K_USB_EP_ADDR_APP_CTRL_OUT
#define ATH10K_USB_EP_ADDR_APP_DATA_LP_OUT
#define ATH10K_USB_EP_ADDR_APP_DATA_MP_OUT
#define ATH10K_USB_EP_ADDR_APP_DATA_HP_OUT

/* diagnostic command definitions */
#define ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD
#define ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP
#define ATH10K_USB_CONTROL_REQ_DIAG_CMD
#define ATH10K_USB_CONTROL_REQ_DIAG_RESP

#define ATH10K_USB_CTRL_DIAG_CC_READ
#define ATH10K_USB_CTRL_DIAG_CC_WRITE

#define ATH10K_USB_IS_BULK_EP(attr)
#define ATH10K_USB_IS_INT_EP(attr)
#define ATH10K_USB_IS_ISOC_EP(attr)
#define ATH10K_USB_IS_DIR_IN(addr)

struct ath10k_usb_ctrl_diag_cmd_write {} __packed;

struct ath10k_usb_ctrl_diag_cmd_read {} __packed;

struct ath10k_usb_ctrl_diag_resp_read {} __packed;

/* tx/rx pipes for usb */
enum ath10k_usb_pipe_id {};

struct ath10k_usb_pipe {};

#define ATH10K_USB_PIPE_FLAG_TX

/* usb device object */
struct ath10k_usb {};

/* usb urb object */
struct ath10k_urb_context {};

static inline struct ath10k_usb *ath10k_usb_priv(struct ath10k *ar)
{}

#endif