Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* pci.h: FR-V specific PCI declarations |
2 | * | |
3 | * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. | |
4 | * Written by David Howells (dhowells@redhat.com) | |
5 | * - Derived from include/asm-m68k/pci.h | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or | |
8 | * modify it under the terms of the GNU General Public License | |
9 | * as published by the Free Software Foundation; either version | |
10 | * 2 of the License, or (at your option) any later version. | |
11 | */ | |
12 | ||
d7c4f1b7 AB |
13 | #ifndef _ASM_FRV_PCI_H |
14 | #define _ASM_FRV_PCI_H | |
1da177e4 | 15 | |
1da177e4 LT |
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 | ||
21 | struct pci_dev; | |
22 | ||
23 | #define pcibios_assign_all_busses() 0 | |
24 | ||
1da177e4 LT |
25 | extern void pcibios_set_master(struct pci_dev *dev); |
26 | ||
27 | extern void pcibios_penalize_isa_irq(int irq); | |
28 | ||
29 | #ifdef CONFIG_MMU | |
a5da7d3c | 30 | extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle); |
1da177e4 LT |
31 | extern void consistent_free(void *vaddr); |
32 | extern void consistent_sync(void *vaddr, size_t size, int direction); | |
33 | extern void consistent_sync_page(struct page *page, unsigned long offset, | |
34 | size_t size, int direction); | |
35 | #endif | |
36 | ||
37 | extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, | |
38 | dma_addr_t *dma_handle); | |
39 | ||
40 | extern void pci_free_consistent(struct pci_dev *hwdev, size_t size, | |
41 | void *vaddr, dma_addr_t dma_handle); | |
42 | ||
1da177e4 LT |
43 | /* Return the index of the PCI controller for device PDEV. */ |
44 | #define pci_controller_num(PDEV) (0) | |
45 | ||
bb4a61b6 | 46 | #ifdef CONFIG_PCI |
e24c2d96 DM |
47 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
48 | enum pci_dma_burst_strategy *strat, | |
49 | unsigned long *strategy_parameter) | |
50 | { | |
51 | *strat = PCI_DMA_BURST_INFINITY; | |
52 | *strategy_parameter = ~0UL; | |
53 | } | |
bb4a61b6 | 54 | #endif |
e24c2d96 | 55 | |
1da177e4 | 56 | /* |
25985edc | 57 | * These are pretty much arbitrary with the CoMEM implementation. |
1da177e4 LT |
58 | * We have the whole address space to ourselves. |
59 | */ | |
60 | #define PCIBIOS_MIN_IO 0x100 | |
61 | #define PCIBIOS_MIN_MEM 0x00010000 | |
62 | ||
d7c4f1b7 | 63 | #endif /* _ASM_FRV_PCI_H */ |