2011-04-15 06:32:06 +08:00
|
|
|
#ifndef __WSP_H
|
|
|
|
#define __WSP_H
|
|
|
|
|
|
|
|
#include <asm/wsp.h>
|
|
|
|
|
2011-08-08 20:30:54 +08:00
|
|
|
/* Devtree compatible strings for major devices */
|
|
|
|
#define PCIE_COMPATIBLE "ibm,wsp-pciex"
|
|
|
|
|
2011-09-30 12:26:13 +08:00
|
|
|
extern void wsp_setup_arch(void);
|
|
|
|
extern void wsp_setup_irq(void);
|
|
|
|
extern int wsp_probe_devices(void);
|
|
|
|
extern void wsp_halt(void);
|
|
|
|
|
2011-04-15 06:32:06 +08:00
|
|
|
extern void wsp_setup_pci(void);
|
|
|
|
extern void scom_init_wsp(void);
|
|
|
|
|
|
|
|
extern void a2_setup_smp(void);
|
|
|
|
extern int a2_scom_startup_cpu(unsigned int lcpu, int thr_idx,
|
|
|
|
struct device_node *np);
|
2011-09-30 12:26:13 +08:00
|
|
|
extern int smp_a2_cpu_bootable(unsigned int nr);
|
2012-12-22 06:04:10 +08:00
|
|
|
extern int smp_a2_kick_cpu(int nr);
|
2011-09-30 12:26:13 +08:00
|
|
|
|
|
|
|
extern void opb_pic_init(void);
|
2011-04-15 06:32:06 +08:00
|
|
|
|
2011-09-30 12:26:13 +08:00
|
|
|
/* chroma specific managment */
|
|
|
|
extern void wsp_h8_restart(char *cmd);
|
|
|
|
extern void wsp_h8_power_off(void);
|
|
|
|
extern void __init wsp_setup_h8(void);
|
2011-04-15 06:32:06 +08:00
|
|
|
|
|
|
|
#endif /* __WSP_H */
|