diff options
author | scottl <scottl@FreeBSD.org> | 2004-12-05 23:48:17 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-12-05 23:48:17 +0000 |
commit | 29448bd3e8894f9cdc7c69f422529c405275bd1d (patch) | |
tree | 9eea5a1c633325715743c7bf5c0ce5678ab4b4c6 /sys/dev/amr/amr_cam.c | |
parent | 8f9a2ff959fd4e1cf63e13cfd9bb293314873371 (diff) | |
download | FreeBSD-src-29448bd3e8894f9cdc7c69f422529c405275bd1d.zip FreeBSD-src-29448bd3e8894f9cdc7c69f422529c405275bd1d.tar.gz |
Fix a number of bugs and significantly alter the command execution path to
properly support bounce buffers and resource shortages. This allows the
driver to work properly and reliably with more than 4GB of RAM. Of the
three data paths that exist in the driver, (block, CAM, ioctl), the ioctl
path has not been well tested with these changes due to difficulty with
finding an application that uses it that actually works.
Sponsored by: The FreeBSD Foundation and FreeBSD Systems, Inc.
Diffstat (limited to 'sys/dev/amr/amr_cam.c')
-rw-r--r-- | sys/dev/amr/amr_cam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/amr/amr_cam.c b/sys/dev/amr/amr_cam.c index a8c0252..bd4cdb9 100644 --- a/sys/dev/amr/amr_cam.c +++ b/sys/dev/amr/amr_cam.c @@ -443,7 +443,7 @@ amr_cam_command(struct amr_softc *sc, struct amr_command **acp) goto out; } - ac->ac_flags |= AMR_CMD_DATAOUT; + ac->ac_flags |= AMR_CMD_DATAOUT | AMR_CMD_DATAIN; ac->ac_ccb_data = csio->data_ptr; ac->ac_ccb_length = csio->dxfer_len; @@ -501,7 +501,7 @@ amr_cam_complete(struct amr_command *ac) /* XXX note that we're ignoring ac->ac_status - good idea? */ - debug(1, "status 0x%x scsi_status 0x%x", ac->ac_status, ap->ap_scsi_status); + debug(1, "status 0x%x AP scsi_status 0x%x", ac->ac_status, ap->ap_scsi_status); /* * Hide disks from CAM so that they're not picked up and treated as 'normal' disks. @@ -564,7 +564,7 @@ amr_cam_complete_extcdb(struct amr_command *ac) /* XXX note that we're ignoring ac->ac_status - good idea? */ - debug(1, "status 0x%x scsi_status 0x%x", ac->ac_status, aep->ap_scsi_status); + debug(1, "status 0x%x AEP scsi_status 0x%x", ac->ac_status, aep->ap_scsi_status); /* * Hide disks from CAM so that they're not picked up and treated as 'normal' disks. |