diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:57 -0400 |
commit | 21ba0f88ae56da82a3a15fe54d729208b64c4f4b (patch) | |
tree | 17ce67f276fe3ea7284c3dc730bdd6a2ec7dfe2f /include/asm-i386 | |
parent | dc690d8ef842b464f1c429a376ca16cb8dbee6ae (diff) | |
parent | 36e235901f90fb83215be43cbd8f1ca14661ea40 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6: (34 commits)
PCI: Only build PCI syscalls on architectures that want them
PCI: limit pci_get_bus_and_slot to domain 0
PCI: hotplug: acpiphp: avoid acpiphp "cannot get bridge info" PCI hotplug failure
PCI: hotplug: acpiphp: remove hot plug parameter write to PCI host bridge
PCI: hotplug: acpiphp: fix slot poweroff problem on systems without _PS3
PCI: hotplug: pciehp: wait for 1 second after power off slot
PCI: pci_set_power_state(): check for PM capabilities earlier
PCI: cpci_hotplug: Convert to use the kthread API
PCI: add pci_try_set_mwi
PCI: pcie: remove SPIN_LOCK_UNLOCKED
PCI: ROUND_UP macro cleanup in drivers/pci
PCI: remove pci_dac_dma_... APIs
PCI: pci-x-pci-express-read-control-interfaces cleanups
PCI: Fix typo in include/linux/pci.h
PCI: pci_ids, remove double or more empty lines
PCI: pci_ids, add atheros and 3com_2 vendors
PCI: pci_ids, reorder some entries
PCI: i386: traps, change VENDOR to DEVICE
PCI: ATM: lanai, change VENDOR to DEVICE
PCI: Change all drivers to use pci_device->revision
...
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/pci.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/asm-i386/pci.h b/include/asm-i386/pci.h index 64b6d0baedbc..392d3fe5d45e 100644 --- a/include/asm-i386/pci.h +++ b/include/asm-i386/pci.h | |||
@@ -56,48 +56,11 @@ struct pci_dev; | |||
56 | #define pci_unmap_len(PTR, LEN_NAME) (0) | 56 | #define pci_unmap_len(PTR, LEN_NAME) (0) |
57 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | 57 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) |
58 | 58 | ||
59 | /* This is always fine. */ | ||
60 | #define pci_dac_dma_supported(pci_dev, mask) (1) | ||
61 | |||
62 | static inline dma64_addr_t | ||
63 | pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, unsigned long offset, int direction) | ||
64 | { | ||
65 | return ((dma64_addr_t) page_to_phys(page) + | ||
66 | (dma64_addr_t) offset); | ||
67 | } | ||
68 | |||
69 | static inline struct page * | ||
70 | pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
71 | { | ||
72 | return pfn_to_page(dma_addr >> PAGE_SHIFT); | ||
73 | } | ||
74 | |||
75 | static inline unsigned long | ||
76 | pci_dac_dma_to_offset(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
77 | { | ||
78 | return (dma_addr & ~PAGE_MASK); | ||
79 | } | ||
80 | |||
81 | static inline void | ||
82 | pci_dac_dma_sync_single_for_cpu(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
83 | { | ||
84 | } | ||
85 | |||
86 | static inline void | ||
87 | pci_dac_dma_sync_single_for_device(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
88 | { | ||
89 | flush_write_buffers(); | ||
90 | } | ||
91 | |||
92 | #define HAVE_PCI_MMAP | 59 | #define HAVE_PCI_MMAP |
93 | extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | 60 | extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, |
94 | enum pci_mmap_state mmap_state, int write_combine); | 61 | enum pci_mmap_state mmap_state, int write_combine); |
95 | 62 | ||
96 | 63 | ||
97 | static inline void pcibios_add_platform_entries(struct pci_dev *dev) | ||
98 | { | ||
99 | } | ||
100 | |||
101 | #ifdef CONFIG_PCI | 64 | #ifdef CONFIG_PCI |
102 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 65 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
103 | enum pci_dma_burst_strategy *strat, | 66 | enum pci_dma_burst_strategy *strat, |