bus.h (5974e5c71cb4a1d9b23559c1f17f291e911dfb6a) | bus.h (06db52b6098b8904169760c6b005f5175b6ad6b1) |
---|---|
1/* $NetBSD: bus.h,v 1.11 2003/07/28 17:35:54 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 59 unchanged lines hidden (view full) --- 68 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 69 * 70 * $FreeBSD$ 71 */ 72 73#ifndef _MACHINE_BUS_H_ 74#define _MACHINE_BUS_H_ 75 | 1/* $NetBSD: bus.h,v 1.11 2003/07/28 17:35:54 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 59 unchanged lines hidden (view full) --- 68 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 69 * 70 * $FreeBSD$ 71 */ 72 73#ifndef _MACHINE_BUS_H_ 74#define _MACHINE_BUS_H_ 75 |
76/* 77 * Addresses (in bus space). 78 */ 79typedef u_long bus_addr_t; 80typedef u_long bus_size_t; | 76#include <machine/_bus.h> |
81 82/* | 77 78/* |
83 * Access methods for bus space. 84 */ 85typedef struct bus_space *bus_space_tag_t; 86typedef u_long bus_space_handle_t; 87 88/* | |
89 * int bus_space_map (bus_space_tag_t t, bus_addr_t addr, 90 * bus_size_t size, int flags, bus_space_handle_t *bshp); 91 * 92 * Map a region of bus space. 93 */ 94 95#define BUS_SPACE_MAP_CACHEABLE 0x01 96#define BUS_SPACE_MAP_LINEAR 0x02 --- 535 unchanged lines hidden --- | 79 * int bus_space_map (bus_space_tag_t t, bus_addr_t addr, 80 * bus_size_t size, int flags, bus_space_handle_t *bshp); 81 * 82 * Map a region of bus space. 83 */ 84 85#define BUS_SPACE_MAP_CACHEABLE 0x01 86#define BUS_SPACE_MAP_LINEAR 0x02 --- 535 unchanged lines hidden --- |