home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / ctenari / Soban / IDE / IDEDIAG.H next >
C/C++ Source or Header  |  1995-10-04  |  2KB  |  62 lines

  1. #ifndef _IDEDIAG.H
  2. #define _IDEDIAG.H
  3.  
  4.  
  5. #define   HDC_DATA    0x1F0
  6. #define   HDC_ERROR   0x1F1
  7. #define   HDC_SECCOU  0x1F2
  8. #define   HDC_SECNUM  0x1F3
  9. #define   HDC_CYLLOW  0x1F4
  10. #define   HDC_CYLHIGH 0x1F5
  11. #define   HDC_SDH     0x1F6
  12.  
  13. // read
  14. #define   HDC_STATUS  0x1F7
  15. #define   HDC_ALTSTA  0x3F6
  16.  
  17. // write
  18. #define   HDC_COMMAND 0x1F7
  19. #define   HDC_FIXED   0x3F6
  20.  
  21. //DRUHY RADIC
  22.  
  23. #define  EHDC_DATA    0x170
  24. #define  EHDC_ERROR   0x171
  25. #define  EHDC_SECCOU  0x172
  26. #define  EHDC_SECNUM  0x173
  27. #define  EHDC_CYLLOW  0x174
  28. #define  EHDC_CYLHIGH 0x175
  29. #define  EHDC_SDH     0x176
  30.  
  31. // read
  32. #define  EHDC_STATUS  0x177
  33.  
  34. // write
  35. #define  EHDC_COMMAND 0x177
  36.  
  37. // commands pro vsechny
  38. #define   HDC_COMMAND_RESTORE 0x10
  39. #define   HDC_COMMAND_SEEK    0x70
  40. #define   HDC_COMMAND_READ    0x20
  41. #define   HDC_COMMAND_WRITE   0x30
  42. #define   HDC_COMMAND_FORMAT  0x50
  43. #define   HDC_COMMAND_READVER 0x90
  44. #define   HDC_COMMAND_DIAG    0x90
  45. #define   HDC_COMMAND_SETPAR  0x91
  46. #define   HDC_COMMAND_WRSTACK 0xE8
  47. #define   HDC_COMMAND_RDSTACK 0xE4
  48. #define   HDC_COMMAND_READPAR 0xEC
  49. #define   HDC_COMMAND_POWER   0xE0
  50.  
  51. #define   HDC_FIXED_IRQ       0x02
  52. #define   HDC_FIXED_RESET     0x04
  53. #define   HDC_STATUS_ERROR    0x01
  54. #define   HDC_STATUS_INDEX    0x02
  55. #define   HDC_STATUS_ECC      0x04
  56. #define   HDC_STATUS_DRQ      0x08
  57. #define   HDC_STATUS_COMPLETE 0x10
  58. #define   HDC_STATUS_WRFAULT  0x20
  59. #define   HDC_STATUS_READY    0x40
  60. #define   HDC_STATUS_BUSY     0x80
  61.  
  62. #endif