Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148743
b: refs/heads/master
c: d7c4f1b
h: refs/heads/master
i:
  148741: d19b9ea
  148739: 8b4a2be
  148735: 64fbab6
v: v3
  • Loading branch information
Arnd Bergmann authored and Arnd Bergmann committed Jun 11, 2009
1 parent bfd4bde commit 9a1812b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3aef392822e1a42e80077a332ea2efdfd8a4248a
refs/heads/master: d7c4f1b78afeedfc22b1756fcdc1acbe84284d74
13 changes: 3 additions & 10 deletions trunk/arch/frv/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* 2 of the License, or (at your option) any later version.
*/

#ifndef ASM_PCI_H
#define ASM_PCI_H
#ifndef _ASM_FRV_PCI_H
#define _ASM_FRV_PCI_H

#include <linux/mm.h>
#include <asm/scatterlist.h>
Expand Down Expand Up @@ -43,12 +43,6 @@ extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
/* Return the index of the PCI controller for device PDEV. */
#define pci_controller_num(PDEV) (0)

/* The PCI address space does equal the physical memory
* address space. The networking and block device layers use
* this boolean for bounce buffer decisions.
*/
#define PCI_DMA_BUS_IS_PHYS (1)

/* pci_unmap_{page,single} is a nop so... */
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
Expand Down Expand Up @@ -114,5 +108,4 @@ static inline void pci_dma_sync_sg(struct pci_dev *hwdev,
sg_dma_address(&sg[i])+sg_dma_len(&sg[i]));
}


#endif
#endif /* _ASM_FRV_PCI_H */
2 changes: 0 additions & 2 deletions trunk/arch/m32r/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@

#include <asm-generic/pci.h>

#define PCI_DMA_BUS_IS_PHYS (1)

#endif /* _ASM_M32R_PCI_H */
8 changes: 8 additions & 0 deletions trunk/include/asm-generic/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,12 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
}
#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */

/*
* By default, assume that no iommu is in use and that the PCI
* space is mapped to address physical 0.
*/
#ifndef PCI_DMA_BUS_IS_PHYS
#define PCI_DMA_BUS_IS_PHYS (1)
#endif

#endif /* _ASM_GENERIC_PCI_H */

0 comments on commit 9a1812b

Please sign in to comment.