#define __LUNAIX_AHCI_H
#include "hba.h"
+#include <asm-generic/isrm.h>
/*
* Macro naming rule:
int id;
};
-/**
- * @brief 初始化AHCI与HBA
- *
- */
-void
-ahci_init();
+struct ahci_driver_param
+{
+ ptr_t mmio_base;
+ size_t mmio_size;
+ int ahci_iv;
+};
void
ahci_parse_dev_info(struct hba_device* dev_info, u16_t* data);
void
ahci_post(struct hba_port* port, struct hba_cmd_state* state, int slot);
+struct ahci_driver*
+ahci_driver_init(struct ahci_driver_param* param);
+
+void
+ahci_hba_isr(const struct hart_state* hstate);
+
#endif /* __LUNAIX_AHCI_H */