Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.8 KiB

  1. //**************************************************************************
  2. //
  3. // Title : DVDinit.h
  4. //
  5. // Date : 1997.11.28 1st making
  6. //
  7. // Author : Toshiba [PCS](PSY) Hideki Yagi
  8. //
  9. // Copyright 1997 Toshiba Corporation. All Rights Reserved.
  10. //
  11. // -------------------------------------------------------------------------
  12. //
  13. // Change log :
  14. //
  15. // Date Revision Description
  16. // ------------ ---------- -----------------------------------------------
  17. // 1997.11.28 000.0000 1st making.
  18. //
  19. //**************************************************************************
  20. #define DMASIZE (2 * 1024)
  21. #define VIDEO_MAX_FULL_RATE (1 * 10000)
  22. #define AUDIO_MAX_FULL_RATE (1 * 10000)
  23. #define SUBPIC_MAX_FULL_RATE (1 * 10000)
  24. // 1998.9.24 K.Ishizaki
  25. #ifndef TVALD
  26. #define NUMBER_OF_REGISTRY_PARAMETERS 6
  27. #else
  28. #define NUMBER_OF_REGISTRY_PARAMETERS 5
  29. #endif TVALD
  30. // End
  31. #ifndef REARRANGEMENT
  32. #define WDM_BUFFER_MAX 100 //max packet partition
  33. #endif REARRANGEMENT
  34. //***************** SRB_EXTENSION **********************
  35. typedef struct _SRB_EXTENSION
  36. {
  37. #ifndef REARRANGEMENT
  38. CWDMBuffer m_wdmbuff[WDM_BUFFER_MAX]; //packet partition buffer
  39. #else
  40. CWDMBuffer m_wdmbuff;
  41. #endif REARRANGEMENT
  42. // Next SRB pointer for FF/FR Queueing
  43. PHW_STREAM_REQUEST_BLOCK pNextSRB;
  44. } SRB_EXTENSION, *PSRB_EXTENSION;
  45. //***************** STREAMEX **********************
  46. typedef struct _STREAMEX
  47. {
  48. DWORD EventCount;
  49. KSSTATE state;
  50. } STREAMEX, *PSTREAMEX;
  51. //***************** STREAMTYPES **********************
  52. typedef enum tagStreamType
  53. {
  54. strmVideo = 0,
  55. strmAudio,
  56. strmSubpicture,
  57. //--- 98.06.01 S.Watanabe
  58. // strmNTSCVideo,
  59. //--- End.
  60. strmYUVVideo,
  61. strmCCOut,
  62. //--- 98.05.21 S.Watanabe
  63. strmSS,
  64. //--- End.
  65. STREAMNUM
  66. } STREAMTYPES;
  67. /******* for Display Device(TV) type 98.12.23 H.Yagi *******/
  68. enum
  69. {
  70. //--- 99.01.13 S.Watanabe
  71. // DisplayDevice_Wide = 0,
  72. // DisplayDevice_Normal
  73. DisplayDevice_VGA = 0,
  74. DisplayDevice_NormalTV,
  75. DisplayDevice_WideTV
  76. //--- End.
  77. };
  78. //////////////////////////////////////////////////////////////////////////
  79. //
  80. // for only under construction
  81. //
  82. // MS will provide these difinitions in official release WDM DDK
  83. //
  84. //////////////////////////////////////////////////////////////////////////
  85. typedef struct _MYTIME {
  86. KSEVENT_TIME_INTERVAL tim;
  87. LONGLONG LastTime;
  88. } MYTIME, *PMYTIME;
  89. //
  90. extern "C" NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING registryPath );
  91. BOOL GetPCIConfigSpace( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  92. BOOL SetInitialize( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  93. BOOL HwInitialize( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  94. BOOL InitialSetting( IN PHW_STREAM_REQUEST_BLOCK pSrb );