mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 19:29:21 +08:00
parent
7606ec2977
commit
792d56bd33
@ -631,8 +631,13 @@ nvme_qpair_process_completions(struct nvme_qpair *qpair)
|
|||||||
qpair->phase = !qpair->phase; /* 3 */
|
qpair->phase = !qpair->phase; /* 3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
||||||
qpair->cq_hdbl_off, qpair->cq_head);
|
qpair->cq_hdbl_off, qpair->cq_head);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
||||||
|
qpair->cq_hdbl_off, htole32(qpair->cq_head));
|
||||||
|
#endif /* __rtems__ */
|
||||||
}
|
}
|
||||||
return (done != 0);
|
return (done != 0);
|
||||||
}
|
}
|
||||||
@ -987,8 +992,13 @@ nvme_qpair_submit_tracker(struct nvme_qpair *qpair, struct nvme_tracker *tr)
|
|||||||
wmb();
|
wmb();
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
||||||
qpair->sq_tdbl_off, qpair->sq_tail);
|
qpair->sq_tdbl_off, qpair->sq_tail);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle,
|
||||||
|
qpair->sq_tdbl_off, htole32(qpair->sq_tail));
|
||||||
|
#endif /* __rtems__ */
|
||||||
qpair->num_cmds++;
|
qpair->num_cmds++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user