#include <libc.h>
Go to the source code of this file.
Defines | |
#define | __IDEREG_H__ 1 |
#define | ATA_DATA 0x00 |
#define | ATA_ERR 0x01 |
#define | ATA_ERR_BBLK 0x80 |
#define | ATA_ERR_UNC 0x20 |
#define | ATA_ERR_IDNF 0x10 |
#define | ATA_ERR_ABRT 0x04 |
#define | ATA_ERR_TK0NF 0x02 |
#define | ATA_ERR_AMNF 0x01 |
#define | ATA_FG 0x01 |
#define | ATA_SC 0x02 |
#define | ATA_SN 0x03 |
#define | ATA_CL 0x04 |
#define | ATA_CH 0x05 |
#define | ATA_DH 0x06 |
#define | ATA_DH_IBM 0xa0 |
#define | ATA_DH_LBA 0x40 |
#define | ATA_DH_MASTER 0x00 |
#define | ATA_DH_SLAVE 0x10 |
#define | ATA_STAT 0x07 |
#define | ATA_STAT_BSY 0x80 |
#define | ATA_STAT_DRDY 0x40 |
#define | ATA_STAT_DWF 0x20 |
#define | ATA_STAT_DSC 0x10 |
#define | ATA_STAT_DRQ 0x08 |
#define | ATA_STAT_CORR 0x04 |
#define | ATA_STAT_INDEX 0x02 |
#define | ATA_STAT_ERR 0x01 |
#define | ATA_CMD 0x07 |
#define | ATA_CMD_READ_SECTORS 0x20 |
#define | ATA_CMD_WRITE_SECTORS 0x30 |
#define | ATA_CMD_IDENTIFY 0xec |
#define | ATA_CMD_IDENTIFY_PACKET_DEVICE 0xa1 |
#define | ATA_ASTAT 0x06 |
#define | ATA_DCR 0x06 |
#define | ATA_DCR_DEFAULT 0x08 |
#define | ATA_DCR_SRST 0x04 |
#define | ATA_DCR_NIEN 0x02 |
#define | ATA_DAR 0x07 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|