pseries.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2006 IBM Corporation.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #ifndef _PSERIES_PSERIES_H
  10. #define _PSERIES_PSERIES_H
  11. #include <linux/interrupt.h>
  12. struct device_node;
  13. extern void request_event_sources_irqs(struct device_node *np,
  14. irq_handler_t handler, const char *name);
  15. #include <linux/of.h>
  16. extern void __init fw_hypertas_feature_init(const char *hypertas,
  17. unsigned long len);
  18. extern void __init fw_vec5_feature_init(const char *hypertas,
  19. unsigned long len);
  20. struct pt_regs;
  21. extern int pSeries_system_reset_exception(struct pt_regs *regs);
  22. extern int pSeries_machine_check_exception(struct pt_regs *regs);
  23. #ifdef CONFIG_SMP
  24. extern void smp_init_pseries_mpic(void);
  25. extern void smp_init_pseries_xics(void);
  26. #else
  27. static inline void smp_init_pseries_mpic(void) { };
  28. static inline void smp_init_pseries_xics(void) { };
  29. #endif
  30. #ifdef CONFIG_KEXEC
  31. extern void setup_kexec_cpu_down_xics(void);
  32. extern void setup_kexec_cpu_down_mpic(void);
  33. #else
  34. static inline void setup_kexec_cpu_down_xics(void) { }
  35. static inline void setup_kexec_cpu_down_mpic(void) { }
  36. #endif
  37. extern void pSeries_final_fixup(void);
  38. /* Poweron flag used for enabling auto ups restart */
  39. extern unsigned long rtas_poweron_auto;
  40. /* Provided by HVC VIO */
  41. extern void hvc_vio_init_early(void);
  42. /* Dynamic logical Partitioning/Mobility */
  43. extern void dlpar_free_cc_nodes(struct device_node *);
  44. extern void dlpar_free_cc_property(struct property *);
  45. extern struct device_node *dlpar_configure_connector(u32);
  46. extern int dlpar_attach_node(struct device_node *);
  47. extern int dlpar_detach_node(struct device_node *);
  48. /* Snooze Delay, pseries_idle */
  49. DECLARE_PER_CPU(long, smt_snooze_delay);
  50. /* PCI root bridge prepare function override for pseries */
  51. struct pci_host_bridge;
  52. int pseries_root_bridge_prepare(struct pci_host_bridge *bridge);
  53. #endif /* _PSERIES_PSERIES_H */