2006-09-07 02:42:08 +07:00
|
|
|
#ifndef _PASEMI_PASEMI_H
|
|
|
|
#define _PASEMI_PASEMI_H
|
|
|
|
|
|
|
|
extern unsigned long pas_get_boot_time(void);
|
|
|
|
extern void pas_pci_init(void);
|
2012-12-22 05:04:10 +07:00
|
|
|
extern void pas_pci_irq_fixup(struct pci_dev *dev);
|
|
|
|
extern void pas_pci_dma_dev_setup(struct pci_dev *dev);
|
2007-02-05 05:36:55 +07:00
|
|
|
|
2007-09-05 09:08:30 +07:00
|
|
|
extern void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset);
|
|
|
|
|
2007-02-05 05:36:55 +07:00
|
|
|
extern void __init alloc_iobmap_l2(void);
|
2007-11-29 09:56:20 +07:00
|
|
|
extern void __init pasemi_map_registers(void);
|
2006-09-07 02:42:08 +07:00
|
|
|
|
2007-02-05 05:36:51 +07:00
|
|
|
/* Power savings modes, implemented in asm */
|
|
|
|
extern void idle_spin(void);
|
|
|
|
extern void idle_doze(void);
|
|
|
|
|
2007-04-27 12:46:01 +07:00
|
|
|
/* Restore astate to last set */
|
|
|
|
#ifdef CONFIG_PPC_PASEMI_CPUFREQ
|
2007-11-07 22:26:06 +07:00
|
|
|
extern int check_astate(void);
|
2007-04-27 12:46:01 +07:00
|
|
|
extern void restore_astate(int cpu);
|
|
|
|
#else
|
2007-11-07 22:26:06 +07:00
|
|
|
static inline int check_astate(void)
|
|
|
|
{
|
|
|
|
/* Always return >0 so we never power save */
|
|
|
|
return 1;
|
|
|
|
}
|
2007-04-27 12:46:01 +07:00
|
|
|
static inline void restore_astate(int cpu)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
2007-02-05 05:36:51 +07:00
|
|
|
|
2015-03-31 12:00:52 +07:00
|
|
|
extern struct pci_controller_ops pasemi_pci_controller_ops;
|
2007-02-05 05:36:55 +07:00
|
|
|
|
2006-09-07 02:42:08 +07:00
|
|
|
#endif /* _PASEMI_PASEMI_H */
|