History log of /openbsd/sys/dev/usb/umassvar.h (Results 1 – 15 of 15)
Revision Date Author Comments
# 88e48fc9 23-Nov-2020 krw <krw@openbsd.org>

Adopt a Linux heuristic and mark as IGNORE_RESIDUE those umass(4)
devices whose INQUIRY command succeeds but with a residue equal to the
requested bytes. Subsequent i/o's (including the INQUIRY) whi

Adopt a Linux heuristic and mark as IGNORE_RESIDUE those umass(4)
devices whose INQUIRY command succeeds but with a residue equal to the
requested bytes. Subsequent i/o's (including the INQUIRY) which succeed
with a residue equal to the requested bytes will have residue set to 0.

Fixes (very?) old devices such as the memory stick Andrew Daugherity
pulled out of his drawer and with which he hoped to install 6.8.
Subsequent testing of diffs much appreciated!

show more ...


# 06a6a186 16-Dec-2015 mpi <mpi@openbsd.org>

Refactor umass_detach() in order to pass a size to free(9).

Based on a diff from Mathieu <naabed AT poolp DOT org>.


# 8aa5d736 06-Nov-2013 pirofti <pirofti@openbsd.org>

Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().

Okay mpi@


# ab0b1be7 15-Apr-2013 mglocker <mglocker@openbsd.org>

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@

show more ...


# a7d479f5 13-Jun-2007 mbalmer <mbalmer@openbsd.org>

Apply some KNF after the recent removal of macros and type definitions.

No binary change.

ok ray.


# 73030186 12-Jun-2007 mbalmer <mbalmer@openbsd.org>

Remove the definition and use of the device_ptr_t which was a struct device *.

No binary change.

ok mk.


# 8c5d01ee 06-Jun-2007 mk <mk@openbsd.org>

Mechanical removal of USBBASEDEVICE. No binary change.

Tested by thib and myself.

ok mbalmer jsg


# 695146ce 21-May-2007 jsg <jsg@openbsd.org>

Remove logprintf macro


# 20241398 01-Apr-2005 pascoe <pascoe@openbsd.org>

Add support for polled umass/SCSI transactions. Should eliminate the panics
seen at reboot time after writing to umass devices.

ok dlg@, testing markus@


# f04d6d19 21-Jul-2004 dlg <dlg@openbsd.org>

from netbsd, umass.c 1.100 1.113 1.115, umass_scsipi.c 1.11, umassvar.h 1.21
log message for umass 1.98, umass_scsipi.c 1.11, umassvar.h 1.21:
Fix several problems with CCI handling, and enable it: *

from netbsd, umass.c 1.100 1.113 1.115, umass_scsipi.c 1.11, umassvar.h 1.21
log message for umass 1.98, umass_scsipi.c 1.11, umassvar.h 1.21:
Fix several problems with CCI handling, and enable it: * We were never calling
the callback function when we got a UFI CCI(!). * We were passing a bogus
residual count on non-UFI CCIs. * After a REQUEST SENSE, the UFI CCI may
include the ASC/ASCQ from the sense information -- don't consider this a
failure.

In addition, remove a horrible hack that was causing us to drop sense
information on the floor and return empty INQUIRY responses, often in the
case where there is a UNIT ATTENTION pending during the INQUIRY. (Some drives
send the data and then fail, some don't.)

log message for umass.c 1.113:
Do not return STATUS_WIRE_FAILED in response to a CBI stall. This is perfectly
normal, and is used to report errors. Instead, use STATUS_CMD_FAILED, which
causes us to do a REQUEST SENSE. Should address PR 22960.

log message for umass.c 1.115:
Do not do a CBI reset before returning STATUS_CMD_FAILED. This causes any
sense information to be thrown away, and is therefore nonsensical.

ok krw@

show more ...


# c6d7938f 17-Jul-2004 dlg <dlg@openbsd.org>

from netbsd, umass.c 1.98, umassvar.h 1.20
log message:
Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.

We don't have UMASS_QUIRK_NO_START_STOP so I didn't have to remove it. I
consider

from netbsd, umass.c 1.98, umassvar.h 1.20
log message:
Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.

We don't have UMASS_QUIRK_NO_START_STOP so I didn't have to remove it. I
consider umass_quirks.c to be too different so I hand removed references to
the removed defines. There are some useless entries in there now which will
be cleaned up after umass is merged with netbsd.

ok deraadt@

show more ...


# fcfe4ff8 08-Jul-2004 deraadt <deraadt@openbsd.org>

put "do { } while (0)" wrappers on all the debug maroc functions


# f0e7a9c7 21-Feb-2004 krw <krw@openbsd.org>

Eliminate the quirks SDEV_NOSTARTUNIT, UMASS_QUIRK_NO_START_STOP, and
UMASS_QUIRK_FORCE_SHORT_INQUIRY. Fixes a bunch of USB devices. Based
on work by Mycroft in NetBSD.

ok tdeval@ deraadt@.


# ff61a120 17-May-2003 nate <nate@openbsd.org>

sync with NetBSD and add various local hacks to make things work correctly
with our scsi layer


# 5cd29220 07-May-2002 nate <nate@openbsd.org>

Sync ulpt driver with NetBSD