diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-08-07 00:04:53 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-08-07 00:04:53 +0000 |
commit | 38a807f0b046f79d3d0290ceda8704ff3cf14559 (patch) | |
tree | ed469d252fee5261a77bc64b7bcf2927a46168b0 /sys/dev/usb/uhcivar.h | |
parent | 7a93943baf71e64372d95defad2b70666a260193 (diff) | |
download | FreeBSD-src-38a807f0b046f79d3d0290ceda8704ff3cf14559.zip FreeBSD-src-38a807f0b046f79d3d0290ceda8704ff3cf14559.tar.gz |
Save and restore the registers SOF and FRAMENUMBER on suspend. In some
cases the registers are not correctly set on resume.
This solves the problem of USB failing after resuming a machine.
Submitted by: mike+fbsd@medianstrip.net
PR: 18261
Diffstat (limited to 'sys/dev/usb/uhcivar.h')
-rw-r--r-- | sys/dev/usb/uhcivar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/uhcivar.h b/sys/dev/usb/uhcivar.h index 5e73e71..ead3495 100644 --- a/sys/dev/usb/uhcivar.h +++ b/sys/dev/usb/uhcivar.h @@ -154,6 +154,9 @@ typedef struct uhci_softc { u_int8_t sc_addr; /* device address */ u_int8_t sc_conf; /* device configuration */ + u_int8_t sc_saved_sof; + u_int16_t sc_saved_frnum; + char sc_isreset; char sc_suspend; |