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: corner case for x87 context restore on execve
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
ahci
/
ahci.h
diff --git
a/lunaix-os/includes/hal/ahci/ahci.h
b/lunaix-os/includes/hal/ahci/ahci.h
index ea63a9c19412d3613b376fa90ddd00d568483039..fd22ffabe0eec9d2d6c3e6ff23e40cc31734a3a7 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/ahci.h
+++ b/
lunaix-os/includes/hal/ahci/ahci.h
@@
-14,6
+14,13
@@
#define AHCI_HBA_CLASS 0x10601
#define AHCI_HBA_CLASS 0x10601
+struct ahci_driver
+{
+ struct llist_header ahci_drvs;
+ struct ahci_hba hba;
+ int id;
+};
+
/**
* @brief 初始化AHCI与HBA
*
/**
* @brief 初始化AHCI与HBA
*
@@
-22,19
+29,10
@@
void
ahci_init();
void
ahci_init();
void
-ahci_list_device();
-
-unsigned int
-ahci_get_port_usage();
-
-struct hba_port*
-ahci_get_port(unsigned int index);
-
-void
-ahci_parse_dev_info(struct hba_device* dev_info, uint16_t* data);
+ahci_parse_dev_info(struct hba_device* dev_info, u16_t* data);
void
void
-ahci_parsestr(char* str, u
int
16_t* reg_start, int size_word);
+ahci_parsestr(char* str, u16_t* reg_start, int size_word);
/**
* @brief Issue a HBA command (synchronized)
/**
* @brief Issue a HBA command (synchronized)