30 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.4 * All rights reserved.5 *6 * Purpose: Handles 802.11 power management functions7 *8 * Author: Lyndon Chen9 *10 * Date: July 17, 200211 *12 */13 14#ifndef __POWER_H__15#define __POWER_H__16 17#include "device.h"18 19#define C_PWBT 1000 /* micro sec. power up before TBTT */20#define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */21#define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */22 23void PSvDisablePowerSaving(struct vnt_private *priv);24 25void PSvEnablePowerSaving(struct vnt_private *priv, unsigned short wListenInterval);26 27bool PSbIsNextTBTTWakeUp(struct vnt_private *priv);28 29#endif /* __POWER_H__ */30