summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2011-04-12 09:55:24 +0000
committermav <mav@FreeBSD.org>2011-04-12 09:55:24 +0000
commitf70691f62840be5b269cbacf4304e6d642bce6bb (patch)
tree443fc38d0a45cceab4668809512989179f399324 /sys/dev/ata/ata-all.h
parent545f7c0ca7fd9e634491bb4bb13b87ffc8bda63c (diff)
downloadFreeBSD-src-f70691f62840be5b269cbacf4304e6d642bce6bb.zip
FreeBSD-src-f70691f62840be5b269cbacf4304e6d642bce6bb.tar.gz
Implement automatic SCSI sense fetching for ata(4) in ATA_CAM mode.
While it could be successfully done by CAM error recovery code, I was told by several people that it is also a SIM obligation.
Diffstat (limited to 'sys/dev/ata/ata-all.h')
-rw-r--r--sys/dev/ata/ata-all.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h
index 1b792fc..8df57f1 100644
--- a/sys/dev/ata/ata-all.h
+++ b/sys/dev/ata/ata-all.h
@@ -585,8 +585,9 @@ struct ata_channel {
#ifdef ATA_CAM
struct cam_sim *sim;
struct cam_path *path;
- struct ata_cam_device user[16]; /* User-specified settings */
- struct ata_cam_device curr[16]; /* Current settings */
+ struct ata_cam_device user[16]; /* User-specified settings */
+ struct ata_cam_device curr[16]; /* Current settings */
+ int requestsense; /* CCB waiting for SENSE. */
#endif
struct callout poll_callout; /* Periodic status poll. */
};
OpenPOWER on IntegriCloud