blob: d43febbc9c7db5936c490262a49463f6da021268 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_M68K_PCI_H
2#define _ASM_M68K_PCI_H
3
4/*
5 * asm-m68k/pci_m68k.h - m68k specific PCI declarations.
6 *
7 * Written by Wout Klaren.
8 */
9
10#include <asm/scatterlist.h>
Geert Uytterhoeven998aaf02008-10-13 21:58:57 +020011#include <asm-generic/pci-dma-compat.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13struct pci_ops;
14
15/*
16 * Structure with hardware dependent information and functions of the
17 * PCI bus.
18 */
19
20struct pci_bus_info
21{
22 /*
23 * Resources of the PCI bus.
24 */
25
26 struct resource mem_space;
27 struct resource io_space;
28
29 /*
30 * System dependent functions.
31 */
32
33 struct pci_ops *m68k_pci_ops;
34
35 void (*fixup)(int pci_modify);
36 void (*conf_device)(struct pci_dev *dev);
37};
38
39#define pcibios_assign_all_busses() 0
40#define pcibios_scan_all_fns(a, b) 0
41
42static inline void pcibios_set_master(struct pci_dev *dev)
43{
44 /* No special bus mastering setup handling */
45}
46
David Shaohua Lic9c3e452005-04-01 00:07:31 -050047static inline void pcibios_penalize_isa_irq(int irq, int active)
Linus Torvalds1da177e2005-04-16 15:20:36 -070048{
49 /* We don't do dynamic PCI IRQ allocation */
50}
51
52/* The PCI address space does equal the physical memory
53 * address space. The networking and block device layers use
54 * this boolean for bounce buffer decisions.
55 */
56#define PCI_DMA_BUS_IS_PHYS (1)
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058#endif /* _ASM_M68K_PCI_H */