forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/usb.h
....@@ -1,25 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2012 Realtek Corporation. All rights reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of version 2 of the GNU General Public License as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * The full GNU General Public License is included in this distribution in the
15
- * file called LICENSE.
16
- *
17
- * Contact Information:
18
- * wlanfae <wlanfae@realtek.com>
19
- * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20
- * Hsinchu 300, Taiwan.
21
- *
22
- *****************************************************************************/
1
+/* SPDX-License-Identifier: GPL-2.0 */
2
+/* Copyright(c) 2009-2012 Realtek Corporation.*/
233
244 #ifndef __RTL_USB_H__
255 #define __RTL_USB_H__
....@@ -36,7 +16,6 @@
3616
3717 #define USB_HIGH_SPEED_BULK_SIZE 512
3818 #define USB_FULL_SPEED_BULK_SIZE 64
39
-
4019
4120 #define RTL_USB_MAX_TXQ_NUM 4 /* max tx queue */
4221 #define RTL_USB_MAX_EP_NUM 6 /* max ep number */
....@@ -73,10 +52,10 @@
7352 u32 ep_num)
7453 {
7554 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
55
+
7656 info->rate_driver_data[0] = rtlusb;
7757 info->rate_driver_data[1] = (void *)(__kernel_size_t)ep_num;
7858 }
79
-
8059
8160 /* Add suspend/resume later */
8261 enum rtl_usb_state {
....@@ -104,7 +83,7 @@
10483 /* Bcn control register setting */
10584 u32 reg_bcn_ctrl_val;
10685 /* for 88/92cu card disable */
107
- u8 disableHWSM;
86
+ u8 disablehwsm;
10887 /*QOS & EDCA */
10988 enum acm_method acm_method;
11089 /* irq . HIMR,HIMR_EX */
....@@ -152,8 +131,6 @@
152131
153132 #define rtl_usbpriv(hw) (((struct rtl_usb_priv *)(rtl_priv(hw))->priv))
154133 #define rtl_usbdev(usbpriv) (&((usbpriv)->dev))
155
-
156
-
157134
158135 int rtl_usb_probe(struct usb_interface *intf,
159136 const struct usb_device_id *id,