1 #ifndef __LUNAIX_AHCI_H
2 #define __LUNAIX_AHCI_H
10 * e.g. HBA_RPxCLB is Register PxCLB
12 * All registers offset are 0 based index of a DWORD array
15 #define AHCI_HBA_CLASS 0x10601
28 ahci_get_port_usage();
31 ahci_get_port(unsigned int index);
34 ahci_parse_dev_info(struct hba_device* dev_info, uint16_t* data);
37 ahci_parsestr(char* str, uint16_t* reg_start, int size_word);
40 * @brief Issue a HBA command (synchronized)
47 ahci_try_send(struct hba_port* port, int slot);
50 * @brief Issue a HBA command (asynchronized)
57 ahci_post(struct hba_port* port, struct hba_cmd_state* state, int slot);
59 #endif /* __LUNAIX_AHCI_H */