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/wow.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_WOW_H__
    6 #define __RTW_WOW_H__
    7 
    8 #define PNO_CHECK_BYTE 4
    9 
   10 enum rtw_wow_pattern_type {
   11         RTW_PATTERN_BROADCAST = 0,
   12         RTW_PATTERN_MULTICAST,
   13         RTW_PATTERN_UNICAST,
   14         RTW_PATTERN_VALID,
   15         RTW_PATTERN_INVALID,
   16 };
   17 
   18 enum rtw_wake_reason {
   19         RTW_WOW_RSN_RX_PTK_REKEY = 0x1,
   20         RTW_WOW_RSN_RX_GTK_REKEY = 0x2,
   21         RTW_WOW_RSN_RX_DEAUTH = 0x8,
   22         RTW_WOW_RSN_DISCONNECT = 0x10,
   23         RTW_WOW_RSN_RX_MAGIC_PKT = 0x21,
   24         RTW_WOW_RSN_RX_PATTERN_MATCH = 0x23,
   25         RTW_WOW_RSN_RX_NLO = 0x55,
   26 };
   27 
   28 struct rtw_fw_media_status_iter_data {
   29         struct rtw_dev *rtwdev;
   30         u8 connect;
   31 };
   32 
   33 struct rtw_fw_key_type_iter_data {
   34         struct rtw_dev *rtwdev;
   35         u8 group_key_type;
   36         u8 pairwise_key_type;
   37 };
   38 
   39 static inline bool rtw_wow_mgd_linked(struct rtw_dev *rtwdev)
   40 {
   41         struct ieee80211_vif *wow_vif = rtwdev->wow.wow_vif;
   42         struct rtw_vif *rtwvif = (struct rtw_vif *)wow_vif->drv_priv;
   43 
   44         return (rtwvif->net_type == RTW_NET_MGD_LINKED);
   45 }
   46 
   47 static inline bool rtw_wow_no_link(struct rtw_dev *rtwdev)
   48 {
   49         struct ieee80211_vif *wow_vif = rtwdev->wow.wow_vif;
   50         struct rtw_vif *rtwvif = (struct rtw_vif *)wow_vif->drv_priv;
   51 
   52         return (rtwvif->net_type == RTW_NET_NO_LINK);
   53 }
   54 
   55 int rtw_wow_suspend(struct rtw_dev *rtwdev, struct cfg80211_wowlan *wowlan);
   56 int rtw_wow_resume(struct rtw_dev *rtwdev);
   57 
   58 #endif

Cache object: 62b04d7486df45d3428e477fe4876581


[ 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.