Merge branch 'master' into sata-ahci-dev
[lunaix-os.git] / lunaix-os / includes / hal / ahci / ahci.h
1 #ifndef __LUNAIX_AHCI_H
2 #define __LUNAIX_AHCI_H
3
4 /*
5  * Macro naming rule:
6  *      HBA_R[xxx]
7  *          HBA Register [xxx]
8  *          e.g. HBA_RPxCLB is Register PxCLB
9  *
10  * All registers offset are 0 based index of a DWORD array
11  */
12
13 #define AHCI_HBA_CLASS 0x10601
14
15 #define ATA_IDENTIFY_DEVICE 0xec
16 #define ATA_IDENTIFY_PAKCET_DEVICE 0xa1
17 #define ATA_PACKET 0xa0
18
19 /**
20  * @brief 初始化AHCI与HBA
21  *
22  */
23 void
24 ahci_init();
25
26 void
27 ahci_list_device();
28
29 #endif /* __LUNAIX_AHCI_H */