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
renamed and cleaned up export header files to match linux convention
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
ahci
/
sata.h
diff --git
a/lunaix-os/includes/hal/ahci/sata.h
b/lunaix-os/includes/hal/ahci/sata.h
index d573a93030b9b88857fc32c0eb7fc2a88716eaa2..0edb5a3d6a7d4cf946e2fcc685222b5b1e060add 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/sata.h
+++ b/
lunaix-os/includes/hal/ahci/sata.h
@@
-20,38
+20,38
@@
struct sata_fis_head
{
struct sata_fis_head
{
- u
int
8_t type;
- u
int
8_t options;
- u
int
8_t status_cmd;
- u
int
8_t feat_err;
+ u8_t type;
+ u8_t options;
+ u8_t status_cmd;
+ u8_t feat_err;
} __HBA_PACKED__;
struct sata_reg_fis
{
struct sata_fis_head head;
} __HBA_PACKED__;
struct sata_reg_fis
{
struct sata_fis_head head;
- u
int
8_t lba0, lba8, lba16;
- u
int
8_t dev;
- u
int
8_t lba24, lba32, lba40;
- u
int
8_t feature;
+ u8_t lba0, lba8, lba16;
+ u8_t dev;
+ u8_t lba24, lba32, lba40;
+ u8_t feature;
- u
int
16_t count;
+ u16_t count;
- u
int
8_t reserved[6];
+ u8_t reserved[6];
} __HBA_PACKED__;
struct sata_data_fis
{
struct sata_fis_head head;
} __HBA_PACKED__;
struct sata_data_fis
{
struct sata_fis_head head;
- u
int
8_t data[0];
+ u8_t data[0];
} __HBA_PACKED__;
void
sata_create_fis(struct sata_reg_fis* cmd_fis,
} __HBA_PACKED__;
void
sata_create_fis(struct sata_reg_fis* cmd_fis,
- u
int
8_t command,
-
uint64
_t lba,
- u
int
16_t sector_count);
+ u8_t command,
+
lba
_t lba,
+ u16_t sector_count);
void
sata_submit(struct hba_device* dev, struct blkio_req* io_req);
void
sata_submit(struct hba_device* dev, struct blkio_req* io_req);