pci-bridge.h (a61944c251c3e68c4bbf6eb96ff61c7b286351c5) pci-bridge.h (0e47ff1ce65bbd0b12a9421a2756b26987ea5083)
1#ifndef _ASM_POWERPC_PCI_BRIDGE_H
2#define _ASM_POWERPC_PCI_BRIDGE_H
3#ifdef __KERNEL__
4/*
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
9 */
10#include <linux/pci.h>
11#include <linux/list.h>
12#include <linux/ioport.h>
13
14struct device_node;
15
16enum {
17 /* Force re-assigning all resources (ignore firmware
18 * setup completely)
19 */
1#ifndef _ASM_POWERPC_PCI_BRIDGE_H
2#define _ASM_POWERPC_PCI_BRIDGE_H
3#ifdef __KERNEL__
4/*
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
9 */
10#include <linux/pci.h>
11#include <linux/list.h>
12#include <linux/ioport.h>
13
14struct device_node;
15
16enum {
17 /* Force re-assigning all resources (ignore firmware
18 * setup completely)
19 */
20 PPC_PCI_REASSIGN_ALL_RSRC = 0x00000001,
20 PCI_REASSIGN_ALL_RSRC = 0x00000001,
21
22 /* Re-assign all bus numbers */
21
22 /* Re-assign all bus numbers */
23 PPC_PCI_REASSIGN_ALL_BUS = 0x00000002,
23 PCI_REASSIGN_ALL_BUS = 0x00000002,
24
25 /* Do not try to assign, just use existing setup */
24
25 /* Do not try to assign, just use existing setup */
26 PPC_PCI_PROBE_ONLY = 0x00000004,
26 PCI_PROBE_ONLY = 0x00000004,
27
28 /* Don't bother with ISA alignment unless the bridge has
29 * ISA forwarding enabled
30 */
27
28 /* Don't bother with ISA alignment unless the bridge has
29 * ISA forwarding enabled
30 */
31 PPC_PCI_CAN_SKIP_ISA_ALIGN = 0x00000008,
31 PCI_CAN_SKIP_ISA_ALIGN = 0x00000008,
32
33 /* Enable domain numbers in /proc */
32
33 /* Enable domain numbers in /proc */
34 PPC_PCI_ENABLE_PROC_DOMAINS = 0x00000010,
34 PCI_ENABLE_PROC_DOMAINS = 0x00000010,
35 /* ... except for domain 0 */
35 /* ... except for domain 0 */
36 PPC_PCI_COMPAT_DOMAIN_0 = 0x00000020,
36 PCI_COMPAT_DOMAIN_0 = 0x00000020,
37};
38#ifdef CONFIG_PCI
37};
38#ifdef CONFIG_PCI
39extern unsigned int ppc_pci_flags;
39extern unsigned int pci_flags;
40
40
41static inline void ppc_pci_set_flags(int flags)
41static inline void pci_set_flags(int flags)
42{
42{
43 ppc_pci_flags = flags;
43 pci_flags = flags;
44}
45
44}
45
46static inline void ppc_pci_add_flags(int flags)
46static inline void pci_add_flags(int flags)
47{
47{
48 ppc_pci_flags |= flags;
48 pci_flags |= flags;
49}
50
49}
50
51static inline int ppc_pci_has_flag(int flag)
51static inline int pci_has_flag(int flag)
52{
52{
53 return (ppc_pci_flags & flag);
53 return (pci_flags & flag);
54}
55#else
54}
55#else
56static inline void ppc_pci_set_flags(int flags) { }
57static inline void ppc_pci_add_flags(int flags) { }
58static inline int ppc_pci_has_flag(int flag)
56static inline void pci_set_flags(int flags) { }
57static inline void pci_add_flags(int flags) { }
58static inline int pci_has_flag(int flag)
59{
60 return 0;
61}
62#endif
63
64
65/*
66 * Structure of a PCI controller (host bridge)

--- 242 unchanged lines hidden ---
59{
60 return 0;
61}
62#endif
63
64
65/*
66 * Structure of a PCI controller (host bridge)

--- 242 unchanged lines hidden ---