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.

143 lines
4.5 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. linext.h
  5. Abstract:
  6. This file contains all declarations
  7. used in handling NBF's DLC Links.
  8. Author:
  9. Chaitanya Kodeboyina
  10. Environment:
  11. User Mode
  12. --*/
  13. #ifndef __LNKEXT_H
  14. #define __LNKEXT_H
  15. //
  16. // Macros
  17. //
  18. #ifndef FIELD_OFFSET
  19. #define FIELD_OFFSET(type, field) ((LONG)&(((type *)0)->field))
  20. #endif//FIELD_OFFSET
  21. #define OFFSET(field) FIELD_OFFSET(TP_LINK, field)
  22. //
  23. // Helper Prototypes
  24. //
  25. UINT ReadDlcLink(PTP_LINK pDlcLink, ULONG proxyPtr);
  26. UINT PrintDlcLink(PTP_LINK pDlcLink, ULONG proxyPtr, ULONG printDetail);
  27. UINT FreeDlcLink(PTP_LINK pDlcLink);
  28. //
  29. // Constants
  30. //
  31. StructAccessInfo DlcLinkInfo =
  32. {
  33. "DLC Link",
  34. {
  35. { "Type", OFFSET(Type), sizeof(CSHORT), NULL, LOW },
  36. { "Size", OFFSET(Size), sizeof(USHORT), NULL, LOW },
  37. { "Linkage", OFFSET(Linkage), sizeof(LIST_ENTRY), NULL, LOW },
  38. { "ReferenceCount",
  39. OFFSET(ReferenceCount), sizeof(ULONG), NULL, LOW },
  40. { "SpecialRefCount",
  41. OFFSET(SpecialRefCount), sizeof(ULONG), NULL, LOW },
  42. #if DBG
  43. { "RefTypes", OFFSET(RefTypes),
  44. NUMBER_OF_LREFS*sizeof(ULONG), NULL, LOW },
  45. #endif
  46. { "Loopback", OFFSET(Loopback), sizeof(BOOLEAN), NULL, LOW },
  47. { "HardwareAddress",
  48. OFFSET(HardwareAddress),sizeof(HARDWARE_ADDRESS),
  49. NULL, LOW },
  50. { "MaxFrameSize", OFFSET(MaxFrameSize), sizeof(ULONG), NULL, LOW },
  51. { "ActiveConnectionCount",
  52. OFFSET(ActiveConnectionCount),
  53. sizeof(ULONG), NULL, NOR },
  54. { "ConnectionDatabase",
  55. OFFSET(ConnectionDatabase),
  56. sizeof(LIST_ENTRY), NULL, NOR },
  57. { "Device Context",
  58. OFFSET(Provider), sizeof(PDEVICE_CONTEXT),NULL, LOW },
  59. { "@", 0, 0, NULL, LOW },
  60. { "Flags", OFFSET(Flags), sizeof(ULONG), NULL, NOR },
  61. { "DeferredFlags",OFFSET(DeferredFlags), sizeof(ULONG), NULL, NOR },
  62. { "State", OFFSET(State), sizeof(ULONG), NULL, NOR },
  63. { "@", 0, 0, NULL, LOW },
  64. { "ReceiveState", OFFSET(ReceiveState), sizeof(UCHAR), NULL, LOW },
  65. { "NextReceive", OFFSET(NextReceive), sizeof(UCHAR), NULL, LOW },
  66. { "LastAckSent", OFFSET(LastAckSent), sizeof(UCHAR), NULL, LOW },
  67. { "ReceiveWindowSize",
  68. OFFSET(ReceiveWindowSize),
  69. sizeof(UCHAR), NULL, LOW },
  70. { "ConsecutiveIFrames",
  71. OFFSET(ConsecutiveIFrames),
  72. sizeof(UCHAR), NULL, LOW },
  73. { "@", 0, 0, NULL, LOW },
  74. { "SendState", OFFSET(SendState), sizeof(UCHAR), NULL, LOW },
  75. { "NdisSendsInProgress",
  76. OFFSET(NdisSendsInProgress),
  77. sizeof(ULONG), NULL, LOW },
  78. { "NdisSendQueue",
  79. OFFSET(NdisSendQueue), sizeof(LIST_ENTRY), NULL, LOW },
  80. { "WackQ", OFFSET(WackQ), sizeof(LIST_ENTRY), NULL, LOW },
  81. { "@", 0, 0, NULL, LOW },
  82. #if PKT_LOG
  83. { "LastNRecvs", OFFSET(LastNRecvs), sizeof(PKT_LOG_QUE),
  84. PrintPktLogQue, LOW },
  85. { "LastNSends", OFFSET(LastNSends), sizeof(PKT_LOG_QUE),
  86. PrintPktLogQue, LOW },
  87. #endif
  88. { "", 0, 0, NULL, LOW },
  89. 0
  90. }
  91. };
  92. #endif // __LNKEXT_H