2 * SBus helper functions
4 * Sun3x don't have a sbus, but many of the used devices are also
5 * used on Sparc machines with sbus. To avoid having a lot of
6 * duplicate code, we provide necessary glue stuff to make using
7 * of the sbus driver code possible.
9 * (C) 1999 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
12 #include <linux/types.h>
13 #include <linux/init.h>
15 __initfunc(void sbus_init(void))
20 void *sparc_alloc_io (u32 address
, void *virtual, int len
, char *name
,
21 u32 bus_type
, int rdonly
)
23 return (void *)address
;
26 int prom_getintdefault(int node
, char *property
, int deflt
)
31 int prom_getbool (int node
, char *prop
)
36 void prom_printf(char *fmt
, ...)