bcm47xx.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18. #ifndef __ASM_BCM47XX_H
  19. #define __ASM_BCM47XX_H
  20. #include <linux/ssb/ssb.h>
  21. #include <linux/bcma/bcma.h>
  22. #include <linux/bcma/bcma_soc.h>
  23. enum bcm47xx_bus_type {
  24. #ifdef CONFIG_BCM47XX_SSB
  25. BCM47XX_BUS_TYPE_SSB,
  26. #endif
  27. #ifdef CONFIG_BCM47XX_BCMA
  28. BCM47XX_BUS_TYPE_BCMA,
  29. #endif
  30. };
  31. union bcm47xx_bus {
  32. #ifdef CONFIG_BCM47XX_SSB
  33. struct ssb_bus ssb;
  34. #endif
  35. #ifdef CONFIG_BCM47XX_BCMA
  36. struct bcma_soc bcma;
  37. #endif
  38. };
  39. extern union bcm47xx_bus bcm47xx_bus;
  40. extern enum bcm47xx_bus_type bcm47xx_bus_type;
  41. #endif /* __ASM_BCM47XX_H */