bcma_private.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef LINUX_BCMA_PRIVATE_H_
  2. #define LINUX_BCMA_PRIVATE_H_
  3. #ifndef pr_fmt
  4. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  5. #endif
  6. #include <linux/bcma/bcma.h>
  7. #include <linux/delay.h>
  8. #define BCMA_CORE_SIZE 0x1000
  9. struct bcma_bus;
  10. /* main.c */
  11. int bcma_bus_register(struct bcma_bus *bus);
  12. void bcma_bus_unregister(struct bcma_bus *bus);
  13. int __init bcma_bus_early_register(struct bcma_bus *bus,
  14. struct bcma_device *core_cc,
  15. struct bcma_device *core_mips);
  16. /* scan.c */
  17. int bcma_bus_scan(struct bcma_bus *bus);
  18. int __init bcma_bus_scan_early(struct bcma_bus *bus,
  19. struct bcma_device_id *match,
  20. struct bcma_device *core);
  21. void bcma_init_bus(struct bcma_bus *bus);
  22. /* sprom.c */
  23. int bcma_sprom_get(struct bcma_bus *bus);
  24. #ifdef CONFIG_BCMA_HOST_PCI
  25. /* host_pci.c */
  26. extern int __init bcma_host_pci_init(void);
  27. extern void __exit bcma_host_pci_exit(void);
  28. #endif /* CONFIG_BCMA_HOST_PCI */
  29. #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
  30. void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
  31. #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
  32. #endif