bcma_private.h 773 B

1234567891011121314151617181920212223242526272829303132333435
  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. /* scan.c */
  14. int bcma_bus_scan(struct bcma_bus *bus);
  15. /* sprom.c */
  16. int bcma_sprom_get(struct bcma_bus *bus);
  17. #ifdef CONFIG_BCMA_HOST_PCI
  18. /* host_pci.c */
  19. extern int __init bcma_host_pci_init(void);
  20. extern void __exit bcma_host_pci_exit(void);
  21. #endif /* CONFIG_BCMA_HOST_PCI */
  22. #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
  23. void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
  24. #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
  25. #endif