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.

122 lines
2.1 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) 1996 - 1998 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //===========================================================================
  11. /*++
  12. Module Name:
  13. sonydcam.h
  14. Abstract:
  15. Header file for sonydcam.c
  16. Author:
  17. Shaun Pierce 25-May-96
  18. Environment:
  19. Kernel mode only
  20. Revision History:
  21. --*/
  22. //
  23. // Function prototypes
  24. //
  25. NTSTATUS
  26. DriverEntry(
  27. IN PVOID Context1,
  28. IN PVOID Context2
  29. );
  30. VOID
  31. InitializeDeviceExtension(
  32. PPORT_CONFIGURATION_INFORMATION ConfigInfo
  33. );
  34. NTSTATUS
  35. DCamHwUnInitialize(
  36. IN PHW_STREAM_REQUEST_BLOCK pSrb
  37. );
  38. NTSTATUS
  39. DCamHwInitialize(
  40. IN PHW_STREAM_REQUEST_BLOCK pSrb
  41. );
  42. NTSTATUS
  43. DCamSubmitIrpSynch(
  44. PDCAM_EXTENSION pDevExt,
  45. PIRP pIrp,
  46. PIRB pIrb
  47. );
  48. NTSTATUS
  49. DCamSynchCR(
  50. IN PDEVICE_OBJECT DeviceObject,
  51. IN PIRP pIrp,
  52. IN PKEVENT Event
  53. );
  54. ULONG
  55. bitcount(
  56. IN ULONG b
  57. );
  58. #define COMPLETE_SRB(pSrb) if(pSrb->Flags & SRB_HW_FLAGS_STREAM_REQUEST) \
  59. StreamClassStreamNotification(StreamRequestComplete, pSrb->StreamObject, pSrb); \
  60. else \
  61. StreamClassDeviceNotification(DeviceRequestComplete, pSrb->HwDeviceExtension, pSrb);
  62. //
  63. // External functions
  64. //
  65. extern
  66. VOID
  67. DCamReceivePacket(
  68. IN PHW_STREAM_REQUEST_BLOCK Srb
  69. );
  70. extern
  71. VOID
  72. DCamCancelAllPackets(
  73. PHW_STREAM_REQUEST_BLOCK pSrb,
  74. PDCAM_EXTENSION pDevExt,
  75. LONG *plPendingReadCount
  76. );
  77. extern
  78. VOID
  79. DCamCancelOnePacket(
  80. IN PHW_STREAM_REQUEST_BLOCK pSrb
  81. );
  82. extern
  83. VOID
  84. DCamTimeoutHandler(
  85. IN PHW_STREAM_REQUEST_BLOCK Srb
  86. );
  87. extern VOID
  88. DCamBusResetNotification(
  89. IN PVOID Context
  90. );