/* $OpenBSD: bus.h,v 1.13 2001/07/30 14:15:59 art Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
(((t)->hbt_rrm_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
(((t)->hbt_rrm_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
(((t)->hbt_rrm_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
(((t)->hbt_wrm_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
(((t)->hbt_wrm_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
(((t)->hbt_wrm_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_1(t, h, o, a, c) \
(((t)->hbt_rr_1)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_2(t, h, o, a, c) \
(((t)->hbt_rr_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_4(t, h, o, a, c) \
(((t)->hbt_rr_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_8(t, h, o, a, c) \
(((t)->hbt_rr_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_1(t, h, o, a, c) \
(((t)->hbt_wr_1)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_2(t, h, o, a, c) \
(((t)->hbt_wr_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_4(t, h, o, a, c) \
(((t)->hbt_wr_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_8(t, h, o, a, c) \
(((t)->hbt_wr_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_stream_2(t, h, o, a, c) \
(((t)->hbt_rrr_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_stream_4(t, h, o, a, c) \
(((t)->hbt_rrr_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_read_region_stream_8(t, h, o, a, c) \
(((t)->hbt_rrr_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_stream_2(t, h, o, a, c) \
(((t)->hbt_wrr_2)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_stream_4(t, h, o, a, c) \
(((t)->hbt_wrr_4)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_write_region_stream_8(t, h, o, a, c) \
(((t)->hbt_wrr_8)((t)->hbt_cookie, (h), (o), (a), (c)))
#define bus_space_set_region_1(t, h, o, v, c) \
(((t)->hbt_sr_1)((t)->hbt_cookie, (h), (o), (v), (c)))
#define bus_space_set_region_2(t, h, o, v, c) \
(((t)->hbt_sr_2)((t)->hbt_cookie, (h), (o), (v), (c)))
#define bus_space_set_region_4(t, h, o, v, c) \
(((t)->hbt_sr_4)((t)->hbt_cookie, (h), (o), (v), (c)))
#define bus_space_set_region_8(t, h, o, v, c) \
(((t)->hbt_sr_8)((t)->hbt_cookie, (h), (o), (v), (c)))