diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-09-25 04:48:52 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-09-25 04:48:52 +0000 |
commit | 0fdcb7ca1756d7d229680c4b9a9b79ab6572a2b6 (patch) | |
tree | efd4e827f208cb1e749bf40fff689ec472f39cde /sys/dev/ic/amivar.h | |
parent | 78695dd7e30683b9c566b2a9ce611a195a0d820d (diff) |
1.82 again; dont use the scsi xfer to decide if we should dma_sync.
instead use generic variables in the ccb so commands not originating from
the scsi layer can be handled by ami_done as well.
this version does not freeze like 1.82. the secret seems to be to go
ami_put_ccb before scsi_done.
Diffstat (limited to 'sys/dev/ic/amivar.h')
-rw-r--r-- | sys/dev/ic/amivar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/amivar.h b/sys/dev/ic/amivar.h index 5f50a3aab76..ce87a0556c7 100644 --- a/sys/dev/ic/amivar.h +++ b/sys/dev/ic/amivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amivar.h,v 1.27 2005/09/22 07:37:32 dlg Exp $ */ +/* $OpenBSD: amivar.h,v 1.28 2005/09/25 04:48:51 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -44,6 +44,9 @@ struct ami_ccb { AMI_CCB_FREE, AMI_CCB_READY, AMI_CCB_QUEUED, AMI_CCB_PREQUEUED } ccb_state; int ccb_len; + enum { + AMI_CCB_IN, AMI_CCB_OUT + } ccb_dir; void *ccb_data; bus_dmamap_t ccb_dmamap; }; |