Commit 2b9866f2 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Properly format and remove comments as needed in HostMIBSInterface.h

This patch formats all comments and removes
them as needed.
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d8b659a
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* File Name: HostMIBSInterface.h * File Name: HostMIBSInterface.h
* Abstract: This file contains DS used by the Host to update the Host * Abstract: This file contains DS used by the Host to update the Host
* statistics used for the MIBS. * statistics used for the MIBS.
*/ */
#define MIBS_MAX_CLASSIFIERS 100 #define MIBS_MAX_CLASSIFIERS 100
#define MIBS_MAX_PHSRULES 100 #define MIBS_MAX_PHSRULES 100
...@@ -24,16 +24,16 @@ typedef union _U_MIBS_IP_ADDRESS ...@@ -24,16 +24,16 @@ typedef union _U_MIBS_IP_ADDRESS
{ {
struct struct
{ {
//Source Ip Address Range /* Source Ip Address Range */
ULONG ulIpv4Addr[MIBS_MAX_IP_RANGE_LENGTH]; ULONG ulIpv4Addr[MIBS_MAX_IP_RANGE_LENGTH];
//Source Ip Mask Address Range /* Source Ip Mask Address Range */
ULONG ulIpv4Mask[MIBS_MAX_IP_RANGE_LENGTH]; ULONG ulIpv4Mask[MIBS_MAX_IP_RANGE_LENGTH];
}; };
struct struct
{ {
//Source Ip Address Range /* Source Ip Address Range */
ULONG ulIpv6Addr[MIBS_MAX_IP_RANGE_LENGTH * 4]; ULONG ulIpv6Addr[MIBS_MAX_IP_RANGE_LENGTH * 4];
//Source Ip Mask Address Range /* Source Ip Mask Address Range */
ULONG ulIpv6Mask[MIBS_MAX_IP_RANGE_LENGTH * 4]; ULONG ulIpv6Mask[MIBS_MAX_IP_RANGE_LENGTH * 4];
}; };
struct struct
...@@ -52,11 +52,11 @@ typedef struct _S_MIBS_HOST_INFO ...@@ -52,11 +52,11 @@ typedef struct _S_MIBS_HOST_INFO
{ {
ULONG64 GoodTransmits; ULONG64 GoodTransmits;
ULONG64 GoodReceives; ULONG64 GoodReceives;
// this to keep track of the Tx and Rx MailBox Registers. /* this to keep track of the Tx and Rx MailBox Registers. */
ULONG NumDesUsed; ULONG NumDesUsed;
ULONG CurrNumFreeDesc; ULONG CurrNumFreeDesc;
ULONG PrevNumFreeDesc; ULONG PrevNumFreeDesc;
// to keep track the no of byte received /* to keep track the no of byte received */
ULONG PrevNumRcevBytes; ULONG PrevNumRcevBytes;
ULONG CurrNumRcevBytes; ULONG CurrNumRcevBytes;
/* QOS Related */ /* QOS Related */
...@@ -77,20 +77,19 @@ typedef struct _S_MIBS_CLASSIFIER_RULE ...@@ -77,20 +77,19 @@ typedef struct _S_MIBS_CLASSIFIER_RULE
B_UINT16 uiClassifierRuleIndex; B_UINT16 uiClassifierRuleIndex;
BOOLEAN bUsed; BOOLEAN bUsed;
USHORT usVCID_Value; USHORT usVCID_Value;
// This field detemines the Classifier Priority
B_UINT8 u8ClassifierRulePriority; B_UINT8 u8ClassifierRulePriority;
U_MIBS_IP_ADDRESS stSrcIpAddress; U_MIBS_IP_ADDRESS stSrcIpAddress;
/*IP Source Address Length*/ /* IP Source Address Length */
UCHAR ucIPSourceAddressLength; UCHAR ucIPSourceAddressLength;
U_MIBS_IP_ADDRESS stDestIpAddress; U_MIBS_IP_ADDRESS stDestIpAddress;
/* IP Destination Address Length */ /* IP Destination Address Length */
UCHAR ucIPDestinationAddressLength; UCHAR ucIPDestinationAddressLength;
UCHAR ucIPTypeOfServiceLength;//Type of service Length UCHAR ucIPTypeOfServiceLength;
UCHAR ucTosLow;//Tos Low UCHAR ucTosLow;
UCHAR ucTosHigh;//Tos High UCHAR ucTosHigh;
UCHAR ucTosMask;//Tos Mask UCHAR ucTosMask;
UCHAR ucProtocolLength;//protocol Length UCHAR ucProtocolLength;
UCHAR ucProtocol[MIBS_MAX_PROTOCOL_LENGTH];//protocol Length UCHAR ucProtocol[MIBS_MAX_PROTOCOL_LENGTH];
USHORT usSrcPortRangeLo[MIBS_MAX_PORT_RANGE]; USHORT usSrcPortRangeLo[MIBS_MAX_PORT_RANGE];
USHORT usSrcPortRangeHi[MIBS_MAX_PORT_RANGE]; USHORT usSrcPortRangeHi[MIBS_MAX_PORT_RANGE];
UCHAR ucSrcPortRangeLength; UCHAR ucSrcPortRangeLength;
...@@ -109,19 +108,13 @@ typedef struct _S_MIBS_CLASSIFIER_RULE ...@@ -109,19 +108,13 @@ typedef struct _S_MIBS_CLASSIFIER_RULE
typedef struct _S_MIBS_PHS_RULE typedef struct _S_MIBS_PHS_RULE
{ {
ULONG ulSFID; ULONG ulSFID;
/// brief 8bit PHSI Of The Service Flow
B_UINT8 u8PHSI; B_UINT8 u8PHSI;
/// brief PHSF Of The Service Flow
B_UINT8 u8PHSFLength; B_UINT8 u8PHSFLength;
B_UINT8 u8PHSF[MIBS_MAX_PHS_LENGTHS]; B_UINT8 u8PHSF[MIBS_MAX_PHS_LENGTHS];
/// brief PHSM Of The Service Flow
B_UINT8 u8PHSMLength; B_UINT8 u8PHSMLength;
B_UINT8 u8PHSM[MIBS_MAX_PHS_LENGTHS]; B_UINT8 u8PHSM[MIBS_MAX_PHS_LENGTHS];
/// brief 8bit PHSS Of The Service Flow
B_UINT8 u8PHSS; B_UINT8 u8PHSS;
/// brief 8bit PHSV Of The Service Flow
B_UINT8 u8PHSV; B_UINT8 u8PHSV;
// Reserved bytes are 5, so that it is similar to S_PHS_RULE structure.
B_UINT8 reserved[5]; B_UINT8 reserved[5];
LONG PHSModifiedBytes; LONG PHSModifiedBytes;
ULONG PHSModifiedNumPackets; ULONG PHSModifiedNumPackets;
...@@ -155,18 +148,14 @@ typedef struct _S_MIBS_EXTSERVICEFLOW_PARAMETERS ...@@ -155,18 +148,14 @@ typedef struct _S_MIBS_EXTSERVICEFLOW_PARAMETERS
typedef struct _S_MIBS_SERVICEFLOW_TABLE typedef struct _S_MIBS_SERVICEFLOW_TABLE
{ {
//classification extension Rule
ULONG ulSFID; ULONG ulSFID;
USHORT usVCID_Value; USHORT usVCID_Value;
UINT uiThreshold; UINT uiThreshold;
// This field determines the priority of the SF Queues
B_UINT8 u8TrafficPriority; B_UINT8 u8TrafficPriority;
BOOLEAN bValid; BOOLEAN bValid;
BOOLEAN bActive; BOOLEAN bActive;
BOOLEAN bActivateRequestSent; BOOLEAN bActivateRequestSent;
//BE or rtPS
B_UINT8 u8QueueType; B_UINT8 u8QueueType;
//maximum size of the bucket for the queue
UINT uiMaxBucketSize; UINT uiMaxBucketSize;
UINT uiCurrentQueueDepthOnTarget; UINT uiCurrentQueueDepthOnTarget;
UINT uiCurrentBytesOnHost; UINT uiCurrentBytesOnHost;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment