2011-09-19 17:44:52 +00:00
|
|
|
#ifndef _POWERNV_H
|
|
|
|
#define _POWERNV_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
extern void pnv_smp_init(void);
|
|
|
|
#else
|
|
|
|
static inline void pnv_smp_init(void) { }
|
|
|
|
#endif
|
|
|
|
|
2014-02-11 00:32:38 +00:00
|
|
|
struct pci_dev;
|
|
|
|
|
2011-09-19 17:45:05 +00:00
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
extern void pnv_pci_init(void);
|
2013-05-10 06:59:18 +00:00
|
|
|
extern void pnv_pci_shutdown(void);
|
2014-02-11 00:32:38 +00:00
|
|
|
extern int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask);
|
2011-09-19 17:45:05 +00:00
|
|
|
#else
|
|
|
|
static inline void pnv_pci_init(void) { }
|
2013-05-10 06:59:18 +00:00
|
|
|
static inline void pnv_pci_shutdown(void) { }
|
2014-02-11 00:32:38 +00:00
|
|
|
|
|
|
|
static inline int pnv_pci_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
|
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
2011-09-19 17:45:05 +00:00
|
|
|
#endif
|
|
|
|
|
2013-07-15 03:03:11 +00:00
|
|
|
extern void pnv_lpc_init(void);
|
|
|
|
|
2014-05-23 08:15:30 +00:00
|
|
|
bool cpu_core_split_required(void);
|
|
|
|
|
2011-09-19 17:44:52 +00:00
|
|
|
#endif /* _POWERNV_H */
|