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)
7 #ifndef __SPARC64_ISA_H
8 #define __SPARC64_ISA_H
11 #include <asm/oplib.h>
13 struct sparc_isa_bridge
;
15 struct sparc_isa_device
{
16 struct sparc_isa_device
*next
;
17 struct sparc_isa_device
*child
;
18 struct sparc_isa_bridge
*bus
;
22 struct resource resource
;
26 struct sparc_isa_bridge
{
27 struct sparc_isa_bridge
*next
;
28 struct sparc_isa_device
*devices
;
29 struct pci_pbm_info
*parent
;
34 #define linux_prom_isa_ranges linux_prom_ebus_ranges
35 struct linux_prom_isa_ranges isa_ranges
[PROMREG_MAX
];
37 #define linux_prom_isa_intmap linux_prom_ebus_intmap
38 struct linux_prom_isa_intmap isa_intmap
[PROMREG_MAX
];
40 #define linux_prom_isa_intmask linux_prom_ebus_intmask
41 struct linux_prom_isa_intmap isa_intmask
;
44 extern struct sparc_isa_bridge
*isa_chain
;
46 extern void isa_init(void);
48 #define for_each_isa(bus) \
49 for((bus) = isa_chain; (bus); (bus) = (bus)->next)
51 #define for_each_isadev(dev, bus) \
52 for((dev) = (bus)->devices; (dev); (dev) = (dev)->next)
54 #endif /* !(__SPARC64_ISA_H) */