blob: e7f8163d6769c193f4d681fd4a4c60bab5b9e82c [file] [log] [blame]
Paul Mackerras14cf11a2005-09-26 16:04:21 +10001#ifndef __PMAC_H__
2#define __PMAC_H__
3
4#include <linux/pci.h>
Paul Mackerras3c3f42d2005-10-10 22:58:41 +10005#include <linux/irq.h>
Paul Mackerras14cf11a2005-09-26 16:04:21 +10006
7/*
8 * Declaration for the various functions exported by the
9 * pmac_* files. Mostly for use by pmac_setup
10 */
11
Paul Mackerras143a1de2005-10-19 23:11:21 +100012struct rtc_time;
13
Benjamin Herrenschmidt0ebfff12006-07-03 21:36:01 +100014extern int pmac_newworld;
15
Paul Mackerras3c3f42d2005-10-10 22:58:41 +100016extern long pmac_time_init(void);
Paul Mackerras143a1de2005-10-19 23:11:21 +100017extern unsigned long pmac_get_boot_time(void);
18extern void pmac_get_rtc_time(struct rtc_time *);
19extern int pmac_set_rtc_time(struct rtc_time *);
Paul Mackerras14cf11a2005-09-26 16:04:21 +100020extern void pmac_read_rtc_time(void);
21extern void pmac_calibrate_decr(void);
Benjamin Herrenschmidtf90bb152006-11-11 17:24:51 +110022extern void pmac_pci_irq_fixup(struct pci_dev *);
Paul Mackerras35499c02005-10-22 16:02:39 +100023extern void pmac_pci_init(void);
Paul Mackerras3c3f42d2005-10-10 22:58:41 +100024
25extern void pmac_nvram_update(void);
26extern unsigned char pmac_nvram_read_byte(int addr);
27extern void pmac_nvram_write_byte(int addr, unsigned char val);
Paul Mackerras3c3f42d2005-10-10 22:58:41 +100028extern void pmac_pcibios_after_init(void);
29extern int of_show_percpuinfo(struct seq_file *m, int i);
30
Paul Mackerras14cf11a2005-09-26 16:04:21 +100031extern void pmac_setup_pci_dma(void);
32extern void pmac_check_ht_link(void);
33
34extern void pmac_setup_smp(void);
Milton Miller23f73a52011-05-10 19:30:22 +000035extern int psurge_secondary_virq;
Milton Millerabb17f92010-05-19 02:56:29 +000036extern void low_cpu_die(void) __attribute__((noreturn));
Paul Mackerras14cf11a2005-09-26 16:04:21 +100037
Paul Mackerras35499c02005-10-22 16:02:39 +100038extern int pmac_nvram_init(void);
Benjamin Herrenschmidtcc5d0182005-12-13 18:01:21 +110039extern void pmac_pic_init(void);
Paul Mackerras3c3f42d2005-10-10 22:58:41 +100040
Daniel Axtense63f26d2015-03-31 16:00:49 +110041extern struct pci_controller_ops pmac_pci_controller_ops;
Daniel Axtensba9c8f22015-03-31 16:00:40 +110042
Paul Mackerras14cf11a2005-09-26 16:04:21 +100043#endif /* __PMAC_H__ */