From 99a7e12f34b3661a0d1354eef83a0eef4df5e34c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 5 Feb 2000 06:47:02 +0000 Subject: Merge with Linux 2.3.38. --- include/asm-sparc/ebus.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'include/asm-sparc/ebus.h') diff --git a/include/asm-sparc/ebus.h b/include/asm-sparc/ebus.h index 2c8aa9fc6..2d6a997c5 100644 --- a/include/asm-sparc/ebus.h +++ b/include/asm-sparc/ebus.h @@ -1,4 +1,4 @@ -/* $Id: ebus.h,v 1.1 1998/09/22 05:54:41 jj Exp $ +/* $Id: ebus.h,v 1.2 1999/09/11 23:05:55 zaitcev Exp $ * ebus.h: PCI to Ebus pseudo driver software state. * * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be) @@ -9,6 +9,9 @@ #ifndef __SPARC_EBUS_H #define __SPARC_EBUS_H +#ifndef _LINUX_IOPORT_H +#include +#endif #include struct linux_ebus_child { @@ -17,7 +20,7 @@ struct linux_ebus_child { struct linux_ebus *bus; int prom_node; char prom_name[64]; - unsigned long base_address[PROMREG_MAX]; + struct resource resource[PROMREG_MAX]; int num_addrs; unsigned int irqs[PROMINTR_MAX]; int num_irqs; @@ -29,7 +32,7 @@ struct linux_ebus_device { struct linux_ebus *bus; int prom_node; char prom_name[64]; - unsigned long base_address[PROMREG_MAX]; + struct resource resource[PROMREG_MAX]; int num_addrs; unsigned int irqs[PROMINTR_MAX]; int num_irqs; @@ -92,10 +95,4 @@ extern void ebus_init(void); #define for_each_edevchild(dev, child) \ for((child) = (dev)->children; (child); (child) = (child)->next) -/* P3: Actually unused in sparc */ -#define for_all_ebusdev(dev, bus) \ - for ((bus) = ebus_chain, ((dev) = (bus) ? (bus)->devices : 0); \ - (bus); ((dev) = (dev)->next ? (dev)->next : \ - ((bus) = (bus)->next, (bus) ? (bus)->devices : 0))) - #endif /* !(__SPARC_EBUS_H) */ -- cgit v1.2.3