bcma_private.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifdef CONFIG_PM
  17. int bcma_bus_resume(struct bcma_bus *bus);
  18. #endif
  19. /* scan.c */
  20. int bcma_bus_scan(struct bcma_bus *bus);
  21. int __init bcma_bus_scan_early(struct bcma_bus *bus,
  22. struct bcma_device_id *match,
  23. struct bcma_device *core);
  24. void bcma_init_bus(struct bcma_bus *bus);
  25. /* sprom.c */
  26. int bcma_sprom_get(struct bcma_bus *bus);
  27. /* driver_chipcommon.c */
  28. #ifdef CONFIG_BCMA_DRIVER_MIPS
  29. void bcma_chipco_serial_init(struct bcma_drv_cc *cc);
  30. #endif /* CONFIG_BCMA_DRIVER_MIPS */
  31. /* driver_chipcommon_pmu.c */
  32. u32 bcma_pmu_alp_clock(struct bcma_drv_cc *cc);
  33. u32 bcma_pmu_get_clockcpu(struct bcma_drv_cc *cc);
  34. #ifdef CONFIG_BCMA_HOST_PCI
  35. /* host_pci.c */
  36. extern int __init bcma_host_pci_init(void);
  37. extern void __exit bcma_host_pci_exit(void);
  38. #endif /* CONFIG_BCMA_HOST_PCI */
  39. #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
  40. void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
  41. #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
  42. #endif