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
Merge branch 'master' into prog-loader
[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 9bebe8e3cd81dfab94900ec7e08c02adc0f3a5e9..f6c63922f2d8c43c0dbf62e57d7131af55ebc84c 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/hba.h
+++ b/
lunaix-os/includes/hal/ahci/hba.h
@@
-81,18
+81,18
@@
struct hba_cmdh
{
uint16_t options;
uint16_t prdt_len;
{
uint16_t options;
uint16_t prdt_len;
- u
int
32_t transferred_size;
- u
int
32_t cmd_table_base;
- u
int
32_t reserved[5];
+ u32_t transferred_size;
+ u32_t cmd_table_base;
+ u32_t reserved[5];
} __HBA_PACKED__;
#define HBA_PRDTE_BYTE_CNT(cnt) ((cnt & 0x3FFFFF) | 0x1)
struct hba_prdte
{
} __HBA_PACKED__;
#define HBA_PRDTE_BYTE_CNT(cnt) ((cnt & 0x3FFFFF) | 0x1)
struct hba_prdte
{
- u
int
32_t data_base;
- u
int
32_t reserved[2];
- u
int
32_t byte_count;
+ u32_t data_base;
+ u32_t reserved[2];
+ u32_t byte_count;
} __HBA_PACKED__;
struct hba_cmdt
} __HBA_PACKED__;
struct hba_cmdt
@@
-113,9
+113,9
@@
struct hba_device
{
char serial_num[20];
char model[40];
{
char serial_num[20];
char model[40];
- u
int
32_t flags;
+ u32_t flags;
uint64_t max_lba;
uint64_t max_lba;
- u
int
32_t block_size;
+ u32_t block_size;
uint64_t wwn;
uint8_t cbd_size;
struct
uint64_t wwn;
uint8_t cbd_size;
struct
@@
-125,9
+125,9
@@
struct hba_device
uint8_t status;
uint8_t reserve;
} last_result;
uint8_t status;
uint8_t reserve;
} last_result;
- u
int
32_t alignment_offset;
- u
int
32_t block_per_sec;
- u
int
32_t capabilities;
+ u32_t alignment_offset;
+ u32_t block_per_sec;
+ u32_t capabilities;
struct hba_port* port;
struct ahci_hba* hba;
struct hba_port* port;
struct ahci_hba* hba;