1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef _ASM_FRV_PCI_H
14#define _ASM_FRV_PCI_H
15
16#include <linux/mm.h>
17#include <asm/scatterlist.h>
18#include <asm-generic/pci-dma-compat.h>
19#include <asm-generic/pci.h>
20
21struct pci_dev;
22
23#define pcibios_assign_all_busses() 0
24
25extern void pcibios_set_master(struct pci_dev *dev);
26
27#ifdef CONFIG_MMU
28extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
29extern void consistent_free(void *vaddr);
30extern void consistent_sync(void *vaddr, size_t size, int direction);
31extern void consistent_sync_page(struct page *page, unsigned long offset,
32 size_t size, int direction);
33#endif
34
35extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
36 dma_addr_t *dma_handle);
37
38extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
39 void *vaddr, dma_addr_t dma_handle);
40
41
42#define pci_controller_num(PDEV) (0)
43
44#ifdef CONFIG_PCI
45static inline void pci_dma_burst_advice(struct pci_dev *pdev,
46 enum pci_dma_burst_strategy *strat,
47 unsigned long *strategy_parameter)
48{
49 *strat = PCI_DMA_BURST_INFINITY;
50 *strategy_parameter = ~0UL;
51}
52#endif
53
54
55
56
57
58#define PCIBIOS_MIN_IO 0x100
59#define PCIBIOS_MIN_MEM 0x00010000
60
61#endif
62