rfkill.h 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef B43_RFKILL_H_
  2. #define B43_RFKILL_H_
  3. struct b43_wldev;
  4. #ifdef CONFIG_B43_RFKILL
  5. #include <linux/rfkill.h>
  6. struct b43_rfkill {
  7. /* The RFKILL subsystem data structure */
  8. struct rfkill *rfkill;
  9. /* The unique name of this rfkill switch */
  10. char name[32];
  11. /* Workqueue for asynchronous notification. */
  12. struct work_struct notify_work;
  13. };
  14. void b43_rfkill_init(struct b43_wldev *dev);
  15. void b43_rfkill_exit(struct b43_wldev *dev);
  16. void b43_rfkill_toggled(struct b43_wldev *dev, bool on);
  17. char * b43_rfkill_led_name(struct b43_wldev *dev);
  18. #else /* CONFIG_B43_RFKILL */
  19. /* No RFKILL support. */
  20. struct b43_rfkill {
  21. /* empty */
  22. };
  23. static inline void b43_rfkill_init(struct b43_wldev *dev)
  24. {
  25. }
  26. static inline void b43_rfkill_exit(struct b43_wldev *dev)
  27. {
  28. }
  29. static inline void b43_rfkill_toggled(struct b43_wldev *dev, bool on)
  30. {
  31. }
  32. static inline char * b43_rfkill_led_name(struct b43_wldev *dev)
  33. {
  34. return NULL;
  35. }
  36. #endif /* CONFIG_B43_RFKILL */
  37. #endif /* B43_RFKILL_H_ */