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: replace all stdint::uint32_t into short and more manageable u32_t
[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 e1bbb713e2b99c3ae73050f29679275e73d30187..d6582293470a59015c050912d7c36fdcc605339a 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/scsi.h
+++ b/
lunaix-os/includes/hal/ahci/scsi.h
@@
-21,8
+21,8
@@
struct scsi_cdb12
{
uint8_t opcode;
uint8_t misc1;
{
uint8_t opcode;
uint8_t misc1;
- u
int
32_t lba_be;
- u
int
32_t length;
+ u32_t lba_be;
+ u32_t length;
uint8_t misc2;
uint8_t ctrl;
} __attribute__((packed));
uint8_t misc2;
uint8_t ctrl;
} __attribute__((packed));
@@
-31,9
+31,9
@@
struct scsi_cdb16
{
uint8_t opcode;
uint8_t misc1;
{
uint8_t opcode;
uint8_t misc1;
- u
int
32_t lba_be_hi;
- u
int
32_t lba_be_lo;
- u
int
32_t length;
+ u32_t lba_be_hi;
+ u32_t lba_be_lo;
+ u32_t length;
uint8_t misc2;
uint8_t ctrl;
} __attribute__((packed));
uint8_t misc2;
uint8_t ctrl;
} __attribute__((packed));
@@
-41,19
+41,19
@@
struct scsi_cdb16
void
scsi_create_packet12(struct scsi_cdb12* cdb,
uint8_t opcode,
void
scsi_create_packet12(struct scsi_cdb12* cdb,
uint8_t opcode,
- u
int
32_t lba,
- u
int
32_t alloc_size);
+ u32_t lba,
+ u32_t alloc_size);
void
scsi_create_packet16(struct scsi_cdb16* cdb,
uint8_t opcode,
uint64_t lba,
void
scsi_create_packet16(struct scsi_cdb16* cdb,
uint8_t opcode,
uint64_t lba,
- u
int
32_t alloc_size);
+ u32_t alloc_size);
void
scsi_submit(struct hba_device* dev, struct blkio_req* io_req);
void
void
scsi_submit(struct hba_device* dev, struct blkio_req* io_req);
void
-scsi_parse_capacity(struct hba_device* device, u
int
32_t* parameter);
+scsi_parse_capacity(struct hba_device* device, u32_t* parameter);
#endif /* __LUNAIX_ATAPI_H */
#endif /* __LUNAIX_ATAPI_H */