diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-01-30 22:14:30 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-01-30 22:14:30 +0000 |
| commit | e6fff3fa5420f32d63c2e13d4ae6125ffa209955 (patch) | |
| tree | c95cd487a95a15ec2eaf1b2d5be69b48f99d7dd4 /sys/dev/uart | |
| parent | 8e99783b259e78fd4a55c805ab59907ed7fcdb20 (diff) | |
Notes
Diffstat (limited to 'sys/dev/uart')
| -rw-r--r-- | sys/dev/uart/uart_dev_sab82532.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/uart/uart_dev_sab82532.c b/sys/dev/uart/uart_dev_sab82532.c index 0da08911f1d7a..112dca43f54a1 100644 --- a/sys/dev/uart/uart_dev_sab82532.c +++ b/sys/dev/uart/uart_dev_sab82532.c @@ -459,7 +459,7 @@ sab82532_bus_getsig(struct uart_softc *sc) SIGCHG(star & SAB_STAR_CTS, sig, SER_CTS, SER_DCTS); vstr = uart_getreg(bas, SAB_VSTR); SIGCHG(vstr & SAB_VSTR_CD, sig, SER_DCD, SER_DDCD); - pvr = uart_getreg(bas, SAB_PVR); + pvr = ~uart_getreg(bas, SAB_PVR); switch (bas->chan) { case 1: pvr &= SAB_PVR_DSR_A; @@ -468,7 +468,7 @@ sab82532_bus_getsig(struct uart_softc *sc) pvr &= SAB_PVR_DSR_B; break; } - SIGCHG(~pvr, sig, SER_DSR, SER_DDSR); + SIGCHG(pvr, sig, SER_DSR, SER_DDSR); mtx_unlock_spin(&sc->sc_hwmtx); new = sig & ~UART_SIGMASK_DELTA; } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); |
