wl12xx.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * This file is part of wl12xx
  3. *
  4. * Copyright (C) 2009 Nokia Corporation
  5. *
  6. * Contact: Luciano Coelho <luciano.coelho@nokia.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * version 2 as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA
  21. *
  22. */
  23. #ifndef _LINUX_WL12XX_H
  24. #define _LINUX_WL12XX_H
  25. #include <linux/err.h>
  26. struct wl1251_platform_data {
  27. int power_gpio;
  28. /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
  29. int irq;
  30. bool use_eeprom;
  31. };
  32. #ifdef CONFIG_WILINK_PLATFORM_DATA
  33. int wl1251_set_platform_data(const struct wl1251_platform_data *data);
  34. struct wl1251_platform_data *wl1251_get_platform_data(void);
  35. #else
  36. static inline
  37. int wl1251_set_platform_data(const struct wl1251_platform_data *data)
  38. {
  39. return -ENOSYS;
  40. }
  41. static inline
  42. struct wl1251_platform_data *wl1251_get_platform_data(void)
  43. {
  44. return ERR_PTR(-ENODATA);
  45. }
  46. #endif
  47. #endif