X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/df61e9d0fec3d5e75820e27e7a2459d132364585..3b6a05fc894d0c1a3d431045ee5a53955ba093a0:/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 ec9a64f..ea63a9c 100644 --- a/lunaix-os/includes/hal/ahci/ahci.h +++ b/lunaix-os/includes/hal/ahci/ahci.h @@ -30,4 +30,30 @@ 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); + +void +ahci_parsestr(char* str, uint16_t* reg_start, int size_word); + +/** + * @brief Issue a HBA command (synchronized) + * + * @param port + * @param slot + * @return int + */ +int +ahci_try_send(struct hba_port* port, int slot); + +/** + * @brief Issue a HBA command (asynchronized) + * + * @param port + * @param state + * @param slot + */ +void +ahci_post(struct hba_port* port, struct hba_cmd_state* state, int slot); + #endif /* __LUNAIX_AHCI_H */