forked from Minki/linux
6822190882
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>
72 lines
2.2 KiB
C
72 lines
2.2 KiB
C
/* pci.h: FR-V specific PCI declarations
|
|
*
|
|
* Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
* - Derived from include/asm-m68k/pci.h
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef _ASM_FRV_PCI_H
|
|
#define _ASM_FRV_PCI_H
|
|
|
|
#include <linux/mm.h>
|
|
#include <asm/scatterlist.h>
|
|
#include <asm-generic/pci-dma-compat.h>
|
|
#include <asm-generic/pci.h>
|
|
|
|
struct pci_dev;
|
|
|
|
#define pcibios_assign_all_busses() 0
|
|
|
|
extern void pcibios_set_master(struct pci_dev *dev);
|
|
|
|
extern void pcibios_penalize_isa_irq(int irq);
|
|
|
|
#ifdef CONFIG_MMU
|
|
extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
|
|
extern void consistent_free(void *vaddr);
|
|
extern void consistent_sync(void *vaddr, size_t size, int direction);
|
|
extern void consistent_sync_page(struct page *page, unsigned long offset,
|
|
size_t size, int direction);
|
|
#endif
|
|
|
|
extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
|
|
dma_addr_t *dma_handle);
|
|
|
|
extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
|
|
void *vaddr, dma_addr_t dma_handle);
|
|
|
|
/* Return the index of the PCI controller for device PDEV. */
|
|
#define pci_controller_num(PDEV) (0)
|
|
|
|
/* pci_unmap_{page,single} is a nop so... */
|
|
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
|
|
#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
|
|
#define pci_unmap_addr(PTR, ADDR_NAME) (0)
|
|
#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0)
|
|
#define pci_unmap_len(PTR, LEN_NAME) (0)
|
|
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
|
|
|
|
#ifdef CONFIG_PCI
|
|
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
|
|
enum pci_dma_burst_strategy *strat,
|
|
unsigned long *strategy_parameter)
|
|
{
|
|
*strat = PCI_DMA_BURST_INFINITY;
|
|
*strategy_parameter = ~0UL;
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
* These are pretty much arbitary with the CoMEM implementation.
|
|
* We have the whole address space to ourselves.
|
|
*/
|
|
#define PCIBIOS_MIN_IO 0x100
|
|
#define PCIBIOS_MIN_MEM 0x00010000
|
|
|
|
#endif /* _ASM_FRV_PCI_H */
|