KallistiOS
##version##
|
External G2 Bus-based IDE support. More...
#include <arch/types.h>
Go to the source code of this file.
Functions | |
int | ide_read (uint32 linear, uint32 numsects, void *bufptr) |
Read sectors from the hard disk via PIO. More... | |
int | ide_write (uint32 linear, uint32 numsects, void *bufptr) |
Write sectors from the hard disk via PIO. More... | |
uint32 | ide_num_sectors () |
Retrieve the number of sectors from the hard disk. More... | |
int | ide_init () |
Initialize Navi IDE. More... | |
void | ide_shutdown () |
Shutdown Navi IDE. More... | |
External G2 Bus-based IDE support.
This file is involved with accessing an IDE controller that is attached to the G2 Bus expansion port. Exact details of how to build such a device have been posted in various places around the Internet. This driver refers to the device built by Dan as a part of the Navi project.
int ide_init | ( | ) |
Initialize Navi IDE.
uint32 ide_num_sectors | ( | ) |
Retrieve the number of sectors from the hard disk.
Read sectors from the hard disk via PIO.
linear | The address to begin reading from. |
numsects | The number of sectors to read. |
bufptr | The buffer to read into. |
void ide_shutdown | ( | ) |
Shutdown Navi IDE.