git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: READ_CAPACITY command for 12 bytes CDB SCSI device.
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
ahci
/
scsi.h
diff --git
a/lunaix-os/includes/hal/ahci/scsi.h
b/lunaix-os/includes/hal/ahci/scsi.h
index 0635614abec7d7bfd696a929e5ee980a1aaa7076..fee899fa916ebb72b9b2c347537ce9ebf89ef94c 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/scsi.h
+++ b/
lunaix-os/includes/hal/ahci/scsi.h
@@
-14,6
+14,9
@@
#define SCSI_WRITE_BLOCKS_16 0x8a
#define SCSI_WRITE_BLOCKS_12 0xaa
#define SCSI_WRITE_BLOCKS_16 0x8a
#define SCSI_WRITE_BLOCKS_12 0xaa
+#define SCSI_CDB16 16
+#define SCSI_CDB12 12
+
struct scsi_cdb12
{
uint8_t opcode;
struct scsi_cdb12
{
uint8_t opcode;