From 59af791344c0dc6cbea0edeafc20bf4b4f47db9b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 21 Jul 2009 21:20:06 +0000 Subject: Change the rbus md_space_{map,unmap} signature to take a rbus_tag_t instead of the bus_space_tag_t it contains; an upcoming implementation will need to know the rbus_tag_t for which it works at this point. All callers updated accordingly; no functional change intended. --- sys/dev/cardbus/rbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/cardbus/rbus.c b/sys/dev/cardbus/rbus.c index 0a11c01d563..2f27b01a237 100644 --- a/sys/dev/cardbus/rbus.c +++ b/sys/dev/cardbus/rbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rbus.c,v 1.11 2007/09/17 20:29:47 miod Exp $ */ +/* $OpenBSD: rbus.c,v 1.12 2009/07/21 21:20:05 miod Exp $ */ /* $NetBSD: rbus.c,v 1.3 1999/11/06 06:20:53 soren Exp $ */ /* * Copyright (c) 1999 @@ -144,7 +144,7 @@ rbus_space_alloc_subregion(rbus_tag_t rbt, bus_addr_t substart, } } - if (md_space_map(rbt->rb_bt, result, size, flags, bshp)) { + if (md_space_map(rbt, result, size, flags, bshp)) { /* map failed */ extent_free(rbt->rb_ext, result, size, exflags); return (1); @@ -172,7 +172,7 @@ rbus_space_free(rbus_tag_t rbt, bus_space_handle_t bsh, bus_size_t size, status = rbus_space_free(rbt->rb_parent, bsh, size, &addr); } else if (rbt->rb_flags == RBUS_SPACE_SHARE || rbt->rb_flags == RBUS_SPACE_DEDICATE) { - md_space_unmap(rbt->rb_bt, bsh, size, &addr); + md_space_unmap(rbt, bsh, size, &addr); extent_free(rbt->rb_ext, addr, size, exflags); -- cgit v1.2.3