|
ApertureOS
|
Functions | |
| uint8_t | AHCI_Initialize (void) |
| Initialize the AHCI controller. More... | |
| void | AHCI_Reset (void) |
| Reset the AHCI controller. More... | |
| uint8_t | AHCI_CheckDeviceType (HBA_PORT *port) |
| Check the device type of the current port. More... | |
| bool | AHCI_Read (HBA_PORT *port, uint64_t start, uint32_t count, uint16_t *buf) |
| Read from the disk. More... | |
| bool | AHCI_0_Read (uint64_t start, uint32_t count, uint16_t *buf) |
| Read from the first disk. More... | |
| bool | AHCI_Write (HBA_PORT *port, uint64_t start, uint32_t count, uint16_t *buf) |
| Write to the disk. More... | |
| bool | AHCI_0_Write (uint64_t start, uint32_t count, uint16_t *buf) |
| Write to the first disk. More... | |
| bool AHCI_0_Read | ( | uint64_t | start, |
| uint32_t | count, | ||
| uint16_t * | buf | ||
| ) |
Read from the first disk.
| start | The LBA48 sector start address |
| count | The number of bytes to copy over, this is rounded up to a multiple of 32 |
| buf | The buffer to put the read data into |
| bool AHCI_0_Write | ( | uint64_t | start, |
| uint32_t | count, | ||
| uint16_t * | buf | ||
| ) |
Write to the first disk.
| start | The LBA48 sector start address |
| count | The number of bytes to write, this is rounded down to a multiple of 512 |
| buf | The buffer to read data from |
| uint8_t AHCI_CheckDeviceType | ( | HBA_PORT * | port | ) |
Check the device type of the current port.
| uint8_t AHCI_Initialize | ( | void | ) |
Initialize the AHCI controller.
Read from the disk.
| start | The LBA48 sector start address |
| count | The number of bytes to copy over, this is rounded up to a multiple of 512 |
| buf | The buffer to put the read data into |
| void AHCI_Reset | ( | void | ) |
Reset the AHCI controller.
Write to the disk.
| start | The LBA48 sector start address |
| count | The number of bytes to write, this is rounded down to a multiple of 512 |
| buf | The buffer to read data from |
1.8.9.1