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.

45 lines
916 B

  1. /*
  2. private api for ntmap to path an SG list
  3. to sbp2port or usbstor
  4. irpStack->Parameters.Others.Argument1
  5. set to NTMAP_SCATTER_GATHER_SIG
  6. irpStack->Parameters.Others.Argument2
  7. set to PNTMAP_SG_REQUEST
  8. */
  9. typedef struct _NTMAP_SG_REQUEST
  10. {
  11. PSCSI_REQUEST_BLOCK Srb;
  12. SCATTER_GATHER_LIST SgList;
  13. } NTMAP_SG_REQUEST, *PNTMAP_SG_REQUEST;
  14. #define NTMAP_SCATTER_GATHER_SIG 'pmTN'
  15. /*
  16. from ntddk.h
  17. typedef struct _SCATTER_GATHER_ELEMENT
  18. {
  19. PHYSICAL_ADDRESS Address;
  20. ULONG Length;
  21. ULONG_PTR Reserved;
  22. } SCATTER_GATHER_ELEMENT, *PSCATTER_GATHER_ELEMENT;
  23. typedef struct _SCATTER_GATHER_LIST
  24. {
  25. ULONG NumberOfElements;
  26. ULONG_PTR Reserved;
  27. SCATTER_GATHER_ELEMENT Elements[];
  28. } SCATTER_GATHER_LIST, *PSCATTER_GATHER_LIST;
  29. */