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.

95 lines
2.9 KiB

  1. //***************************************************************************
  2. // Header file
  3. //
  4. // Add subpic function define in sample proto.h.
  5. //
  6. // Copyright (C) 1997 Toshiba Corporation. All rights reserved.
  7. //***************************************************************************
  8. /*++
  9. Copyright (c) 1996 Microsoft Corporation
  10. Module Name:
  11. proto.h
  12. Abstract:
  13. This is the WDM sample streaming class minidriver. This module contains
  14. function prototypes for public functions
  15. Author:
  16. Environment:
  17. Kernel mode only
  18. Revision History:
  19. --*/
  20. //
  21. // This is the prototype for the Hardware Interrupt Handler. This routine
  22. // will be called whenever the minidriver receives an interrupt
  23. //
  24. extern "C" BOOLEAN STREAMAPI HwInterrupt ( IN PHW_DEVICE_EXTENSION pDeviceExtension );
  25. //
  26. // This is the prototype for the stream enumeration function. This routine
  27. // provides the stream class driver with the information on data stream types
  28. // supported
  29. //
  30. VOID AdapterStreamInfo(PHW_STREAM_REQUEST_BLOCK pSrb);
  31. //
  32. // This is the prototype for the stream open function
  33. //
  34. VOID AdapterOpenStream(PHW_STREAM_REQUEST_BLOCK pSrb);
  35. //
  36. // This is the prototype for the stream close function
  37. //
  38. VOID AdapterCloseStream(PHW_STREAM_REQUEST_BLOCK pSrb);
  39. //
  40. // This is the prototype for the AdapterReceivePacket routine. This is the
  41. // entry point for command packets that are sent to the adapter (not to a
  42. // specific open stream)
  43. //
  44. extern "C" VOID STREAMAPI AdapterReceivePacket(IN PHW_STREAM_REQUEST_BLOCK Srb);
  45. //
  46. // This is the protoype for the cancel packet routine. This routine enables
  47. // the stream class driver to cancel an outstanding packet.
  48. //
  49. extern "C" VOID STREAMAPI AdapterCancelPacket(IN PHW_STREAM_REQUEST_BLOCK Srb);
  50. //
  51. // This is the packet timeout function. The adapter may choose to ignore a
  52. // packet timeout, or rest the adapter and cancel the requests, as required.
  53. //
  54. extern "C" VOID STREAMAPI AdapterTimeoutPacket(IN PHW_STREAM_REQUEST_BLOCK Srb);
  55. //
  56. extern "C" VOID STREAMAPI VideoReceiveDataPacket(IN PHW_STREAM_REQUEST_BLOCK pSrb);
  57. extern "C" VOID STREAMAPI VideoReceiveCtrlPacket(IN PHW_STREAM_REQUEST_BLOCK pSrb);
  58. extern "C" VOID STREAMAPI AudioReceiveDataPacket(IN PHW_STREAM_REQUEST_BLOCK pSrb);
  59. extern "C" VOID STREAMAPI AudioReceiveCtrlPacket(IN PHW_STREAM_REQUEST_BLOCK pSrb);
  60. extern "C" VOID STREAMAPI SubpicReceiveDataPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  61. extern "C" VOID STREAMAPI SubpicReceiveCtrlPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  62. extern "C" VOID STREAMAPI NtscReceiveDataPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  63. extern "C" VOID STREAMAPI NtscReceiveCtrlPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  64. extern "C" VOID STREAMAPI VpeReceiveDataPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  65. extern "C" VOID STREAMAPI VpeReceiveCtrlPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  66. extern "C" VOID STREAMAPI CCReceiveDataPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  67. extern "C" VOID STREAMAPI CCReceiveCtrlPacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );