bcm43xx_power.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Broadcom BCM43xx wireless driver
  3. Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
  4. Stefano Brivio <st3@riseup.net>
  5. Michael Buesch <mbuesch@freenet.de>
  6. Danny van Dyk <kugelfang@gentoo.org>
  7. Andreas Jaggi <andreas.jaggi@waterwave.ch>
  8. Some parts of the code in this file are derived from the ipw2200
  9. driver Copyright(c) 2003 - 2004 Intel Corporation.
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2 of the License, or
  13. (at your option) any later version.
  14. This program is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. GNU General Public License for more details.
  18. You should have received a copy of the GNU General Public License
  19. along with this program; see the file COPYING. If not, write to
  20. the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
  21. Boston, MA 02110-1301, USA.
  22. */
  23. #ifndef BCM43xx_POWER_H_
  24. #define BCM43xx_POWER_H_
  25. #include <linux/types.h>
  26. struct bcm43xx_private;
  27. int bcm43xx_pctl_init(struct bcm43xx_private *bcm);
  28. int bcm43xx_pctl_set_clock(struct bcm43xx_private *bcm, u16 mode);
  29. int bcm43xx_pctl_set_crystal(struct bcm43xx_private *bcm, int on);
  30. u16 bcm43xx_pctl_powerup_delay(struct bcm43xx_private *bcm);
  31. void bcm43xx_power_saving_ctl_bits(struct bcm43xx_private *bcm,
  32. int bit25, int bit26);
  33. #endif /* BCM43xx_POWER_H_ */