PHSModule.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef BCM_MINIPORT_PHSMODULE_H
  2. #define BCM_MINIPORT_PHSMODULE_H
  3. int PHSTransmit(PMINI_ADAPTER Adapter,
  4. struct sk_buff **pPacket,
  5. USHORT Vcid,
  6. B_UINT16 uiClassifierRuleID,
  7. BOOLEAN bHeaderSuppressionEnabled,
  8. PUINT PacketLen,
  9. UCHAR bEthCSSupport);
  10. int PHSRecieve(PMINI_ADAPTER Adapter,
  11. USHORT usVcid,
  12. struct sk_buff *packet,
  13. UINT *punPacketLen,
  14. UCHAR *pucEthernetHdr,
  15. UINT
  16. );
  17. void DumpDataPacketHeader(PUCHAR pPkt);
  18. void DumpFullPacket(UCHAR *pBuf,UINT nPktLen);
  19. void DumpPhsRules(PPHS_DEVICE_EXTENSION pDeviceExtension);
  20. int phs_init(PPHS_DEVICE_EXTENSION pPhsdeviceExtension,PMINI_ADAPTER Adapter);
  21. int PhsCleanup(PPHS_DEVICE_EXTENSION pPHSDeviceExt);
  22. //Utility Functions
  23. ULONG PhsUpdateClassifierRule(void* pvContext,B_UINT16 uiVcid,B_UINT16 uiClsId,S_PHS_RULE *psPhsRule,B_UINT8 u8AssociatedPHSI );
  24. ULONG PhsDeletePHSRule(void* pvContext,B_UINT16 uiVcid,B_UINT8 u8PHSI);
  25. ULONG PhsDeleteClassifierRule(void* pvContext, B_UINT16 uiVcid ,B_UINT16 uiClsId);
  26. ULONG PhsDeleteSFRules(void* pvContext,B_UINT16 uiVcid) ;
  27. BOOLEAN ValidatePHSRule(S_PHS_RULE *psPhsRule);
  28. UINT GetServiceFlowEntry(S_SERVICEFLOW_TABLE *psServiceFlowTable,B_UINT16 uiVcid,S_SERVICEFLOW_ENTRY **ppstServiceFlowEntry);
  29. void DumpPhsRules(PPHS_DEVICE_EXTENSION pDeviceExtension);
  30. #endif