1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PMAC_H__
3 #define __PMAC_H__
4 
5 #include <linux/pci.h>
6 #include <linux/irq.h>
7 
8 #include <asm/pmac_feature.h>
9 
10 /*
11  * Declaration for the various functions exported by the
12  * pmac_* files. Mostly for use by pmac_setup
13  */
14 
15 struct rtc_time;
16 
17 extern int pmac_newworld;
18 
19 extern long pmac_time_init(void);
20 extern time64_t pmac_get_boot_time(void);
21 extern void pmac_get_rtc_time(struct rtc_time *);
22 extern int pmac_set_rtc_time(struct rtc_time *);
23 extern void pmac_read_rtc_time(void);
24 extern void pmac_calibrate_decr(void);
25 extern void pmac_pci_irq_fixup(struct pci_dev *);
26 extern void pmac_pci_init(void);
27 
28 extern void pmac_nvram_update(void);
29 extern unsigned char pmac_nvram_read_byte(int addr);
30 extern void pmac_nvram_write_byte(int addr, unsigned char val);
31 extern void pmac_pcibios_after_init(void);
32 
33 extern void pmac_setup_pci_dma(void);
34 extern void pmac_check_ht_link(void);
35 
36 extern void pmac_setup_smp(void);
37 extern int psurge_secondary_virq;
38 extern void low_cpu_offline_self(void) __attribute__((noreturn));
39 
40 extern int pmac_nvram_init(void);
41 extern void pmac_pic_init(void);
42 
43 extern struct pci_controller_ops pmac_pci_controller_ops;
44 
45 #endif /* __PMAC_H__ */
46