NetBSD/sys/arch/sandpoint/include/bus.h
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00

33 lines
1018 B
C

/* $NetBSD: bus.h,v 1.8 2007/10/17 19:56:56 garbled Exp $ */
/* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */
#ifndef _SANDPOINT_BUS_H_
#define _SANDPOINT_BUS_H_
/*
* Values for the SandPoint bus space tag, not to be used directly by MI code.
*/
#define SANDPOINT_BUS_SPACE_IO 0xFE000000 /* i/o space */
#define SANDPOINT_BUS_SPACE_MEM 0x80000000 /* mem space */
#define SANDPOINT_BUS_SPACE_EUMB 0xFC000000 /* EUMB space */
#define SANDPOINT_PCI_CONFIG_ADDR 0xFEC00CF8
#define SANDPOINT_PCI_CONFIG_DATA 0xFEE00CFC
/*
* Address conversion as seen from a PCI master.
*/
#define PHYS_TO_BUS_MEM(t,x) (x)
#define BUS_MEM_TO_PHYS(t,x) (x)
#ifdef _KERNEL
extern struct powerpc_bus_space sandpoint_io_space_tag;
extern struct powerpc_bus_space genppc_isa_io_space_tag;
extern struct powerpc_bus_space sandpoint_mem_space_tag;
extern struct powerpc_bus_space genppc_isa_mem_space_tag;
extern struct powerpc_bus_space sandpoint_eumb_space_tag;
#endif
#include <powerpc/bus.h>
#endif /* _SANDPOINT_BUS_H_ */