Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# ata.c File Reference

## Detailed Description

Definition in file ata.c.

`#include "global.h"`
`#include "timer.h"`
`#include "rprintf.h"`
`#include "debug.h"`
`#include "atadev.h"`
`#include "ata.h"`

Go to the source code of this file.

## Functions
void | ataInit (DiskInfo_t *disk, DevBlock_t ataif, unsigned char driveno)
void | ataDriveInit (DiskInfo_t *disk)
void | ataDiskErr (DiskInfo_t *disk)
void | ataSetDrivePowerMode (DiskInfo_t *disk, u08 mode, u08 timeout)
u08 | ataStatusWait (DiskInfo_t *disk, u08 mask, u08 waitStatus)
unsigned char | ataReadSectorsCHS (DiskInfo_t *disk, unsigned char Head, unsigned int Track, unsigned char Sector, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectorsCHS (DiskInfo_t *disk, unsigned char Head, unsigned int Track, unsigned char Sector, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataReadSectorsLBA (DiskInfo_t *disk, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectorsLBA (DiskInfo_t *disk, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataReadSectors (DiskInfo_t *disk, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectors (DiskInfo_t *disk, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
void | ataDriveSelect (DiskInfo_t *disk)
void | ataShowRegisters (DiskInfo_t *disk)
unsigned char | ataSWReset (DiskInfo_t *disk)
## Variables
unsigned char | AtaBuffer [0x200]