x86: arch/x86/mm/init_32.c cleanup
[wrt350n-kernel.git] / include / asm-sparc64 / isa.h
blobecd9290f78d4f5a87acd85145d3172edfa0ccebb
1 /* $Id: isa.h,v 1.1 2001/05/11 04:31:55 davem Exp $
2 * isa.h: Sparc64 layer for PCI to ISA bridge devices.
4 * Copyright (C) 2001 David S. Miller (davem@redhat.com)
5 */
7 #ifndef __SPARC64_ISA_H
8 #define __SPARC64_ISA_H
10 #include <asm/oplib.h>
11 #include <asm/prom.h>
12 #include <asm/of_device.h>
14 struct sparc_isa_bridge;
16 struct sparc_isa_device {
17 struct of_device ofdev;
18 struct sparc_isa_device *next;
19 struct sparc_isa_device *child;
20 struct sparc_isa_bridge *bus;
21 struct device_node *prom_node;
22 struct resource resource;
23 unsigned int irq;
25 #define to_isa_device(d) container_of(d, struct sparc_isa_device, ofdev.dev)
27 struct sparc_isa_bridge {
28 struct of_device ofdev;
29 struct sparc_isa_bridge *next;
30 struct sparc_isa_device *devices;
31 struct pci_dev *self;
32 int index;
33 struct device_node *prom_node;
35 #define to_isa_bridge(d) container_of(d, struct sparc_isa_bridge, ofdev.dev)
37 extern struct sparc_isa_bridge *isa_chain;
39 extern void isa_init(void);
41 #define for_each_isa(bus) \
42 for((bus) = isa_chain; (bus); (bus) = (bus)->next)
44 #define for_each_isadev(dev, bus) \
45 for((dev) = (bus)->devices; (dev); (dev) = (dev)->next)
47 #endif /* !(__SPARC64_ISA_H) */