From c21376dde478ae13d7f150c44f1108544143e3ab Mon Sep 17 00:00:00 2001 From: Abdur-Rahman Mansoor Date: Thu, 18 Jul 2024 17:58:15 -0400 Subject: [PATCH] add IOCTL error codes --- drivers/nvme/nvme.asm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/nvme/nvme.asm b/drivers/nvme/nvme.asm index cdbc2ba..e28729f 100644 --- a/drivers/nvme/nvme.asm +++ b/drivers/nvme/nvme.asm @@ -27,6 +27,14 @@ PRP1_LIST_ALLOCATED = 2 PRP2_ENTRY_ALLOCATED = 4 PRP2_LIST_ALLOCATED = 8 +; IOCTL error codes +ENOERR = 0 ; No error +EINVAL_IOCTL = 1 ; unknown IOCTL code, wrong input/output size +EINVAL_ID = 2 ; .DiskId must be from 0-9 +ESZTOL = 3 ; .DiskSize too large +ESZTOS = 4 ; .DiskSize too small +ENOMEM = 5 ; failed to allocate memory + section ".flat" code readable writable executable include "../proc32.inc" include "../struct.inc"