diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2003-07-02 21:32:49 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2003-07-02 21:32:49 +0000 |
commit | db47935015998dfa065177216552df596183c359 (patch) | |
tree | 1cc846322dea4f3046ecfcd2c332aa42a39a7a73 /sys/arch/sparc | |
parent | 5035c30707e318455efb4630f1bade1beb524b25 (diff) |
fix tslot issues (need level-triggered interrupts); from miod
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/ts102.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/ts102.c b/sys/arch/sparc/dev/ts102.c index 99ae2ffea4c..f515beca0a5 100644 --- a/sys/arch/sparc/dev/ts102.c +++ b/sys/arch/sparc/dev/ts102.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts102.c,v 1.9 2003/06/28 16:40:52 miod Exp $ */ +/* $OpenBSD: ts102.c,v 1.10 2003/07/02 21:32:48 todd Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * @@ -555,6 +555,10 @@ tslot_slot_enable(pcmcia_chipset_handle_t pch) /* wait 20ms as per pc card standard (r2.01) section 4.3.6 */ DELAY(20 * 1000); + /* We need level-triggered interrupts for PC Card hardware */ + TSLOT_WRITE(td, TS102_REG_CARD_A_STS, + TSLOT_READ(td, TS102_REG_CARD_A_STS) | TS102_CARD_STS_LVL); + /* * Wait until the card is unbusy. If it is still busy after 3 seconds, * give up. We could enable card interrupts and wait for the interrupt |