diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 | 
| commit | 24a77daf3d80bddcece044e6dc3675e427eef3f3 (patch) | |
| tree | 2c5e0b0bea394d6fe62c5d5857c252e83e48ac48 /include/asm-powerpc/pci.h | |
| parent | e389f9aec689209724105ae80a6c91fd2e747bc9 (diff) | |
| parent | f900e9777fc9b65140cb9570438597bc8fae56ab (diff) | |
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (255 commits)
  [POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c
  [POWERPC] remove kernel module option for booke wdt
  [POWERPC] Avoid putting cpu node twice
  [POWERPC] Spinlock initializer cleanup
  [POWERPC] ppc4xx_sgdma needs dma-mapping.h
  [POWERPC] arch/powerpc/sysdev/timer.c build fix
  [POWERPC] get_property cleanups
  [POWERPC] Remove the unused HTDMSOUND driver
  [POWERPC] cell: cbe_cpufreq cleanup and crash fix
  [POWERPC] Declare enable_kernel_spe in a header
  [POWERPC] Add dt_xlate_addr() to bootwrapper
  [POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE
  [POWERPC] Don't define a custom bd_t for Xilixn Virtex based boards.
  [POWERPC] Add sane defaults for Xilinx EDK generated xparameters files
  [POWERPC] Add uartlite boot console driver for the zImage wrapper
  [POWERPC] Stop using ppc_sys for Xilinx Virtex boards
  [POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
  [POWERPC] Merge common virtex header files
  [POWERPC] Rework Kconfig dependancies for Xilinx Virtex ppc405 platform
  [POWERPC] Clean up cpufreq Kconfig dependencies
  ...
Diffstat (limited to 'include/asm-powerpc/pci.h')
| -rw-r--r-- | include/asm-powerpc/pci.h | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/include/asm-powerpc/pci.h b/include/asm-powerpc/pci.h index ac656ee6bb19..ce0f13e8eb14 100644 --- a/include/asm-powerpc/pci.h +++ b/include/asm-powerpc/pci.h | |||
| @@ -70,19 +70,22 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | |||
| 70 | */ | 70 | */ | 
| 71 | #define PCI_DISABLE_MWI | 71 | #define PCI_DISABLE_MWI | 
| 72 | 72 | ||
| 73 | extern struct dma_mapping_ops *pci_dma_ops; | 73 | #ifdef CONFIG_PCI | 
| 74 | extern void set_pci_dma_ops(struct dma_mapping_ops *dma_ops); | ||
| 75 | extern struct dma_mapping_ops *get_pci_dma_ops(void); | ||
| 74 | 76 | ||
| 75 | /* For DAC DMA, we currently don't support it by default, but | 77 | /* For DAC DMA, we currently don't support it by default, but | 
| 76 | * we let 64-bit platforms override this. | 78 | * we let 64-bit platforms override this. | 
| 77 | */ | 79 | */ | 
| 78 | static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask) | 80 | static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask) | 
| 79 | { | 81 | { | 
| 80 | if (pci_dma_ops && pci_dma_ops->dac_dma_supported) | 82 | struct dma_mapping_ops *d = get_pci_dma_ops(); | 
| 81 | return pci_dma_ops->dac_dma_supported(&hwdev->dev, mask); | 83 | |
| 84 | if (d && d->dac_dma_supported) | ||
| 85 | return d->dac_dma_supported(&hwdev->dev, mask); | ||
| 82 | return 0; | 86 | return 0; | 
| 83 | } | 87 | } | 
| 84 | 88 | ||
| 85 | #ifdef CONFIG_PCI | ||
| 86 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 89 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 
| 87 | enum pci_dma_burst_strategy *strat, | 90 | enum pci_dma_burst_strategy *strat, | 
| 88 | unsigned long *strategy_parameter) | 91 | unsigned long *strategy_parameter) | 
| @@ -99,6 +102,9 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev, | |||
| 99 | *strat = PCI_DMA_BURST_MULTIPLE; | 102 | *strat = PCI_DMA_BURST_MULTIPLE; | 
| 100 | *strategy_parameter = cacheline_size; | 103 | *strategy_parameter = cacheline_size; | 
| 101 | } | 104 | } | 
| 105 | #else /* CONFIG_PCI */ | ||
| 106 | #define set_pci_dma_ops(d) | ||
| 107 | #define get_pci_dma_ops() NULL | ||
| 102 | #endif | 108 | #endif | 
| 103 | 109 | ||
| 104 | extern int pci_domain_nr(struct pci_bus *bus); | 110 | extern int pci_domain_nr(struct pci_bus *bus); | 
