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/ps.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_PS_H_
    6 #define __RTW_PS_H_
    7 
    8 #define RTW_LPS_THRESHOLD       50
    9 
   10 #define POWER_MODE_ACK          BIT(6)
   11 #define POWER_MODE_PG           BIT(4)
   12 #define POWER_TX_WAKE           BIT(1)
   13 #define POWER_MODE_LCLK         BIT(0)
   14 
   15 #define LEAVE_LPS_TRY_CNT       5
   16 #define LEAVE_LPS_TIMEOUT       msecs_to_jiffies(100)
   17 
   18 int rtw_enter_ips(struct rtw_dev *rtwdev);
   19 int rtw_leave_ips(struct rtw_dev *rtwdev);
   20 
   21 void rtw_power_mode_change(struct rtw_dev *rtwdev, bool enter);
   22 void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id);
   23 void rtw_leave_lps(struct rtw_dev *rtwdev);
   24 void rtw_leave_lps_deep(struct rtw_dev *rtwdev);
   25 enum rtw_lps_deep_mode rtw_get_lps_deep_mode(struct rtw_dev *rtwdev);
   26 #endif

Cache object: a2cf82307b9cd4f3827f1d6c2df2e655


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