X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/3b6a05fc894d0c1a3d431045ee5a53955ba093a0..97901724584e74554916b89dfb8e95dc6497e687:/lunaix-os/includes/lunaix/blkio.h diff --git a/lunaix-os/includes/lunaix/blkio.h b/lunaix-os/includes/lunaix/blkio.h index 3814917..07b53ac 100644 --- a/lunaix-os/includes/lunaix/blkio.h +++ b/lunaix-os/includes/lunaix/blkio.h @@ -3,14 +3,16 @@ #include #include +#include #include #define BLKIO_WRITE 0x1 #define BLKIO_ERROR 0x2 -// Free on complete #define BLKIO_BUSY 0x4 #define BLKIO_PENDING 0x8 + +// Free on complete #define BLKIO_FOC 0x10 #define BLKIO_SCHED_IDEL 0x1 @@ -24,8 +26,9 @@ struct blkio_req { struct llist_header reqs; struct blkio_context* io_ctx; - u32_t flags; struct vecbuf* vbuf; + u32_t flags; + waitq_t wait; u64_t blk_addr; void* evt_args; blkio_cb completed;