add bus_space_*_stream() methods

This commit is contained in:
macallan 2007-01-21 23:19:57 +00:00
parent 6d8f729825
commit ed57b01256
2 changed files with 80 additions and 3 deletions

View File

@ -1,4 +1,6 @@
/* $NetBSD: bus.h,v 1.1 2002/02/10 01:57:10 thorpej Exp $ */
/* $NetBSD: bus.h,v 1.2 2007/01/21 23:19:57 macallan Exp $ */
#define __BUS_SPACE_HAS_STREAM_METHODS
#include <arm/bus.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa_io.c,v 1.7 2006/12/07 03:10:14 macallan Exp $ */
/* $NetBSD: isa_io.c,v 1.8 2007/01/21 23:19:57 macallan Exp $ */
/*
* Copyright 1997
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: isa_io.c,v 1.7 2006/12/07 03:10:14 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: isa_io.c,v 1.8 2007/01/21 23:19:57 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -143,6 +143,44 @@ struct bus_space isa_io_bs_tag = {
isa_bs_c_2,
bs_notimpl_bs_c_4,
bs_notimpl_bs_c_8,
/* stream methods are identical to regular read/write here */
/* read stream single */
isa_bs_r_1,
isa_bs_r_2,
isa_bs_r_4,
bs_notimpl_bs_r_8,
/* read stream multiple */
isa_bs_rm_1,
isa_bs_rm_2,
isa_bs_rm_4,
bs_notimpl_bs_rm_8,
/* read region stream */
isa_bs_rr_1,
isa_bs_rr_2,
isa_bs_rr_4,
bs_notimpl_bs_rr_8,
/* write stream single */
isa_bs_w_1,
isa_bs_w_2,
isa_bs_w_4,
bs_notimpl_bs_w_8,
/* write stream multiple */
isa_bs_wm_1,
isa_bs_wm_2,
isa_bs_wm_4,
bs_notimpl_bs_wm_8,
/* write region stream */
isa_bs_wr_1,
isa_bs_wr_2,
isa_bs_wr_4,
bs_notimpl_bs_wr_8,
};
/*
@ -224,6 +262,43 @@ struct bus_space isa_mem_bs_tag = {
isa_bs_c_2,
bs_notimpl_bs_c_4,
bs_notimpl_bs_c_8,
/* stream methods are identical to regular read/write here */
/* read stream single */
isa_bs_r_1,
isa_bs_r_2,
isa_bs_r_4,
bs_notimpl_bs_r_8,
/* read stream multiple */
isa_bs_rm_1,
isa_bs_rm_2,
isa_bs_rm_4,
bs_notimpl_bs_rm_8,
/* read region stream */
isa_bs_rr_1,
isa_bs_rr_2,
isa_bs_rr_4,
bs_notimpl_bs_rr_8,
/* write stream single */
isa_bs_w_1,
isa_bs_w_2,
isa_bs_w_4,
bs_notimpl_bs_w_8,
/* write stream multiple */
isa_bs_wm_1,
isa_bs_wm_2,
isa_bs_wm_4,
bs_notimpl_bs_wm_8,
/* write region stream */
isa_bs_wr_1,
isa_bs_wr_2,
isa_bs_wr_4,
bs_notimpl_bs_wr_8,
};
/* bus space functions */