WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / platforms / pasemi / pasemi.h
blob70b56048ed1bef08a83b45d652d9ef5ac16e387e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PASEMI_PASEMI_H
3 #define _PASEMI_PASEMI_H
5 extern time64_t pas_get_boot_time(void);
6 extern void pas_pci_init(void);
7 extern void pas_pci_irq_fixup(struct pci_dev *dev);
8 extern void pas_pci_dma_dev_setup(struct pci_dev *dev);
10 extern void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset);
12 extern void __init pasemi_map_registers(void);
14 /* Power savings modes, implemented in asm */
15 extern void idle_spin(void);
16 extern void idle_doze(void);
18 /* Restore astate to last set */
19 #ifdef CONFIG_PPC_PASEMI_CPUFREQ
20 extern int check_astate(void);
21 extern void restore_astate(int cpu);
22 #else
23 static inline int check_astate(void)
25 /* Always return >0 so we never power save */
26 return 1;
28 static inline void restore_astate(int cpu)
31 #endif
33 extern struct pci_controller_ops pasemi_pci_controller_ops;
35 #endif /* _PASEMI_PASEMI_H */