Skip to content

Commit 19fbc98

Browse files
committed
wifi: rtw89: Add some definitions for USB
JIRA: https://issues.redhat.com/browse/RHEL-114889 commit ed88640 Author: Bitterblue Smith <rtl8821cerfe2@gmail.com> Date: Mon Jun 30 23:46:32 2025 +0300 wifi: rtw89: Add some definitions for USB Add various register and bit definitions which will be used by the new USB driver. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/5812bb0c-20d0-48df-916d-25225eee8132@gmail.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 199c1fd commit 19fbc98

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

drivers/net/wireless/realtek/rtw89/reg.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,18 @@
382382
#define B_AX_ACH1_BUSY BIT(9)
383383
#define B_AX_ACH0_BUSY BIT(8)
384384

385+
#define R_AX_USB_ENDPOINT_0 0x1060
386+
#define B_AX_EP_IDX GENMASK(3, 0)
387+
#define R_AX_USB_ENDPOINT_2 0x1068
388+
#define NUMP 0x1
389+
#define R_AX_USB_HOST_REQUEST_2 0x1078
390+
#define B_AX_R_USBIO_MODE BIT(4)
391+
#define R_AX_USB3_MAC_NPI_CONFIG_INTF_0 0x1114
392+
#define B_AX_SSPHY_LFPS_FILTER BIT(31)
393+
#define R_AX_USB_WLAN0_1 0x1174
394+
#define B_AX_USBRX_RST BIT(9)
395+
#define B_AX_USBTX_RST BIT(8)
396+
385397
#define R_AX_PCIE_DBG_CTRL 0x11C0
386398
#define B_AX_DBG_DUMMY_MASK GENMASK(23, 16)
387399
#define B_AX_PCIE_DBG_SEL_MASK GENMASK(15, 13)
@@ -461,6 +473,17 @@
461473
#define R_AX_WP_PAGE_CTRL2_V1 0x17A4
462474
#define R_AX_WP_PAGE_INFO1_V1 0x17A8
463475

476+
#define R_AX_USB_ENDPOINT_0_V1 0x5060
477+
#define B_AX_EP_IDX_V1 GENMASK(3, 0)
478+
#define R_AX_USB_ENDPOINT_2_V1 0x5068
479+
#define R_AX_USB_HOST_REQUEST_2_V1 0x5078
480+
#define B_AX_R_USBIO_MODE_V1 BIT(4)
481+
#define R_AX_USB3_MAC_NPI_CONFIG_INTF_0_V1 0x5114
482+
#define B_AX_SSPHY_LFPS_FILTER_V1 BIT(31)
483+
#define R_AX_USB_WLAN0_1_V1 0x5174
484+
#define B_AX_USBRX_RST_V1 BIT(9)
485+
#define B_AX_USBTX_RST_V1 BIT(8)
486+
464487
#define R_AX_H2CREG_DATA0_V1 0x7140
465488
#define R_AX_H2CREG_DATA1_V1 0x7144
466489
#define R_AX_H2CREG_DATA2_V1 0x7148
@@ -1027,6 +1050,12 @@
10271050
#define B_AX_DISPATCHER_INTN_SEL_MASK GENMASK(7, 4)
10281051
#define B_AX_DISPATCHER_CH_SEL_MASK GENMASK(3, 0)
10291052

1053+
#define R_AX_RXDMA_SETTING 0x8908
1054+
#define B_AX_BULK_SIZE GENMASK(1, 0)
1055+
#define USB11_BULKSIZE 0x2
1056+
#define USB2_BULKSIZE 0x1
1057+
#define USB3_BULKSIZE 0x0
1058+
10301059
#define R_AX_RX_FUNCTION_STOP 0x8920
10311060
#define B_AX_HDR_RX_STOP BIT(0)
10321061

drivers/net/wireless/realtek/rtw89/txrx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static inline u8 rtw89_get_data_nss(struct rtw89_dev *rtwdev, u16 hw_rate)
7373
#define RTW89_TXWD_BODY0_FW_DL BIT(20)
7474
#define RTW89_TXWD_BODY0_CHANNEL_DMA GENMASK(19, 16)
7575
#define RTW89_TXWD_BODY0_HDR_LLC_LEN GENMASK(15, 11)
76+
#define RTW89_TXWD_BODY0_STF_MODE BIT(10)
7677
#define RTW89_TXWD_BODY0_WD_PAGE BIT(7)
7778
#define RTW89_TXWD_BODY0_HW_AMSDU BIT(5)
7879
#define RTW89_TXWD_BODY0_HW_SSN_SEL GENMASK(3, 2)

0 commit comments

Comments
 (0)