[PATCH] RTC: class driver for Samsung S3C series SoC
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-sparc64 / isa.h
blobd9728b9031fc90a9052eb55545cdede2576b4df8
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/pbm.h>
11 #include <asm/oplib.h>
12 #include <asm/prom.h>
13 #include <asm/of_device.h>
15 struct sparc_isa_bridge;
17 struct sparc_isa_device {
18 struct of_device ofdev;
19 struct sparc_isa_device *next;
20 struct sparc_isa_device *child;
21 struct sparc_isa_bridge *bus;
22 struct device_node *prom_node;
23 struct resource resource;
24 unsigned int irq;
26 #define to_isa_device(d) container_of(d, struct sparc_isa_device, ofdev.dev)
28 struct sparc_isa_bridge {
29 struct of_device ofdev;
30 struct sparc_isa_bridge *next;
31 struct sparc_isa_device *devices;
32 struct pci_pbm_info *parent;
33 struct pci_dev *self;
34 int index;
35 struct device_node *prom_node;
37 #define to_isa_bridge(d) container_of(d, struct sparc_isa_bridge, ofdev.dev)
39 extern struct sparc_isa_bridge *isa_chain;
41 extern void isa_init(void);
43 #define for_each_isa(bus) \
44 for((bus) = isa_chain; (bus); (bus) = (bus)->next)
46 #define for_each_isadev(dev, bus) \
47 for((dev) = (bus)->devices; (dev); (dev) = (dev)->next)
49 #endif /* !(__SPARC64_ISA_H) */