Leaked source code of windows server 2003
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.

67 lines
1.8 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  9. //
  10. // ATIVSnd.H
  11. // WDM TV Audio MiniDriver.
  12. // AllInWonder/AllInWonderPro hardware development platform.
  13. // Main Include Module.
  14. //
  15. //==========================================================================;
  16. #ifndef _ATITVSND_H_
  17. #define _ATITVSND_H_
  18. #include "wdmtvsnd.h"
  19. typedef struct
  20. {
  21. CI2CScript CScript;
  22. CWDMTVAudio CTVAudio;
  23. PDEVICE_OBJECT PhysicalDeviceObject;
  24. // for managing SRB Queue and internal driver synchronization
  25. BOOL bSrbInProcess;
  26. LIST_ENTRY adapterSrbQueueHead;
  27. KSPIN_LOCK adapterSpinLock;
  28. } ADAPTER_DATA_EXTENSION, * PADAPTER_DATA_EXTENSION;
  29. typedef struct
  30. {
  31. // please, don't move this member from its first place in the structure
  32. // if you do, change the code to use FIELDOFFSET macro to retrieve pSrb
  33. // member offset within this structure. The code as it's written assumes
  34. // LIST_ENTRY * == SRB_DATA_EXTENSION *
  35. LIST_ENTRY srbListEntry;
  36. PHW_STREAM_REQUEST_BLOCK pSrb;
  37. } SRB_DATA_EXTENSION, * PSRB_DATA_EXTENSION;
  38. /*
  39. Call-backs from the StreamClass
  40. */
  41. extern "C"
  42. void STREAMAPI TVAudioReceivePacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  43. extern "C"
  44. void STREAMAPI TVAudioCancelPacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  45. extern "C"
  46. void STREAMAPI TVAudioTimeoutPacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  47. /*
  48. Local prototypes
  49. */
  50. void TVAudioAdapterInitialize ( PHW_STREAM_REQUEST_BLOCK pSrb);
  51. #endif // _ATITVSND_H_