NetBSD/sys/arch/pica/include/bus.h
jonathan ba9685ceff minial subset of bus.h, from CGD's description:
bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set.  Defines:
        bus_{io,mem}_{map,unmap}
        bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
1996-03-27 10:09:10 +00:00

31 lines
585 B
C

/* $NetBSD: bus.h,v 1.1 1996/03/27 10:09:10 jonathan Exp $ */
#ifndef _PICA_BUS_H_
#define _PICA_BUS_H_
/*
* ISA "I/O space" macros
*/
#include <machine/pio.h>
/*
* I/O addresses (in bus space)
*/
typedef u_int32_t bus_io_addr_t;
typedef u_int32_t bus_io_size_t;
/*
* Memory addresses (in bus space)
*/
typedef u_int32_t bus_mem_addr_t;
typedef u_int32_t bus_mem_size_t;
/*
* Access methods for bus resources, I/O space, and memory space.
*/
typedef void *bus_chipset_tag_t;
typedef u_int32_t bus_io_handle_t;
typedef caddr_t bus_mem_handle_t;
#endif /* _PICA_BUS_H_ */