The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dev/rtw88/mac.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
    2 /* Copyright(c) 2018-2019  Realtek Corporation
    3  */
    4 
    5 #ifndef __RTW_MAC_H__
    6 #define __RTW_MAC_H__
    7 
    8 #define RTW_HW_PORT_NUM         5
    9 #define cut_version_to_mask(cut) (0x1 << ((cut) + 1))
   10 #define SDIO_LOCAL_OFFSET       0x10250000
   11 #define DDMA_POLLING_COUNT      1000
   12 #define C2H_PKT_BUF             256
   13 #define REPORT_BUF              128
   14 #define PHY_STATUS_SIZE         4
   15 #define ILLEGAL_KEY_GROUP       0xFAAAAA00
   16 
   17 /* HW memory address */
   18 #define OCPBASE_RXBUF_FW_88XX           0x18680000
   19 #define OCPBASE_TXBUF_88XX              0x18780000
   20 #define OCPBASE_ROM_88XX                0x00000000
   21 #define OCPBASE_IMEM_88XX               0x00030000
   22 #define OCPBASE_DMEM_88XX               0x00200000
   23 #define OCPBASE_EMEM_88XX               0x00100000
   24 
   25 #define RSVD_PG_DRV_NUM                 16
   26 #define RSVD_PG_H2C_EXTRAINFO_NUM       24
   27 #define RSVD_PG_H2C_STATICINFO_NUM      8
   28 #define RSVD_PG_H2CQ_NUM                8
   29 #define RSVD_PG_CPU_INSTRUCTION_NUM     0
   30 #define RSVD_PG_FW_TXBUF_NUM            4
   31 
   32 void rtw_set_channel_mac(struct rtw_dev *rtwdev, u8 channel, u8 bw,
   33                          u8 primary_ch_idx);
   34 int rtw_mac_power_on(struct rtw_dev *rtwdev);
   35 void rtw_mac_power_off(struct rtw_dev *rtwdev);
   36 int rtw_download_firmware(struct rtw_dev *rtwdev, struct rtw_fw_state *fw);
   37 int rtw_mac_init(struct rtw_dev *rtwdev);
   38 void rtw_mac_flush_queues(struct rtw_dev *rtwdev, u32 queues, bool drop);
   39 int rtw_ddma_to_fw_fifo(struct rtw_dev *rtwdev, u32 ocp_src, u32 size);
   40 
   41 static inline void rtw_mac_flush_all_queues(struct rtw_dev *rtwdev, bool drop)
   42 {
   43         rtw_mac_flush_queues(rtwdev, BIT(rtwdev->hw->queues) - 1, drop);
   44 }
   45 
   46 #endif

Cache object: 4a71c9384bd12501e0e0c101e0cb3301


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.