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: one more step towards arch-agnostic design
[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..13312a525135ca63fc12406519ba06d0efaf5cea 100644
(file)
--- a/
lunaix-os/includes/hal/ahci/ahci.h
+++ b/
lunaix-os/includes/hal/ahci/ahci.h
@@
-14,27
+14,18
@@
#define AHCI_HBA_CLASS 0x10601
#define AHCI_HBA_CLASS 0x10601
-/**
- * @brief 初始化AHCI与HBA
- *
- */
-void
-ahci_init();
-
-void
-ahci_list_device();
-
-unsigned int
-ahci_get_port_usage();
-
-struct hba_port*
-ahci_get_port(unsigned int index);
+struct ahci_driver
+{
+ struct llist_header ahci_drvs;
+ struct ahci_hba hba;
+ int id;
+};
void
void
-ahci_parse_dev_info(struct hba_device* dev_info, u
int
16_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)