Skip to content

Commit 6822190

Browse files
fujitatorvalds
authored andcommitted
frv: remove pci_dma_sync_single() and pci_dma_sync_sg()
No architecture except for frv has pci_dma_sync_single() and pci_dma_sync_sg(). The APIs are deprecated. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 08259d5 commit 6822190

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

  • arch/frv/include/asm

‎arch/frv/include/asm/pci.h‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -68,41 +68,4 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
6868
#define PCIBIOS_MIN_IO 0x100
6969
#define PCIBIOS_MIN_MEM 0x00010000
7070

71-
/* Make physical memory consistent for a single
72-
* streaming mode DMA translation after a transfer.
73-
*
74-
* If you perform a pci_map_single() but wish to interrogate the
75-
* buffer using the cpu, yet do not wish to teardown the PCI dma
76-
* mapping, you must call this function before doing so. At the
77-
* next point you give the PCI dma address back to the card, the
78-
* device again owns the buffer.
79-
*/
80-
static inline void pci_dma_sync_single(struct pci_dev *hwdev,
81-
dma_addr_t dma_handle,
82-
size_t size, int direction)
83-
{
84-
BUG_ON(direction == PCI_DMA_NONE);
85-
86-
frv_cache_wback_inv((unsigned long)bus_to_virt(dma_handle),
87-
(unsigned long)bus_to_virt(dma_handle) + size);
88-
}
89-
90-
/* Make physical memory consistent for a set of streaming
91-
* mode DMA translations after a transfer.
92-
*
93-
* The same as pci_dma_sync_single but for a scatter-gather list,
94-
* same rules and usage.
95-
*/
96-
static inline void pci_dma_sync_sg(struct pci_dev *hwdev,
97-
struct scatterlist *sg,
98-
int nelems, int direction)
99-
{
100-
int i;
101-
BUG_ON(direction == PCI_DMA_NONE);
102-
103-
for (i = 0; i < nelems; i++)
104-
frv_cache_wback_inv(sg_dma_address(&sg[i]),
105-
sg_dma_address(&sg[i])+sg_dma_len(&sg[i]));
106-
}
107-
10871
#endif /* _ASM_FRV_PCI_H */

0 commit comments

Comments
 (0)