1 /* MN10300 PCI definitions
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
15 #include <linux/mm.h> /* for struct page */
18 #define __pcbdebug(FMT, ADDR, ...) \
19 printk(KERN_DEBUG "PCIBRIDGE[%08x]: "FMT"\n", \
20 (u32)(ADDR), ##__VA_ARGS__)
22 #define __pcidebug(FMT, BUS, DEVFN, WHERE,...) \
24 printk(KERN_DEBUG "PCI[%02x:%02x.%x + %02x]: "FMT"\n", \
28 (u32)(WHERE), ##__VA_ARGS__); \
32 #define __pcbdebug(FMT, ADDR, ...) do {} while (0)
33 #define __pcidebug(FMT, BUS, DEVFN, WHERE, ...) do {} while (0)
36 /* Can be used to override the logic in pci_scan_bus for skipping
37 * already-configured bus numbers - to be used for buggy BIOSes or
38 * architectures with incomplete PCI setup by the loader */
41 #define pcibios_assign_all_busses() 1
42 extern void unit_pci_init(void);
44 #define pcibios_assign_all_busses() 0
47 #define PCIBIOS_MIN_IO 0xBE000004
48 #define PCIBIOS_MIN_MEM 0xB8000000
50 void pcibios_set_master(struct pci_dev
*dev
);
52 /* Dynamic DMA mapping stuff.
53 * i386 has everything mapped statically.
56 #include <linux/types.h>
57 #include <linux/slab.h>
58 #include <linux/scatterlist.h>
59 #include <linux/string.h>
64 /* The PCI address space does equal the physical memory
65 * address space. The networking and block device layers use
66 * this boolean for bounce buffer decisions.
68 #define PCI_DMA_BUS_IS_PHYS (1)
70 /* Return the index of the PCI controller for device. */
71 static inline int pci_controller_num(struct pci_dev
*dev
)
77 extern int pci_mmap_page_range(struct pci_dev
*dev
, struct vm_area_struct
*vma
,
78 enum pci_mmap_state mmap_state
,
81 #endif /* __KERNEL__ */
83 static inline int pci_get_legacy_ide_irq(struct pci_dev
*dev
, int channel
)
85 return channel
? 15 : 14;
88 #include <asm-generic/pci_iomap.h>
90 #endif /* _ASM_PCI_H */