1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21e76875eSOlof Johansson #ifndef _PASEMI_PASEMI_H 31e76875eSOlof Johansson #define _PASEMI_PASEMI_H 41e76875eSOlof Johansson 55bfd6435SArnd Bergmann extern time64_t pas_get_boot_time(void); 61e76875eSOlof Johansson extern void pas_pci_init(void); 7*54f30b83SArnd Bergmann struct pci_dev; 8cad5cef6SGreg Kroah-Hartman extern void pas_pci_dma_dev_setup(struct pci_dev *dev); 931c56d82SOlof Johansson 10e37e06afSNick Child void __iomem *__init pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset); 1168c8404cSOlof Johansson 128ee9d857SOlof Johansson extern void __init pasemi_map_registers(void); 131e76875eSOlof Johansson 141199919bSOlof Johansson /* Power savings modes, implemented in asm */ 151199919bSOlof Johansson extern void idle_spin(void); 161199919bSOlof Johansson extern void idle_doze(void); 171199919bSOlof Johansson 182e0c3370SOlof Johansson /* Restore astate to last set */ 192e0c3370SOlof Johansson #ifdef CONFIG_PPC_PASEMI_CPUFREQ 208b32bc03SOlof Johansson extern int check_astate(void); 212e0c3370SOlof Johansson extern void restore_astate(int cpu); 222e0c3370SOlof Johansson #else check_astate(void)238b32bc03SOlof Johanssonstatic inline int check_astate(void) 248b32bc03SOlof Johansson { 258b32bc03SOlof Johansson /* Always return >0 so we never power save */ 268b32bc03SOlof Johansson return 1; 278b32bc03SOlof Johansson } restore_astate(int cpu)282e0c3370SOlof Johanssonstatic inline void restore_astate(int cpu) 292e0c3370SOlof Johansson { 302e0c3370SOlof Johansson } 312e0c3370SOlof Johansson #endif 321199919bSOlof Johansson 33d28a0d94SDaniel Axtens extern struct pci_controller_ops pasemi_pci_controller_ops; 3431c56d82SOlof Johansson 351e76875eSOlof Johansson #endif /* _PASEMI_PASEMI_H */ 36