[PATCH] Add UFI related mode pages to scsi_modes
Kenneth D. Merry
ken at kdm.org
Fri Oct 8 09:27:29 PDT 2004
On Fri, Oct 08, 2004 at 00:28:54 -0700, Bruce M Simpson wrote:
> [Please Cc: me as I am not subscribed to -scsi]
>
> Any objections to my committing this patch to HEAD?
>
> Most of the details herein come from the USB Mass Storage UFI Spec.
Well, for page 0x1b, that'll probably be okay. I hope at some point to put
device type information in the mode page database so that we can
distinguish between pages with identical numbers that are different for
different device types.
As for page 0x1c, though, we have a problem.
If you look at SPC-3, it is not a per device type page, but rather a
general SCSI page (Informational Exceptions Control mode page).
My guess is that the USB folks stole a reserved mode page number, and now
it is used for something else.
In order to make that work, we'll have to come up with a way to have
different mode pages with the same number, and then automatically figure
out which page format goes with the device we're talking to.
The pieces of information we'll need to do that are likely:
- device type (direct access, sequential access, CD, etc.)
- transport/protocol information (I wouldn't have put this in the list
before now, but we'll have to use this or some other similar method to
distinguish between UFI devices and everything else.)
- inquiry information for vendor-specific mode pages
> --- /usr/src/share/misc/scsi_modes Sun Feb 24 05:27:57 2002
> +++ scsi_modes Fri Oct 8 00:26:13 2004
> @@ -291,6 +291,28 @@
> {Reserved} *i4
> }
>
> +# Removable devices
> +0x1b "Removable Block Access Capacities Page" {
> + {System Floppy Type Device} t1
> + {Supports Reporting Format Progress} t1
> + {Reserved} *t6
> + {Non CD Optical Device} t1
> + {Single or Multiple LUN Supported} t1
> + {Reserved} *t3
> + {Total Logical Units Supported} t3
> + {Reserved} *i8
> +}
> +
> +0x1c "Timer and Protect Page" {
> + {Reserved} *i1
> + {Reserved} *t4
> + {Inactivity Time Multiplier} t4
> + {Reserved} *t6
> + {Disable Media Access until Power Cycle} t1
> + {Software Write Protect until Power Cycle} t1
> + {Reserved} *i3
> +}
> +
> # CD-ROM (and CD-R[W]) devices
> 0x2a "CD capabilities and mechanical status page" {
> {Reserved} *t4
Ken
--
Kenneth Merry
ken at kdm.org
More information about the freebsd-scsi
mailing list