summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-12-11 17:07:15 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-12-11 17:07:15 +0000
commita8eb0a9fc0b98b7b3415d1ca5352651e9ed778fa (patch)
tree7413babb4111de04de4c319c894b5a5c32e6feac /sys/arch/i386
parent7505ac789440ab79520a3193eb85316c416adfc9 (diff)
Kill the $ARCH prefix for isa_dma_cookie. With this change, the i386 and
amd64 isa dma code is identical save for some formatting, and a slight difference in bus_dmamem_alloc. "Die x86_!" krw@.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/isa_machdep.c20
-rw-r--r--sys/arch/i386/isa/isa_machdep.h4
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index fa7074aae44..65e728bfb98 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.65 2008/12/10 20:26:56 oga Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.66 2008/12/11 17:07:14 oga Exp $ */
/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */
/*-
@@ -651,7 +651,7 @@ int
_isa_bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,
bus_size_t maxsegsz, bus_size_t boundary, int flags, bus_dmamap_t *dmamp)
{
- struct i386_isa_dma_cookie *cookie;
+ struct isa_dma_cookie *cookie;
bus_dmamap_t map;
int error, cookieflags;
void *cookiestore;
@@ -666,7 +666,7 @@ _isa_bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,
map = *dmamp;
map->_dm_cookie = NULL;
- cookiesize = sizeof(struct i386_isa_dma_cookie);
+ cookiesize = sizeof(struct isa_dma_cookie);
/*
* ISA only has 24-bits of address space. This means
@@ -706,7 +706,7 @@ _isa_bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,
error = ENOMEM;
goto out;
}
- cookie = (struct i386_isa_dma_cookie *)cookiestore;
+ cookie = (struct isa_dma_cookie *)cookiestore;
cookie->id_flags = cookieflags;
map->_dm_cookie = cookie;
@@ -736,7 +736,7 @@ _isa_bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,
void
_isa_bus_dmamap_destroy(bus_dma_tag_t t, bus_dmamap_t map)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
/*
* Free any bounce pages this map might hold.
@@ -755,7 +755,7 @@ int
_isa_bus_dmamap_load(bus_dma_tag_t t, bus_dmamap_t map, void *buf,
bus_size_t buflen, struct proc *p, int flags)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
int error;
STAT_INCR(isa_dma_stats_loads);
@@ -855,7 +855,7 @@ _isa_bus_dmamap_load_raw(bus_dma_tag_t t, bus_dmamap_t map,
void
_isa_bus_dmamap_unload(bus_dma_tag_t t, bus_dmamap_t map)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
/*
* If we have bounce pages, free them, unless they're
@@ -880,7 +880,7 @@ void
_isa_bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset,
bus_size_t len, int op)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
#ifdef DEBUG
if ((op & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0) {
@@ -1052,7 +1052,7 @@ _isa_dma_check_buffer(void *buf, bus_size_t buflen, int segcnt,
int
_isa_dma_alloc_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map, bus_size_t size, int flags)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
int error = 0;
cookie->id_bouncebuflen = round_page(size);
@@ -1082,7 +1082,7 @@ _isa_dma_alloc_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map, bus_size_t size, int
void
_isa_dma_free_bouncebuf(bus_dma_tag_t t, bus_dmamap_t map)
{
- struct i386_isa_dma_cookie *cookie = map->_dm_cookie;
+ struct isa_dma_cookie *cookie = map->_dm_cookie;
STAT_DECR(isa_dma_stats_nbouncebufs);
diff --git a/sys/arch/i386/isa/isa_machdep.h b/sys/arch/i386/isa/isa_machdep.h
index 7da886a15d6..6f3e04cb27e 100644
--- a/sys/arch/i386/isa/isa_machdep.h
+++ b/sys/arch/i386/isa/isa_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.h,v 1.23 2008/12/03 15:46:07 oga Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.24 2008/12/11 17:07:14 oga Exp $ */
/* $NetBSD: isa_machdep.h,v 1.7 1997/06/06 23:28:42 thorpej Exp $ */
/*-
@@ -118,7 +118,7 @@ extern struct bus_dma_tag isa_bus_dma_tag;
* Cookie used by ISA dma. A pointer to one of these it stashed in
* the DMA map.
*/
-struct i386_isa_dma_cookie {
+struct isa_dma_cookie {
int id_flags; /* flags; see below */
void *id_origbuf; /* pointer to orig buffer if