pseries.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_feature_init(const char *hypertas, unsigned long len);
  17. struct pt_regs;
  18. extern int pSeries_system_reset_exception(struct pt_regs *regs);
  19. extern int pSeries_machine_check_exception(struct pt_regs *regs);
  20. #ifdef CONFIG_SMP
  21. extern void smp_init_pseries_mpic(void);
  22. extern void smp_init_pseries_xics(void);
  23. #else
  24. static inline void smp_init_pseries_mpic(void) { };
  25. static inline void smp_init_pseries_xics(void) { };
  26. #endif
  27. #ifdef CONFIG_KEXEC
  28. extern void setup_kexec_cpu_down_xics(void);
  29. extern void setup_kexec_cpu_down_mpic(void);
  30. #else
  31. static inline void setup_kexec_cpu_down_xics(void) { }
  32. static inline void setup_kexec_cpu_down_mpic(void) { }
  33. #endif
  34. extern void pSeries_final_fixup(void);
  35. /* Poweron flag used for enabling auto ups restart */
  36. extern unsigned long rtas_poweron_auto;
  37. extern void find_udbg_vterm(void);
  38. /* Dynamic logical Partitioning/Mobility */
  39. extern void dlpar_free_cc_nodes(struct device_node *);
  40. extern void dlpar_free_cc_property(struct property *);
  41. extern struct device_node *dlpar_configure_connector(u32);
  42. extern int dlpar_attach_node(struct device_node *);
  43. extern int dlpar_detach_node(struct device_node *);
  44. #endif /* _PSERIES_PSERIES_H */