aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ida/ida.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2003-05-27 04:59:59 +0000
committerScott Long <scottl@FreeBSD.org>2003-05-27 04:59:59 +0000
commit7e71df93390826733b07b547c105326fc6ba2a74 (patch)
treeaaea1de6e07eae55f5e31e6ae4f5d42cc5ae59a1 /sys/dev/ida/ida.c
parent1093ceb08876448ac83e84392dfc22eafa2df63a (diff)
downloadsrc-7e71df93390826733b07b547c105326fc6ba2a74.tar.gz
src-7e71df93390826733b07b547c105326fc6ba2a74.zip
Bring back bus_dmasync_op_t. It is now a typedef to an int, though the
BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah)
Notes
Notes: svn path=/head/; revision=115343
Diffstat (limited to 'sys/dev/ida/ida.c')
-rw-r--r--sys/dev/ida/ida.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c
index d45e74a1f20a..c1417495d206 100644
--- a/sys/dev/ida/ida.c
+++ b/sys/dev/ida/ida.c
@@ -324,7 +324,7 @@ ida_command(struct ida_softc *ida, int command, void *data, int datasize,
{
struct ida_hardware_qcb *hwqcb;
struct ida_qcb *qcb;
- int op;
+ bus_dmasync_op_t op;
int s, error;
s = splbio();
@@ -377,7 +377,7 @@ ida_construct_qcb(struct ida_softc *ida)
{
struct ida_hardware_qcb *hwqcb;
struct ida_qcb *qcb;
- int op;
+ bus_dmasync_op_t op;
struct bio *bp;
bp = bioq_first(&ida->bio_queue);
@@ -501,7 +501,7 @@ ida_done(struct ida_softc *ida, struct ida_qcb *qcb)
* finish up command
*/
if (qcb->flags & DMA_DATA_TRANSFER) {
- int op;
+ bus_dmasync_op_t op;
op = qcb->flags & DMA_DATA_IN ?
BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE;