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.

61 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. workproc.h
  5. Abstract:
  6. External definitions for intermodule functions.
  7. Revision History:
  8. --*/
  9. #ifndef _SDBUS_WORKPROC_H_
  10. #define _SDBUS_WORKPROC_H_
  11. typedef enum {
  12. SDWP_READBLOCK,
  13. SDWP_WRITEBLOCK,
  14. SDWP_READIO,
  15. SDWP_WRITEIO,
  16. SDWP_READIO_EXTENDED,
  17. SDWP_WRITEIO_EXTENDED,
  18. SDWP_CARD_RESET,
  19. SDWP_PASSTHRU,
  20. SDWP_POWER_ON,
  21. SDWP_POWER_OFF,
  22. SDWP_IDENTIFY_IO_DEVICE,
  23. SDWP_IDENTIFY_MEMORY_DEVICE,
  24. SDWP_INITIALIZE_CARD,
  25. SDWP_INITIALIZE_FUNCTION
  26. } WORKPROC_FUNCTION;
  27. //
  28. // Work proc routines
  29. //
  30. NTSTATUS
  31. SdbusBuildWorkPacket(
  32. PFDO_EXTENSION FdoExtension,
  33. WORKPROC_FUNCTION Function,
  34. PSDBUS_WORKPACKET_COMPLETION_ROUTINE CompletionRoutine,
  35. PVOID CompletionContext,
  36. PSD_WORK_PACKET *ReturnedWorkPacket
  37. );
  38. NTSTATUS
  39. SdbusExecuteWorkSynchronous(
  40. WORKPROC_FUNCTION Function,
  41. IN PFDO_EXTENSION FdoExtension,
  42. IN PPDO_EXTENSION PdoExtension
  43. );
  44. #endif // _SDBUS_WORKPROC_H_