|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "block_device.h"Go to the source code of this file.
Data Structures | |
| struct | ata_device_t |
| ATA device structure. More... | |
Enumerations | |
| enum | ata_channel_t { ATA_CHANNEL_PRIMARY = 0 , ATA_CHANNEL_SECONDARY = 1 } |
| ATA channel selection. More... | |
| enum | ata_drive_t { ATA_DRIVE_MASTER = 0 , ATA_DRIVE_SLAVE = 1 } |
| ATA drive selection within a channel. More... | |
Functions | |
| bool | ata_initialize (ata_device_t *device, ata_channel_t channel, ata_drive_t drive) |
| initialize an ATA device on the specified channel and drive position. | |
| enum ata_channel_t |
| enum ata_drive_t |
| bool ata_initialize | ( | ata_device_t * | device, |
| ata_channel_t | channel, | ||
| ata_drive_t | drive ) |
initialize an ATA device on the specified channel and drive position.
issues IDENTIFY DEVICE to confirm the drive is present and is not ATAPI. populates all port fields and wires up the block device interface.
| device | ATA device object to initialize. |
| channel | ATA_CHANNEL_PRIMARY or ATA_CHANNEL_SECONDARY. |
| drive | ATA_DRIVE_MASTER or ATA_DRIVE_SLAVE. |