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 dependency check logic cause config always disabled
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
ahci
/
hba.h
diff --git
a/lunaix-os/includes/hal/ahci/hba.h
b/lunaix-os/includes/hal/ahci/hba.h
index f6c63922f2d8c43c0dbf62e57d7131af55ebc84c..c3966281b6c919aaee943b5df3da8e7dd66e6516 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/hba.h
+++ b/
lunaix-os/includes/hal/ahci/hba.h
@@
-79,8
+79,8
@@
typedef unsigned int hba_reg_t;
struct hba_cmdh
{
struct hba_cmdh
{
- u
int
16_t options;
- u
int
16_t prdt_len;
+ u16_t options;
+ u16_t prdt_len;
u32_t transferred_size;
u32_t cmd_table_base;
u32_t reserved[5];
u32_t transferred_size;
u32_t cmd_table_base;
u32_t reserved[5];
@@
-97,9
+97,9
@@
struct hba_prdte
struct hba_cmdt
{
struct hba_cmdt
{
- u
int
8_t command_fis[64];
- u
int
8_t atapi_cmd[16];
- u
int
8_t reserved[0x30];
+ u8_t command_fis[64];
+ u8_t atapi_cmd[16];
+ u8_t reserved[0x30];
struct hba_prdte entries[HBA_MAX_PRDTE];
} __HBA_PACKED__;
struct hba_prdte entries[HBA_MAX_PRDTE];
} __HBA_PACKED__;
@@
-114,16
+114,16
@@
struct hba_device
char serial_num[20];
char model[40];
u32_t flags;
char serial_num[20];
char model[40];
u32_t flags;
-
uint64
_t max_lba;
+
lba
_t max_lba;
u32_t block_size;
u32_t block_size;
- u
int
64_t wwn;
- u
int
8_t cbd_size;
+ u64_t wwn;
+ u8_t cbd_size;
struct
{
struct
{
- u
int
8_t sense_key;
- u
int
8_t error;
- u
int
8_t status;
- u
int
8_t reserve;
+ u8_t sense_key;
+ u8_t error;
+ u8_t status;
+ u8_t reserve;
} last_result;
u32_t alignment_offset;
u32_t block_per_sec;
} last_result;
u32_t alignment_offset;
u32_t block_per_sec;