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.

62 lines
1.6 KiB

  1. //==========================================================================;
  2. //
  3. // ATIXBar.H
  4. // WDM Analog/Video CrossBar MiniDriver.
  5. // AllInWonder/AllInWonderPro hardware platform.
  6. // Main Include Module.
  7. // Copyright (c) 1996 - 1997 ATI Technologies Inc. All Rights Reserved.
  8. //
  9. //==========================================================================;
  10. #ifndef _ATIXBAR_H_
  11. #define _ATIXBAR_H_
  12. #include "wdmxbar.h"
  13. #include "pinmedia.h"
  14. typedef struct
  15. {
  16. CI2CScript CScript;
  17. CWDMAVXBar CAVXBar;
  18. PDEVICE_OBJECT PhysicalDeviceObject;
  19. // for managing SRB Queue and internal driver synchronization
  20. BOOL bSrbInProcess;
  21. LIST_ENTRY adapterSrbQueueHead;
  22. KSPIN_LOCK adapterSpinLock;
  23. } ADAPTER_DATA_EXTENSION, * PADAPTER_DATA_EXTENSION;
  24. typedef struct
  25. {
  26. // please, don't move this member from its first place in the structure
  27. // if you do, change the code to use FIELDOFFSET macro to retrieve pSrb
  28. // member offset within this structure. The code as it's written assumes
  29. // LIST_ENTRY * == SRB_DATA_EXTENSION *
  30. LIST_ENTRY srbListEntry;
  31. PHW_STREAM_REQUEST_BLOCK pSrb;
  32. } SRB_DATA_EXTENSION, * PSRB_DATA_EXTENSION;
  33. /*
  34. Call-backs from the StreamClass
  35. */
  36. extern "C"
  37. void STREAMAPI XBarReceivePacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  38. extern "C"
  39. void STREAMAPI XBarCancelPacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  40. extern "C"
  41. void STREAMAPI XBarTimeoutPacket ( PHW_STREAM_REQUEST_BLOCK pSrb);
  42. /*
  43. Local prototypes
  44. */
  45. void XBarAdapterInitialize ( PHW_STREAM_REQUEST_BLOCK pSrb);
  46. #endif // _ATIXBAR_H_