summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-06-25 19:21:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-06-25 19:21:20 +0000
commit5a3744d2a7fcd5cde6ca2bec58ad376fd1114904 (patch)
treebcb044f9df0c3d957f8342f49c6de1a1550dd815 /sys
parentc6ed51c694ae72c86cbad0e1570afc0046266996 (diff)
Oops, put back iot/memt affectations in io_alloc/mem_alloc; spotted by todd@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/ts102.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/ts102.c b/sys/arch/sparc/dev/ts102.c
index 926f7fbe9f4..fbe8d2deecc 100644
--- a/sys/arch/sparc/dev/ts102.c
+++ b/sys/arch/sparc/dev/ts102.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts102.c,v 1.4 2003/06/25 17:39:00 miod Exp $ */
+/* $OpenBSD: ts102.c,v 1.5 2003/06/25 19:21:19 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
*
@@ -381,7 +381,7 @@ tslot_io_alloc(pcmcia_chipset_handle_t pch, bus_addr_t start, bus_size_t size,
printf("[io alloc %x]", size);
#endif
- pih->iot = 0;
+ pih->iot = &td->td_rr;
pih->ioh = (bus_space_handle_t)(td->td_space[TS102_RANGE_IO]);
pih->addr = start;
pih->size = size;
@@ -431,10 +431,12 @@ int
tslot_mem_alloc(pcmcia_chipset_handle_t pch, bus_size_t size,
struct pcmcia_mem_handle *pmh)
{
+ struct tslot_data *td = (struct tslot_data *)pch;
+
#ifdef TSLOT_DEBUG
printf("[mem alloc %x]", size);
#endif
- pmh->memt = 0;
+ pmh->memt = &td->td_rr;
pmh->size = round_page(size);
pmh->addr = 0;
pmh->mhandle = 0;