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.

141 lines
3.7 KiB

  1. /*****************************************************************************
  2. ** **
  3. ** COPYRIGHT (C) 2000, 2001 MKNET CORPORATION **
  4. ** DEVELOPED FOR THE MK7100-BASED VFIR PCI CONTROLLER. **
  5. ** **
  6. *****************************************************************************/
  7. /**********************************************************************
  8. Module Name:
  9. PROTOT.H
  10. Comments:
  11. Prototype all extern function references and globle variables.
  12. **********************************************************************/
  13. // DBG.C
  14. #if DBG
  15. // MyLogEvent
  16. // MyLogPhysEvent
  17. extern VOID DbgTestInit(PMK7_ADAPTER);
  18. extern VOID MK7DbgTestIntTmo(PVOID, NDIS_HANDLE, PVOID, PVOID);
  19. extern VOID DbgInterPktTimeGap();
  20. extern MK7DBG_STAT GDbgStat;
  21. #endif
  22. // INTERRUPT.C
  23. extern VOID MKMiniportIsr(PBOOLEAN, PBOOLEAN, NDIS_HANDLE);
  24. extern VOID MKMiniportHandleInterrupt(IN NDIS_HANDLE);
  25. extern VOID ProcessTXCompIsr(PMK7_ADAPTER);
  26. extern VOID ProcessRXCompIsr(PMK7_ADAPTER);
  27. extern VOID ProcessTXComp(PMK7_ADAPTER);
  28. extern VOID ProcessRXComp(PMK7_ADAPTER);
  29. // MK7COMM.C
  30. #if DBG
  31. extern VOID MK7Reg_Read(PVOID, ULONG, USHORT *);
  32. extern VOID MK7Reg_Write(PVOID, ULONG, USHORT);
  33. #endif
  34. extern NDIS_STATUS MK7DisableInterrupt(PMK7_ADAPTER);
  35. extern NDIS_STATUS MK7EnableInterrupt(PMK7_ADAPTER);
  36. extern VOID MK7SwitchToRXMode(PMK7_ADAPTER);
  37. extern VOID MK7SwitchToTXMode(PMK7_ADAPTER);
  38. extern BOOLEAN SetSpeed(PMK7_ADAPTER);
  39. extern VOID MK7ChangeSpeedNow(PMK7_ADAPTER);
  40. extern baudRateInfo supportedBaudRateTable[];
  41. // MKINIT.C
  42. extern NDIS_STATUS ClaimAdapter(PMK7_ADAPTER, NDIS_HANDLE);
  43. extern NDIS_STATUS SetupIrIoMapping(PMK7_ADAPTER);
  44. extern NDIS_STATUS SetupAdapterInfo(PMK7_ADAPTER);
  45. extern NDIS_STATUS AllocAdapterMemory(PMK7_ADAPTER);
  46. //(ReleaseAdapterMemory)
  47. extern VOID FreeAdapterObject(PMK7_ADAPTER);
  48. extern VOID SetupTransmitQueues(PMK7_ADAPTER, BOOLEAN);
  49. extern VOID SetupReceiveQueues(PMK7_ADAPTER);
  50. // (InitializeMK7)
  51. // 1.0.0
  52. extern VOID ResetTransmitQueues(PMK7_ADAPTER, BOOLEAN);
  53. extern VOID ResetReceiveQueues(PMK7_ADAPTER);
  54. extern VOID MK7ResetComplete(PVOID,NDIS_HANDLE,PVOID,PVOID);
  55. extern BOOLEAN InitializeAdapter(PMK7_ADAPTER);
  56. extern VOID StartAdapter(PMK7_ADAPTER);
  57. // MKMINI.C
  58. // MKMiniportReturnPackets
  59. // MKMiniportReturnPackets
  60. // MKMiniportCheckForHang
  61. // MKMiniportHalt
  62. // MKMiniportShutdownHandler
  63. // MKMiniportInitialize
  64. // MKMiniportReset
  65. // (MK7EnableInterrupt & Disable in MK7COMM.C.)
  66. // DriverEntry
  67. // SEND.C
  68. extern VOID MKMiniportMultiSend(NDIS_HANDLE, PPNDIS_PACKET, UINT);
  69. extern NDIS_STATUS SendPkt(PMK7_ADAPTER, PNDIS_PACKET);
  70. extern UINT PrepareForTransmit(PMK7_ADAPTER, PNDIS_PACKET, PTCB);
  71. extern VOID CopyFromPacketToBuffer( PMK7_ADAPTER,
  72. PNDIS_PACKET,
  73. UINT,
  74. PCHAR,
  75. PNDIS_BUFFER,
  76. PUINT);
  77. extern VOID MinTurnaroundTxTimeout(PVOID, NDIS_HANDLE, PVOID, PVOID);
  78. // SIR.C
  79. extern BOOLEAN NdisToSirPacket(PMK7_ADAPTER, PNDIS_PACKET, UCHAR *, UINT, UINT *);
  80. extern USHORT ComputeSirFCS(PUCHAR, UINT);
  81. extern BOOLEAN ProcRXSir(PUCHAR, UINT);
  82. // UTIL.C
  83. extern PNDIS_IRDA_PACKET_INFO GetPacketInfo(PNDIS_PACKET);
  84. extern VOID ProcReturnedRpd(PMK7_ADAPTER, PRPD);
  85. // WINOIDS.C
  86. extern NDIS_STATUS MKMiniportQueryInformation(NDIS_HANDLE,
  87. NDIS_OID,
  88. PVOID,
  89. ULONG,
  90. PULONG,
  91. PULONG);
  92. extern NDIS_STATUS MKMiniportSetInformation(NDIS_HANDLE,
  93. NDIS_OID,
  94. PVOID,
  95. ULONG,
  96. PULONG,
  97. PULONG);
  98. // WINPCI.C
  99. extern USHORT FindAndSetupPciDevice(PMK7_ADAPTER,
  100. NDIS_HANDLE,
  101. USHORT,
  102. USHORT,
  103. PPCI_CARDS_FOUND_STRUC);
  104. // WINREG.C
  105. extern NDIS_STATUS ParseRegistryParameters(PMK7_ADAPTER, NDIS_HANDLE);
  106. extern NDIS_STATUS ProcessRegistry(PMK7_ADAPTER, NDIS_HANDLE);