pmac.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __PMAC_H__
  2. #define __PMAC_H__
  3. #include <linux/pci.h>
  4. #include <linux/irq.h>
  5. /*
  6. * Declaration for the various functions exported by the
  7. * pmac_* files. Mostly for use by pmac_setup
  8. */
  9. struct rtc_time;
  10. extern int pmac_newworld;
  11. extern long pmac_time_init(void);
  12. extern unsigned long pmac_get_boot_time(void);
  13. extern void pmac_get_rtc_time(struct rtc_time *);
  14. extern int pmac_set_rtc_time(struct rtc_time *);
  15. extern void pmac_read_rtc_time(void);
  16. extern void pmac_calibrate_decr(void);
  17. extern void pmac_pci_irq_fixup(struct pci_dev *);
  18. extern void pmac_pci_init(void);
  19. extern void pmac_nvram_update(void);
  20. extern unsigned char pmac_nvram_read_byte(int addr);
  21. extern void pmac_nvram_write_byte(int addr, unsigned char val);
  22. extern void pmac_pcibios_after_init(void);
  23. extern int of_show_percpuinfo(struct seq_file *m, int i);
  24. extern void pmac_setup_pci_dma(void);
  25. extern void pmac_check_ht_link(void);
  26. extern void pmac_setup_smp(void);
  27. extern int psurge_secondary_virq;
  28. extern void low_cpu_die(void) __attribute__((noreturn));
  29. extern int pmac_nvram_init(void);
  30. extern void pmac_pic_init(void);
  31. extern struct pci_controller_ops pmac_pci_controller_ops;
  32. #endif /* __PMAC_H__ */