Input: wacom - revert "Cintiq 21UX2 does not have menu strips"
[linux-btrfs-devel.git] / arch / sparc / include / asm / pci_32.h
blob862e3ce92b15d45659c1ca343a3ad317c9dfb7b3
1 #ifndef __SPARC_PCI_H
2 #define __SPARC_PCI_H
4 #ifdef __KERNEL__
6 #include <linux/dma-mapping.h>
8 /* Can be used to override the logic in pci_scan_bus for skipping
9 * already-configured bus numbers - to be used for buggy BIOSes
10 * or architectures with incomplete PCI setup by the loader.
12 #define pcibios_assign_all_busses() 0
14 #define PCIBIOS_MIN_IO 0UL
15 #define PCIBIOS_MIN_MEM 0UL
17 #define PCI_IRQ_NONE 0xffffffff
19 static inline void pcibios_set_master(struct pci_dev *dev)
21 /* No special bus mastering setup handling */
24 static inline void pcibios_penalize_isa_irq(int irq, int active)
26 /* We don't do dynamic PCI IRQ allocation */
29 /* Dynamic DMA mapping stuff.
31 #define PCI_DMA_BUS_IS_PHYS (0)
33 struct pci_dev;
35 #ifdef CONFIG_PCI
36 static inline void pci_dma_burst_advice(struct pci_dev *pdev,
37 enum pci_dma_burst_strategy *strat,
38 unsigned long *strategy_parameter)
40 *strat = PCI_DMA_BURST_INFINITY;
41 *strategy_parameter = ~0UL;
43 #endif
45 struct device_node;
46 extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev);
48 #endif /* __KERNEL__ */
50 #ifndef CONFIG_LEON_PCI
51 /* generic pci stuff */
52 #include <asm-generic/pci.h>
53 #else
55 * On LEON PCI Memory space is mapped 1:1 with physical address space.
57 * I/O space is located at low 64Kbytes in PCI I/O space. The I/O addresses
58 * are converted into CPU addresses to virtual addresses that are mapped with
59 * MMU to the PCI Host PCI I/O space window which are translated to the low
60 * 64Kbytes by the Host controller.
63 extern void
64 pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
65 struct resource *res);
67 extern void
68 pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
69 struct pci_bus_region *region);
71 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
73 return PCI_IRQ_NONE;
75 #endif
77 #endif /* __SPARC_PCI_H */