bcma_private.h 1.6 KB

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