Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 10:13:42 -0800
From:      Chuck Tuffli <chuck@tuffli.net>
To:        freebsd-scsi <freebsd-scsi@freebsd.org>
Subject:   how to determine protocol of USB devices
Message-ID:  <CAM0tzX3vDO6nMWfSBsD-ZTx0GqQpxMRF-oBb1zT5yC97SyzOQg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to use CAM to determine the protocol specific command to
send to a given device (e.g. Inquiry for SCSI devices or Identify for
SATA devices). The code works for direct attached SCSI/SATA devices,
but I'm not sure what to do with USB attached devices and could use
some advice.

The current code sends a XPT_GET_TRAN_SETTINGS and uses the returned
protocol field in the ccb_trans_settings structure. But for SATA
drives connected via USB, the protocol is SCSI. Is there a way via CAM
to determine that the drive is actually SATA? TIA.

--chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM0tzX3vDO6nMWfSBsD-ZTx0GqQpxMRF-oBb1zT5yC97SyzOQg>