cdioctl.inc
上传用户:lnzz01
上传日期:2013-05-23
资源大小:130k
文件大小:3k
源码类别:

DNA

开发平台:

C/C++

  1. NO_ERROR equ 0
  2. MSF_ADDR STRUCT
  3.     msf_Frame db ?;
  4.     msf_Second db ?;
  5.     msf_Minute db ?;
  6.     msf_Filler db ?;
  7. MSF_ADDR ENDS
  8. CDROM_ADDR_LBA equ 0
  9. CDROM_ADDR_MSF equ 1
  10. CDROM_ADDR STRUCT
  11.     Mode dd ?
  12.     Address dd ?
  13. CDROM_ADDR ENDS
  14. CDROM_REGION STRUCT
  15.     
  16.     Mode dd ?;
  17.     StartAddr dd ?;
  18.     EndAddr dd ?;
  19.     
  20. CDROM_REGION ENDS
  21. CD_IO_DISC_INFO equ 0CD0BH ; // Get Disk Information
  22. CD_IO_RESET_DRIVE equ 0CD00H
  23. CD_IO_SEEK equ  0CD01H  ; // Seek the Read Head
  24. CD_IO_GET_DEV_STATUS equ 0CD02H ; // Get Device Status Info
  25. CD_IO_GET_SECTOR_SIZE equ 0CD03H ; // Get Current Sector Size
  26. CD_IO_GET_HEAD_LOCATION equ 0CD04H ; // Get Head Location
  27. CD_IO_QCHAN_UPC equ 0CD05H ; // Get Media Catalog Number
  28. CD_IO_QCHAN_ISRC equ 0CD06H ; // Get ISRC for Track
  29. CD_IO_QCHAN_CURRENT_INFO equ 0CD07H ; // Get Current Q Channel Info
  30. CD_IO_GET_AUDIO_STATE equ 0CD08H ; // Get Audio Pause State
  31. CD_IO_GET_AUDIO_CHAN_CTRL  equ 0CD09H ; // Get Audio Volume Controls
  32. CD_IO_SET_AUDIO_CHAN_CTRL  equ 0CD0AH ; // Set Audio Volume Controls
  33. CD_IO_TRACK_INFO equ 0CD0CH ; // Get Track Parameters
  34. CD_IO_AUDIO_SUB_CHAN_INFO  equ 0CD0DH ; // Get P-W Subchannel Vector
  35. CD_IO_AUDIO_PLAY equ 0CD0EH ; // Play Audio Selection
  36. CD_IO_AUDIO_STOP equ 0CD0FH ; // Pause or Stop Audio Play
  37. CD_IO_AUDIO_RESUME equ 0CD10H ; // Resume Audio Play
  38. CD_IO_SECTOR_INFO  equ 0CD11H ; // Get Sector Information
  39. CD_IO_QUERY_SPEED  equ 0CD12H ; // Get Current Device Speed
  40. CD_IO_QUERY_SPEED_CAPS equ 0CD13H ; // Get Speed Capabilities
  41. CD_IO_SET_SPEED equ 0CD14H ; // Set New Device Speed
  42. CD_IO_GENERIC equ 0CD15H ; // Generic Vendor specific IOCTL
  43. CD_IO_READ_DRIVE_INFO equ 0CD16H ; // Reads driver specific info
  44. CD_IO_READ_ERROR_STATS equ 0CD17H ; // Reads error statistic info
  45. ; // specific to each IOCTL
  46. CD_IO_WRITE_DRIVE_INFO equ 0CD18H ; // Writes driver specific info
  47. CD_IO_QUERY_IOCTL_FUNC equ 0CF00H ; // Queries IOCTL support caps
  48. CDROM_SEEK STRUCT
  49.  
  50.     Reserved dd ?; // Reserved - must be zero
  51.     SeekAddr dd size CDROM_ADDR; // Sector number to locate head at.
  52.     
  53. CDROM_SEEK ENDS
  54. CDROM_DEVSTAT STRUC
  55.     Reserved dd ?; // Reserved - must be zero
  56.     DeviceStatus dd ?; // CD-ROM Device Status Indicator
  57. CDROM_DEVSTAT ENDS
  58. CDDEVSTAT_DOOR_OPEN      equ 1
  59. CDDEVSTAT_DOOR_UNLOCKED      equ 2
  60. CDDEVSTAT_READ_RAW_TOO      equ 4
  61. CDDEVSTAT_WRITE_TOO      equ 8
  62. CDDEVSTAT_PLAY_AUDIO_TOO     equ 010H
  63. CDDEVSTAT_INTERLEAVE      equ 020H
  64. CDDEVSTAT_RESERVED_6      equ 040H
  65. CDDEVSTAT_PREFETCHING      equ 080H
  66. CDDEVSTAT_AUDIO_MANIPULATE   equ 0100H
  67. CDDEVSTAT_REDBOOK_TOO      equ 0200H
  68. CDDEVSTAT_CDXA      equ 0400H
  69. CDDEVSTAT_NO_DISK_IN_DRIVE   equ 0800H
  70. CDDEVSTAT_RW_CHANNELS_OK     equ 01000H
  71. CDDEVSTAT_RESERVED_13      equ 02000H
  72. CDDEVSTAT_PLAYING_AUDIO      equ 04000H
  73. CDDEVSTAT_SPEED_ADJUSTABLE   equ 08000H
  74. CDDEVSTAT_SPEED_NONSTANDARD  equ 010000H