power.h 786 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
  4. * All rights reserved.
  5. *
  6. * File: power.h
  7. *
  8. * Purpose: Handles 802.11 power management functions
  9. *
  10. * Author: Lyndon Chen
  11. *
  12. * Date: July 17, 2002
  13. *
  14. */
  15. #ifndef __POWER_H__
  16. #define __POWER_H__
  17. #include "device.h"
  18. #define C_PWBT 1000 /* micro sec. power up before TBTT */
  19. #define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */
  20. #define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */
  21. void PSvDisablePowerSaving(struct vnt_private *priv);
  22. void PSvEnablePowerSaving(struct vnt_private *priv, unsigned short wListenInterval);
  23. bool PSbIsNextTBTTWakeUp(struct vnt_private *priv);
  24. #endif /* __POWER_H__ */