2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-22 22:08:47 +01:00

add IOCTL error codes

This commit is contained in:
Abdur-Rahman Mansoor 2024-07-18 17:58:15 -04:00
parent 9632b2841d
commit c21376dde4

View File

@ -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"