X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/3b6a05fc894d0c1a3d431045ee5a53955ba093a0..f6ab9c9ababa2cf6e5c723b83ffb9362094054e8:/lunaix-os/includes/hal/ahci/ahci.h?ds=inline diff --git a/lunaix-os/includes/hal/ahci/ahci.h b/lunaix-os/includes/hal/ahci/ahci.h index ea63a9c..13312a5 100644 --- 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 -/** - * @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 -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 -ahci_parsestr(char* str, uint16_t* reg_start, int size_word); +ahci_parsestr(char* str, u16_t* reg_start, int size_word); /** * @brief Issue a HBA command (synchronized)