home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 July
/
Chip_1998-07_cd.bin
/
ctenari
/
Soban
/
IDE
/
IDEDIAG.H
next >
Wrap
C/C++ Source or Header
|
1995-10-04
|
2KB
|
62 lines
#ifndef _IDEDIAG.H
#define _IDEDIAG.H
#define HDC_DATA 0x1F0
#define HDC_ERROR 0x1F1
#define HDC_SECCOU 0x1F2
#define HDC_SECNUM 0x1F3
#define HDC_CYLLOW 0x1F4
#define HDC_CYLHIGH 0x1F5
#define HDC_SDH 0x1F6
// read
#define HDC_STATUS 0x1F7
#define HDC_ALTSTA 0x3F6
// write
#define HDC_COMMAND 0x1F7
#define HDC_FIXED 0x3F6
//DRUHY RADIC
#define EHDC_DATA 0x170
#define EHDC_ERROR 0x171
#define EHDC_SECCOU 0x172
#define EHDC_SECNUM 0x173
#define EHDC_CYLLOW 0x174
#define EHDC_CYLHIGH 0x175
#define EHDC_SDH 0x176
// read
#define EHDC_STATUS 0x177
// write
#define EHDC_COMMAND 0x177
// commands pro vsechny
#define HDC_COMMAND_RESTORE 0x10
#define HDC_COMMAND_SEEK 0x70
#define HDC_COMMAND_READ 0x20
#define HDC_COMMAND_WRITE 0x30
#define HDC_COMMAND_FORMAT 0x50
#define HDC_COMMAND_READVER 0x90
#define HDC_COMMAND_DIAG 0x90
#define HDC_COMMAND_SETPAR 0x91
#define HDC_COMMAND_WRSTACK 0xE8
#define HDC_COMMAND_RDSTACK 0xE4
#define HDC_COMMAND_READPAR 0xEC
#define HDC_COMMAND_POWER 0xE0
#define HDC_FIXED_IRQ 0x02
#define HDC_FIXED_RESET 0x04
#define HDC_STATUS_ERROR 0x01
#define HDC_STATUS_INDEX 0x02
#define HDC_STATUS_ECC 0x04
#define HDC_STATUS_DRQ 0x08
#define HDC_STATUS_COMPLETE 0x10
#define HDC_STATUS_WRFAULT 0x20
#define HDC_STATUS_READY 0x40
#define HDC_STATUS_BUSY 0x80
#endif