home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / andistkt.zip / MACPROTO.H < prev    next >
Text File  |  1995-04-19  |  7KB  |  127 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*   Component   : Sample ANDIS MAC Driver                                   */
  4. /*                                                                           */
  5. /*   Module      : MACPROTO.H                                                */
  6. /*                                                                           */
  7. /*   Description : This module contains prototypes for all the routines      */
  8. /*                 in the MAC.                                               */
  9. /*                                                                           */
  10. /*****************************************************************************/
  11.  
  12.  
  13. /* Routines in MACINIT.C */
  14. VOID    NEAR Strategy( PREQPKT pRequestPacket );
  15. VOID    NEAR EndofCode( VOID );
  16. VOID    FAR  Initialize( PININITRP pInInitRP );
  17. BOOL    NEAR ProcessConfigData( struct ModCfg *pConfigData );
  18. VOID    NEAR CreateModule( struct ModCfg *pModCfg );
  19. BOOL    NEAR ProcessKeywords( struct KeywordEntry *pKEList, PMODULE pModule );
  20. BOOL    NEAR AddModule( USHORT GDTSel, PPHYSADDR pPhysAddr );
  21. PMODULE NEAR VirtualAddr( PPHYSADDR pPhysAddr );
  22. VOID    NEAR InitNDISTables( PMODULE pModule, USHORT GDTSel );
  23. VOID    NEAR InitANDISTables( PMODULE pModule, USHORT GDTSel );
  24. BOOL    NEAR DisplayMsg( USHORT MsgNumber, PCHAR pIvString );
  25. VOID    NEAR LogMsg( USHORT MsgNumber, USHORT IvCount, PCHAR pIvString );
  26. VOID    NEAR Display( PCHAR pString );
  27. BOOL    NEAR StringsEqual( PUCHAR pFirst, PUCHAR pSecond );
  28. BOOL    NEAR StringCopy( UCHAR Dest[], UCHAR Source[], USHORT DestSize );
  29.  
  30.  
  31. /* Routines in MACNDIS.C */
  32. USHORT _loadds PASCAL FAR SystemRequest( ULONG Param1, ULONG Param2,
  33.       USHORT Param3, USHORT Opcode, USHORT MACDS );
  34. USHORT NEAR SRBind( struct CommChar *pProtCCT, struct CommChar **ppMACCCT,
  35.       USHORT MACDS );
  36. USHORT _loadds PASCAL FAR GeneralRequest( USHORT ProtID, USHORT ReqHandle,
  37.       USHORT Param1, PUCHAR Param2, USHORT Opcode, USHORT MACDS );
  38. USHORT NEAR GRInitiateDiagnostics( USHORT ProtID, USHORT ReqHandle,
  39.       USHORT MACDS );
  40. USHORT NEAR GRReadErrorLog( USHORT ProtID, USHORT ReqHandle, USHORT LogLen,
  41.       PUCHAR pLogBuff, USHORT MACDS );
  42. USHORT NEAR GRSetStationAddress( USHORT ProtID, USHORT ReqHandle,
  43.       PUCHAR pAdaptAddr, USHORT MACDS );
  44. USHORT NEAR GROpenAdapter( USHORT ProtID, USHORT ReqHandle, USHORT OpenOptions,
  45.       USHORT MACDS );
  46. USHORT NEAR GRCloseAdapter( USHORT ProtID, USHORT ReqHandle, USHORT MACDS );
  47. USHORT NEAR GRResetMAC( USHORT ProtID, USHORT ReqHandle, USHORT MACDS );
  48. USHORT NEAR GRSetPacketFilter( USHORT ProtID, USHORT ReqHandle,
  49.       USHORT FilterMask, USHORT MACDS );
  50. USHORT NEAR GRAddMulticastAddress( USHORT ProtID, USHORT ReqHandle,
  51.       PUCHAR pMultiAddr, USHORT MACDS );
  52. USHORT NEAR GRDeleteMulticastAddress( USHORT ProtID, USHORT ReqHandle,
  53.       PUCHAR pMultiAddr, USHORT MACDS );
  54. USHORT NEAR GRUpdateStatistics( USHORT ProtID, USHORT ReqHandle, USHORT MACDS );
  55. USHORT NEAR GRClearStatistics( USHORT ProtID, USHORT ReqHandle, USHORT MACDS );
  56. USHORT NEAR GRInterrupt( USHORT ProtID, USHORT MACDS );
  57. USHORT NEAR GRSetFunctionalAddress( USHORT ProtID, USHORT ReqHandle,
  58.       PUCHAR pFunctAddr, USHORT MACDS );
  59. USHORT NEAR GRSetLookAhead( USHORT ProtID, USHORT ReqHandle, USHORT Length,
  60.       USHORT MACDS );
  61. USHORT NEAR RequestConfirm( USHORT ProtID, USHORT ReqHandle, USHORT Status,
  62.       USHORT Request, PMODULE pModule );
  63. USHORT NEAR SIRingStatus( USHORT Status, PUCHAR pIndicate, PMODULE pModule );
  64. USHORT NEAR SIAdapterCheck( USHORT Reason, PUCHAR pIndicate, PMODULE pModule );
  65. USHORT NEAR SIStartReset( PUCHAR pIndicate, PMODULE pModule );
  66. USHORT NEAR SIEndReset( PUCHAR pIndicate, PMODULE pModule );
  67. USHORT NEAR SIInterrupt( PUCHAR pIndicate, PMODULE pModule );
  68. USHORT _loadds PASCAL FAR TransmitChain( USHORT ProtID, USHORT ReqHandle,
  69.       struct TxBufDesc *pTxBufDesc, USHORT MACDS );
  70. USHORT NEAR TransmitConfirm( USHORT ProtID, USHORT ReqHandle, USHORT Status,
  71.       PMODULE pModule );
  72. USHORT NEAR ReceiveLookahead( USHORT FrameSize, USHORT BytesAvail,
  73.       PUCHAR pBuffer, PUCHAR pIndicate, PMODULE pModule );
  74. USHORT _loadds PASCAL FAR TransferData( PUSHORT pBytesCopied,
  75.       USHORT FrameOffset, struct TDBufDesc *pTDBufDesc, USHORT MACDS );
  76. USHORT NEAR IndicationComplete( PMODULE pModule );
  77. USHORT NEAR ReceiveChain( USHORT FrameSize, USHORT ReqHandle,
  78.       struct RxBufDesc *pRxBufDesc, PUCHAR pIndicate, PMODULE pModule );
  79. USHORT _loadds PASCAL FAR ReceiveRelease( USHORT ReqHandle, USHORT MACDS );
  80. USHORT _loadds PASCAL FAR IndicationsOff( USHORT MACDS );
  81. USHORT _loadds PASCAL FAR IndicationsOn( USHORT MACDS );
  82.  
  83.  
  84. /* Routines in MACANDIS.C */
  85. USHORT _loadds PASCAL FAR PortManagement( USHORT PortID, USHORT ReqHandle,
  86.       USHORT Param1, ULONG Param2, USHORT FunctionCode, USHORT MACDS );
  87. USHORT NEAR RegisterPCM( USHORT ReqHandle, USHORT PortID,
  88.       PENTRYTBL pEntryTbl, USHORT MACDS );
  89. USHORT NEAR ReleasePCM( USHORT ReqHandle, USHORT PortID, USHORT MACDS );
  90. USHORT NEAR ActivateMode( USHORT ReqHandle, USHORT MACMode, USHORT MACDS );
  91. USHORT NEAR RetrievePPIStatus( USHORT ReqHandle, PULONG pPPIStatus,
  92.       USHORT MACDS );
  93. USHORT NEAR GetPPATParms( USHORT ReqHandle, USHORT PPATSize, PXVPPAT pPPAT,
  94.       USHORT MACDS );
  95. USHORT NEAR SetPPATParms( USHORT ReqHandle, PXVPPAT pPPAT, USHORT MACDS );
  96. USHORT NEAR ResetPort( USHORT ReqHandle, USHORT ResetType, USHORT MACDS );
  97. USHORT NEAR ActivatePhysConn( USHORT ReqHandle, USHORT Mode, ULONG Timeout,
  98.       USHORT MACDS );
  99. USHORT NEAR DeactivatePhysConn( USHORT ReqHandle, ULONG Timeout, USHORT MACDS );
  100. USHORT NEAR RegisterNullDLC( USHORT ReqHandle, USHORT PortID,
  101.       PENTRYTBL pEntryTbl, USHORT MACDS );
  102. USHORT NEAR ReleaseNullDLC( USHORT ReqHandle, USHORT PortID, USHORT MACDS );
  103. USHORT NEAR ActivateDTR( USHORT ReqHandle, USHORT MACDS );
  104. USHORT NEAR ActivateRTS( USHORT ReqHandle, USHORT MACDS );
  105. USHORT NEAR ConnectionActive( USHORT ReqHandle, PMODULE pModule );
  106. USHORT NEAR ConnectionInactive( USHORT ReqHandle, PMODULE pModule );
  107. USHORT NEAR PPISignal( USHORT ReqHandle, PMODULE pModule );
  108. USHORT NEAR PPIException( USHORT ReqHandle, USHORT Exception, PMODULE pModule );
  109. USHORT NEAR PortMgmtReqComplete( USHORT ReqHandle, USHORT Status,
  110.       PMODULE pModule );
  111. USHORT _loadds PASCAL FAR TransmitImmData( USHORT PortID, USHORT ReqHandle,
  112.       USHORT DataLength, ULONG pImmData, USHORT FunctionCode, USHORT MACDS );
  113. USHORT NEAR TransmitImmDataConfirm( USHORT ReqHandle, USHORT Status,
  114.       PMODULE pModule );
  115. USHORT NEAR ReceiveImmData( USHORT ReqHandle, USHORT DataLength,
  116.       PUCHAR pImmData, PMODULE pModule );
  117. USHORT _loadds PASCAL FAR ReceiveImmDataConfirm( USHORT PortID,
  118.       USHORT ReqHandle, USHORT Param1, ULONG Param2, USHORT FunctionCode,
  119.       USHORT MACDS );
  120. USHORT _loadds PASCAL FAR PPATManagement( USHORT PortID, USHORT ReqHandle,
  121.       USHORT Param1, ULONG pPPAT, USHORT FunctionCode, USHORT MACDS );
  122.  
  123.  
  124. /* Routines in MACASM.ASM */
  125. USHORT  FAR  DevHelper( PREGS pRegs );
  126.  
  127.