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
refactor: change the disk io api to accept device instead of port struct
[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 5015641086c5fb3a9103dc1b1cc817c23c7db183..cce9af467725486a33985d09068071db1b7e68e8 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/scsi.h
+++ b/
lunaix-os/includes/hal/ahci/scsi.h
@@
-44,8
+44,19
@@
scsi_create_packet12(struct scsi_cdb12* cdb,
void
scsi_create_packet16(struct scsi_cdb16* cdb,
uint8_t opcode,
void
scsi_create_packet16(struct scsi_cdb16* cdb,
uint8_t opcode,
- uint32_t lba_hi,
- uint32_t lba_lo,
+ uint64_t lba,
uint32_t alloc_size);
uint32_t alloc_size);
+void
+scsi_read_buffer(struct hba_port* port,
+ uint64_t lba,
+ void* buffer,
+ uint32_t size);
+
+void
+scsi_write_buffer(struct hba_port* port,
+ uint64_t lba,
+ void* buffer,
+ uint32_t size);
+
#endif /* __LUNAIX_ATAPI_H */
#endif /* __LUNAIX_ATAPI_H */