ApertureOS
ahci.h
Go to the documentation of this file.
1 #ifndef _ACHI_DRIVER_H_
2 #define _ACHI_DRIVER_H_
3 
4 #include "types.h"
5 #include "drivers.h"
6 #include "priv_ahci.h"
7 
13 
16 uint8_t
17 AHCI_Initialize(void);
18 
20 
21 void
22 AHCI_Reset(void);
23 
25 
27 uint8_t
29 
31 
36 bool
37 AHCI_Read(HBA_PORT *port,
38  uint64_t start,
39  uint32_t count,
40  uint16_t *buf);
41 
43 
48 bool
49 AHCI_0_Read(uint64_t start,
50  uint32_t count,
51  uint16_t *buf);
52 
53 
54 
56 
61 bool
62 AHCI_Write(HBA_PORT *port,
63  uint64_t start,
64  uint32_t count,
65  uint16_t *buf);
66 
67 
69 
74 bool
75 AHCI_0_Write(uint64_t start,
76  uint32_t count,
77  uint16_t *buf);
78 
79 
82 #endif
void AHCI_Reset(void)
Reset the AHCI controller.
Definition: ahci.c:104
bool AHCI_0_Read(uint64_t start, uint32_t count, uint16_t *buf)
Read from the first disk.
Definition: ahci.c:151
Definition: priv_ahci.h:169
uint8_t AHCI_Initialize(void)
Initialize the AHCI controller.
Definition: ahci.c:17
bool AHCI_Write(HBA_PORT *port, uint64_t start, uint32_t count, uint16_t *buf)
Write to the disk.
Definition: ahci.c:181
bool AHCI_Read(HBA_PORT *port, uint64_t start, uint32_t count, uint16_t *buf)
Read from the disk.
Definition: ahci.c:161
uint8_t AHCI_CheckDeviceType(HBA_PORT *port)
Check the device type of the current port.
Definition: ahci.c:125
bool AHCI_0_Write(uint64_t start, uint32_t count, uint16_t *buf)
Write to the first disk.
Definition: ahci.c:172