1 #ifndef __LUNAIX_AHCI_H
2 #define __LUNAIX_AHCI_H
5 #include <asm-generic/isrm.h>
11 * e.g. HBA_RPxCLB is Register PxCLB
13 * All registers offset are 0 based index of a DWORD array
16 #define AHCI_HBA_CLASS 0x10601
20 struct llist_header ahci_drvs;
25 struct ahci_driver_param
33 ahci_parse_dev_info(struct hba_device* dev_info, u16_t* data);
36 ahci_parsestr(char* str, u16_t* reg_start, int size_word);
39 * @brief Issue a HBA command (synchronized)
46 ahci_try_send(struct hba_port* port, int slot);
49 * @brief Issue a HBA command (asynchronized)
56 ahci_post(struct hba_port* port, struct hba_cmd_state* state, int slot);
59 ahci_driver_init(struct ahci_driver_param* param);
62 ahci_hba_isr(const struct hart_state* hstate);
64 #endif /* __LUNAIX_AHCI_H */