diff options
Diffstat (limited to 'arch/sparc/include/asm/pci_32.h')
| -rw-r--r-- | arch/sparc/include/asm/pci_32.h | 29 | 
1 files changed, 16 insertions, 13 deletions
diff --git a/arch/sparc/include/asm/pci_32.h b/arch/sparc/include/asm/pci_32.h index 332ac9ab36b..53e9b4987db 100644 --- a/arch/sparc/include/asm/pci_32.h +++ b/arch/sparc/include/asm/pci_32.h @@ -16,16 +16,6 @@  #define PCI_IRQ_NONE		0xffffffff -static inline void pcibios_set_master(struct pci_dev *dev) -{ -	/* No special bus mastering setup handling */ -} - -static inline void pcibios_penalize_isa_irq(int irq, int active) -{ -	/* We don't do dynamic PCI IRQ allocation */ -} -  /* Dynamic DMA mapping stuff.   */  #define PCI_DMA_BUS_IS_PHYS	(0) @@ -42,12 +32,25 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,  }  #endif -struct device_node; -extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev); -  #endif /* __KERNEL__ */ +#ifndef CONFIG_LEON_PCI  /* generic pci stuff */  #include <asm-generic/pci.h> +#else +/* + * On LEON PCI Memory space is mapped 1:1 with physical address space. + * + * I/O space is located at low 64Kbytes in PCI I/O space. The I/O addresses + * are converted into CPU addresses to virtual addresses that are mapped with + * MMU to the PCI Host PCI I/O space window which are translated to the low + * 64Kbytes by the Host controller. + */ + +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) +{ +	return PCI_IRQ_NONE; +} +#endif  #endif /* __SPARC_PCI_H */  | 
