pasemi.h 896 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _PASEMI_PASEMI_H
  2. #define _PASEMI_PASEMI_H
  3. extern unsigned long pas_get_boot_time(void);
  4. extern void pas_pci_init(void);
  5. extern void pas_pci_irq_fixup(struct pci_dev *dev);
  6. extern void pas_pci_dma_dev_setup(struct pci_dev *dev);
  7. extern void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset);
  8. extern void __init alloc_iobmap_l2(void);
  9. extern void __init pasemi_map_registers(void);
  10. /* Power savings modes, implemented in asm */
  11. extern void idle_spin(void);
  12. extern void idle_doze(void);
  13. /* Restore astate to last set */
  14. #ifdef CONFIG_PPC_PASEMI_CPUFREQ
  15. extern int check_astate(void);
  16. extern void restore_astate(int cpu);
  17. #else
  18. static inline int check_astate(void)
  19. {
  20. /* Always return >0 so we never power save */
  21. return 1;
  22. }
  23. static inline void restore_astate(int cpu)
  24. {
  25. }
  26. #endif
  27. extern struct pci_controller_ops pasemi_pci_controller_ops;
  28. #endif /* _PASEMI_PASEMI_H */