bcm47xx.h 757 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
  4. */
  5. #ifndef __ASM_BCM47XX_H
  6. #define __ASM_BCM47XX_H
  7. #include <linux/ssb/ssb.h>
  8. #include <linux/bcma/bcma.h>
  9. #include <linux/bcma/bcma_soc.h>
  10. #include <linux/bcm47xx_nvram.h>
  11. #include <linux/bcm47xx_sprom.h>
  12. enum bcm47xx_bus_type {
  13. #ifdef CONFIG_BCM47XX_SSB
  14. BCM47XX_BUS_TYPE_SSB,
  15. #endif
  16. #ifdef CONFIG_BCM47XX_BCMA
  17. BCM47XX_BUS_TYPE_BCMA,
  18. #endif
  19. };
  20. union bcm47xx_bus {
  21. #ifdef CONFIG_BCM47XX_SSB
  22. struct ssb_bus ssb;
  23. #endif
  24. #ifdef CONFIG_BCM47XX_BCMA
  25. struct bcma_soc bcma;
  26. #endif
  27. };
  28. extern union bcm47xx_bus bcm47xx_bus;
  29. extern enum bcm47xx_bus_type bcm47xx_bus_type;
  30. void bcm47xx_set_system_type(u16 chip_id);
  31. #endif /* __ASM_BCM47XX_H */