forked from luck/tmp_suning_uos_patched
f90bb153b1
This patch reworks the way IRQs are fixed up on PCI for arch powerpc. It makes pci_read_irq_line() called by default in the PCI code for devices that are probed, and add an optional per-device fixup in ppc_md for platforms that really need to correct what they obtain from pci_read_irq_line(). It also removes ppc_md.irq_bus_setup which was only used by pSeries and should not be needed anymore. I've also removed the pSeries s7a workaround as it can't work with the current interrupt code anyway. I'm trying to get one of these machines working so I can test a proper fix for that problem. I also haven't updated the old-style fixup code from 85xx_cds.c because it's actually buggy :) It assigns pci_dev->irq hard coded numbers which is no good with the new IRQ mapping code. It should at least use irq_create_mapping(NULL, hard_coded_number); and possibly also set_irq_type() to set them as level low. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
#ifndef __PMAC_H__
|
|
#define __PMAC_H__
|
|
|
|
#include <linux/pci.h>
|
|
#include <linux/ide.h>
|
|
#include <linux/irq.h>
|
|
|
|
/*
|
|
* Declaration for the various functions exported by the
|
|
* pmac_* files. Mostly for use by pmac_setup
|
|
*/
|
|
|
|
struct rtc_time;
|
|
|
|
extern int pmac_newworld;
|
|
|
|
extern long pmac_time_init(void);
|
|
extern unsigned long pmac_get_boot_time(void);
|
|
extern void pmac_get_rtc_time(struct rtc_time *);
|
|
extern int pmac_set_rtc_time(struct rtc_time *);
|
|
extern void pmac_read_rtc_time(void);
|
|
extern void pmac_calibrate_decr(void);
|
|
extern void pmac_pci_irq_fixup(struct pci_dev *);
|
|
extern void pmac_pci_init(void);
|
|
extern unsigned long pmac_ide_get_base(int index);
|
|
extern void pmac_ide_init_hwif_ports(hw_regs_t *hw,
|
|
unsigned long data_port, unsigned long ctrl_port, int *irq);
|
|
|
|
extern void pmac_nvram_update(void);
|
|
extern unsigned char pmac_nvram_read_byte(int addr);
|
|
extern void pmac_nvram_write_byte(int addr, unsigned char val);
|
|
extern int pmac_pci_enable_device_hook(struct pci_dev *dev, int initial);
|
|
extern void pmac_pcibios_after_init(void);
|
|
extern int of_show_percpuinfo(struct seq_file *m, int i);
|
|
|
|
extern void pmac_pci_init(void);
|
|
extern void pmac_setup_pci_dma(void);
|
|
extern void pmac_check_ht_link(void);
|
|
|
|
extern void pmac_setup_smp(void);
|
|
|
|
extern unsigned long pmac_ide_get_base(int index);
|
|
extern void pmac_ide_init_hwif_ports(hw_regs_t *hw,
|
|
unsigned long data_port, unsigned long ctrl_port, int *irq);
|
|
|
|
extern int pmac_nvram_init(void);
|
|
extern void pmac_pic_init(void);
|
|
|
|
#endif /* __PMAC_H__ */
|