Commit 9d8b659a authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Fix all white space issues in HostMIBSInterface.h

This patch fixes all white space issues in
HostMIBSInterface.h as reported by checkpatch.pl.
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc23445a
#ifndef _HOST_MIBSINTERFACE_H #ifndef _HOST_MIBSINTERFACE_H
#define _HOST_MIBSINTERFACE_H #define _HOST_MIBSINTERFACE_H
...@@ -8,201 +6,190 @@ ...@@ -8,201 +6,190 @@
* 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
#define MIBS_MAX_SERVICEFLOWS 17 #define MIBS_MAX_SERVICEFLOWS 17
#define MIBS_MAX_IP_RANGE_LENGTH 4 #define MIBS_MAX_IP_RANGE_LENGTH 4
#define MIBS_MAX_PORT_RANGE 4 #define MIBS_MAX_PORT_RANGE 4
#define MIBS_MAX_PROTOCOL_LENGTH 32 #define MIBS_MAX_PROTOCOL_LENGTH 32
#define MIBS_MAX_PHS_LENGTHS 255 #define MIBS_MAX_PHS_LENGTHS 255
#define MIBS_IPV6_ADDRESS_SIZEINBYTES 0x10 #define MIBS_IPV6_ADDRESS_SIZEINBYTES 0x10
#define MIBS_IP_LENGTH_OF_ADDRESS 4 #define MIBS_IP_LENGTH_OF_ADDRESS 4
#define MIBS_MAX_HIST_ENTRIES 12 #define MIBS_MAX_HIST_ENTRIES 12
#define MIBS_PKTSIZEHIST_RANGE 128 #define MIBS_PKTSIZEHIST_RANGE 128
typedef union _U_MIBS_IP_ADDRESS 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
{ {
UCHAR ucIpv4Address[MIBS_MAX_IP_RANGE_LENGTH * UCHAR ucIpv4Address[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IP_LENGTH_OF_ADDRESS];
MIBS_IP_LENGTH_OF_ADDRESS]; UCHAR ucIpv4Mask[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IP_LENGTH_OF_ADDRESS];
UCHAR ucIpv4Mask[MIBS_MAX_IP_RANGE_LENGTH *
MIBS_IP_LENGTH_OF_ADDRESS];
}; };
struct struct
{ {
UCHAR ucIpv6Address[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES]; UCHAR ucIpv6Address[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES];
UCHAR ucIpv6Mask[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES]; UCHAR ucIpv6Mask[MIBS_MAX_IP_RANGE_LENGTH * MIBS_IPV6_ADDRESS_SIZEINBYTES];
}; };
}U_MIBS_IP_ADDRESS; } U_MIBS_IP_ADDRESS;
typedef struct _S_MIBS_HOST_INFO 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 */
ULONG BEBucketSize; ULONG BEBucketSize;
ULONG rtPSBucketSize; ULONG rtPSBucketSize;
ULONG LastTxQueueIndex; ULONG LastTxQueueIndex;
BOOLEAN TxOutofDescriptors; BOOLEAN TxOutofDescriptors;
BOOLEAN TimerActive; BOOLEAN TimerActive;
UINT32 u32TotalDSD; UINT32 u32TotalDSD;
UINT32 aTxPktSizeHist[MIBS_MAX_HIST_ENTRIES]; UINT32 aTxPktSizeHist[MIBS_MAX_HIST_ENTRIES];
UINT32 aRxPktSizeHist[MIBS_MAX_HIST_ENTRIES]; UINT32 aRxPktSizeHist[MIBS_MAX_HIST_ENTRIES];
}S_MIBS_HOST_INFO; } S_MIBS_HOST_INFO;
typedef struct _S_MIBS_CLASSIFIER_RULE typedef struct _S_MIBS_CLASSIFIER_RULE
{ {
ULONG ulSFID; ULONG ulSFID;
UCHAR ucReserved[2]; UCHAR ucReserved[2];
B_UINT16 uiClassifierRuleIndex; B_UINT16 uiClassifierRuleIndex;
BOOLEAN bUsed; BOOLEAN bUsed;
USHORT usVCID_Value; USHORT usVCID_Value;
// This field detemines the Classifier Priority // 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;//Type of service Length
UCHAR ucTosLow;//Tos Low UCHAR ucTosLow;//Tos Low
UCHAR ucTosHigh;//Tos High UCHAR ucTosHigh;//Tos High
UCHAR ucTosMask;//Tos Mask UCHAR ucTosMask;//Tos Mask
UCHAR ucProtocolLength;//protocol Length UCHAR ucProtocolLength;//protocol Length
UCHAR ucProtocol[MIBS_MAX_PROTOCOL_LENGTH];//protocol Length UCHAR ucProtocol[MIBS_MAX_PROTOCOL_LENGTH];//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;
USHORT usDestPortRangeLo[MIBS_MAX_PORT_RANGE]; USHORT usDestPortRangeLo[MIBS_MAX_PORT_RANGE];
USHORT usDestPortRangeHi[MIBS_MAX_PORT_RANGE]; USHORT usDestPortRangeHi[MIBS_MAX_PORT_RANGE];
UCHAR ucDestPortRangeLength; UCHAR ucDestPortRangeLength;
BOOLEAN bProtocolValid; BOOLEAN bProtocolValid;
BOOLEAN bTOSValid; BOOLEAN bTOSValid;
BOOLEAN bDestIpValid; BOOLEAN bDestIpValid;
BOOLEAN bSrcIpValid; BOOLEAN bSrcIpValid;
UCHAR ucDirection; UCHAR ucDirection;
BOOLEAN bIpv6Protocol; BOOLEAN bIpv6Protocol;
UINT32 u32PHSRuleID; UINT32 u32PHSRuleID;
}S_MIBS_CLASSIFIER_RULE; } 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 /// brief 8bit PHSI Of The Service Flow
B_UINT8 u8PHSI; B_UINT8 u8PHSI;
/// brief PHSF Of The Service Flow /// 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 /// 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 /// brief 8bit PHSS Of The Service Flow
B_UINT8 u8PHSS; B_UINT8 u8PHSS;
/// brief 8bit PHSV Of The Service Flow /// 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. // 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; ULONG PHSErrorNumPackets;
ULONG PHSErrorNumPackets; } S_MIBS_PHS_RULE;
}S_MIBS_PHS_RULE;
typedef struct _S_MIBS_EXTSERVICEFLOW_PARAMETERS typedef struct _S_MIBS_EXTSERVICEFLOW_PARAMETERS
{ {
UINT32 wmanIfSfid; UINT32 wmanIfSfid;
UINT32 wmanIfCmnCpsSfState; UINT32 wmanIfCmnCpsSfState;
UINT32 wmanIfCmnCpsMaxSustainedRate; UINT32 wmanIfCmnCpsMaxSustainedRate;
UINT32 wmanIfCmnCpsMaxTrafficBurst; UINT32 wmanIfCmnCpsMaxTrafficBurst;
UINT32 wmanIfCmnCpsMinReservedRate; UINT32 wmanIfCmnCpsMinReservedRate;
UINT32 wmanIfCmnCpsToleratedJitter; UINT32 wmanIfCmnCpsToleratedJitter;
UINT32 wmanIfCmnCpsMaxLatency; UINT32 wmanIfCmnCpsMaxLatency;
UINT32 wmanIfCmnCpsFixedVsVariableSduInd; UINT32 wmanIfCmnCpsFixedVsVariableSduInd;
UINT32 wmanIfCmnCpsSduSize; UINT32 wmanIfCmnCpsSduSize;
UINT32 wmanIfCmnCpsSfSchedulingType; UINT32 wmanIfCmnCpsSfSchedulingType;
UINT32 wmanIfCmnCpsArqEnable; UINT32 wmanIfCmnCpsArqEnable;
UINT32 wmanIfCmnCpsArqWindowSize; UINT32 wmanIfCmnCpsArqWindowSize;
UINT32 wmanIfCmnCpsArqBlockLifetime; UINT32 wmanIfCmnCpsArqBlockLifetime;
UINT32 wmanIfCmnCpsArqSyncLossTimeout; UINT32 wmanIfCmnCpsArqSyncLossTimeout;
UINT32 wmanIfCmnCpsArqDeliverInOrder; UINT32 wmanIfCmnCpsArqDeliverInOrder;
UINT32 wmanIfCmnCpsArqRxPurgeTimeout; UINT32 wmanIfCmnCpsArqRxPurgeTimeout;
UINT32 wmanIfCmnCpsArqBlockSize; UINT32 wmanIfCmnCpsArqBlockSize;
UINT32 wmanIfCmnCpsMinRsvdTolerableRate; UINT32 wmanIfCmnCpsMinRsvdTolerableRate;
UINT32 wmanIfCmnCpsReqTxPolicy; UINT32 wmanIfCmnCpsReqTxPolicy;
UINT32 wmanIfCmnSfCsSpecification; UINT32 wmanIfCmnSfCsSpecification;
UINT32 wmanIfCmnCpsTargetSaid; UINT32 wmanIfCmnCpsTargetSaid;
} S_MIBS_EXTSERVICEFLOW_PARAMETERS;
}S_MIBS_EXTSERVICEFLOW_PARAMETERS;
typedef struct _S_MIBS_SERVICEFLOW_TABLE typedef struct _S_MIBS_SERVICEFLOW_TABLE
{ {
//classification extension Rule //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 // 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 //BE or rtPS
B_UINT8 u8QueueType; B_UINT8 u8QueueType;
//maximum size of the bucket for the queue //maximum size of the bucket for the queue
UINT uiMaxBucketSize; UINT uiMaxBucketSize;
UINT uiCurrentQueueDepthOnTarget; UINT uiCurrentQueueDepthOnTarget;
UINT uiCurrentBytesOnHost; UINT uiCurrentBytesOnHost;
UINT uiCurrentPacketsOnHost; UINT uiCurrentPacketsOnHost;
UINT uiDroppedCountBytes; UINT uiDroppedCountBytes;
UINT uiDroppedCountPackets; UINT uiDroppedCountPackets;
UINT uiSentBytes; UINT uiSentBytes;
UINT uiSentPackets; UINT uiSentPackets;
UINT uiCurrentDrainRate; UINT uiCurrentDrainRate;
UINT uiThisPeriodSentBytes; UINT uiThisPeriodSentBytes;
LARGE_INTEGER liDrainCalculated; LARGE_INTEGER liDrainCalculated;
UINT uiCurrentTokenCount; UINT uiCurrentTokenCount;
LARGE_INTEGER liLastUpdateTokenAt; LARGE_INTEGER liLastUpdateTokenAt;
UINT uiMaxAllowedRate; UINT uiMaxAllowedRate;
UINT NumOfPacketsSent; UINT NumOfPacketsSent;
UCHAR ucDirection; UCHAR ucDirection;
USHORT usCID; USHORT usCID;
S_MIBS_EXTSERVICEFLOW_PARAMETERS stMibsExtServiceFlowTable; S_MIBS_EXTSERVICEFLOW_PARAMETERS stMibsExtServiceFlowTable;
UINT uiCurrentRxRate; UINT uiCurrentRxRate;
UINT uiThisPeriodRxBytes; UINT uiThisPeriodRxBytes;
UINT uiTotalRxBytes; UINT uiTotalRxBytes;
UINT uiTotalTxBytes; UINT uiTotalTxBytes;
}S_MIBS_SERVICEFLOW_TABLE; } S_MIBS_SERVICEFLOW_TABLE;
typedef struct _S_MIBS_DROPPED_APP_CNTRL_MESSAGES typedef struct _S_MIBS_DROPPED_APP_CNTRL_MESSAGES
{ {
...@@ -214,17 +201,15 @@ typedef struct _S_MIBS_DROPPED_APP_CNTRL_MESSAGES ...@@ -214,17 +201,15 @@ typedef struct _S_MIBS_DROPPED_APP_CNTRL_MESSAGES
ULONG idle_mode_status; ULONG idle_mode_status;
ULONG auth_ss_host_msg; ULONG auth_ss_host_msg;
ULONG low_priority_message; ULONG low_priority_message;
} S_MIBS_DROPPED_APP_CNTRL_MESSAGES;
}S_MIBS_DROPPED_APP_CNTRL_MESSAGES;
typedef struct _S_MIBS_HOST_STATS_MIBS typedef struct _S_MIBS_HOST_STATS_MIBS
{ {
S_MIBS_HOST_INFO stHostInfo; S_MIBS_HOST_INFO stHostInfo;
S_MIBS_CLASSIFIER_RULE astClassifierTable[MIBS_MAX_CLASSIFIERS]; S_MIBS_CLASSIFIER_RULE astClassifierTable[MIBS_MAX_CLASSIFIERS];
S_MIBS_SERVICEFLOW_TABLE astSFtable[MIBS_MAX_SERVICEFLOWS]; S_MIBS_SERVICEFLOW_TABLE astSFtable[MIBS_MAX_SERVICEFLOWS];
S_MIBS_PHS_RULE astPhsRulesTable[MIBS_MAX_PHSRULES]; S_MIBS_PHS_RULE astPhsRulesTable[MIBS_MAX_PHSRULES];
S_MIBS_DROPPED_APP_CNTRL_MESSAGES stDroppedAppCntrlMsgs; S_MIBS_DROPPED_APP_CNTRL_MESSAGES stDroppedAppCntrlMsgs;
}S_MIBS_HOST_STATS_MIBS; } S_MIBS_HOST_STATS_MIBS;
#endif
#endif
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