pseries.h 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * Copyright 2006 IBM Corporation.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

#ifndef _PSERIES_PSERIES_H
#define _PSERIES_PSERIES_H

13 14 15 16 17 18 19
#include <linux/interrupt.h>

struct device_node;

extern void request_event_sources_irqs(struct device_node *np,
				       irq_handler_t handler, const char *name);

20 21
#include <linux/of.h>

22 23 24 25
extern void __init fw_hypertas_feature_init(const char *hypertas,
					    unsigned long len);
extern void __init fw_vec5_feature_init(const char *hypertas,
					unsigned long len);
26 27 28 29 30 31

struct pt_regs;

extern int pSeries_system_reset_exception(struct pt_regs *regs);
extern int pSeries_machine_check_exception(struct pt_regs *regs);

32 33 34 35
#ifdef CONFIG_SMP
extern void smp_init_pseries_mpic(void);
extern void smp_init_pseries_xics(void);
#else
S
Stephen Rothwell 已提交
36 37
static inline void smp_init_pseries_mpic(void) { };
static inline void smp_init_pseries_xics(void) { };
38 39
#endif

40 41 42 43
#ifdef CONFIG_KEXEC
extern void setup_kexec_cpu_down_xics(void);
extern void setup_kexec_cpu_down_mpic(void);
#else
44 45
static inline void setup_kexec_cpu_down_xics(void) { }
static inline void setup_kexec_cpu_down_mpic(void) { }
46 47
#endif

48 49
extern void pSeries_final_fixup(void);

50 51 52
/* Poweron flag used for enabling auto ups restart */
extern unsigned long rtas_poweron_auto;

53 54
/* Provided by HVC VIO */
extern void hvc_vio_init_early(void);
55

56 57 58 59 60 61 62
/* Dynamic logical Partitioning/Mobility */
extern void dlpar_free_cc_nodes(struct device_node *);
extern void dlpar_free_cc_property(struct property *);
extern struct device_node *dlpar_configure_connector(u32);
extern int dlpar_attach_node(struct device_node *);
extern int dlpar_detach_node(struct device_node *);

63 64 65
/* Snooze Delay, pseries_idle */
DECLARE_PER_CPU(long, smt_snooze_delay);

66
#endif /* _PSERIES_PSERIES_H */