Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5db647a3 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: Correctly format all comments in Adapter.h



This patch correctly formats all comments 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 90942140
Loading
Loading
Loading
Loading
+67 −62
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ struct link_request {
} __attribute__((packed));
typedef struct link_request LINK_REQUEST, *PLINK_REQUEST;

//classification extension is added
/* classification extension is added */
typedef struct _ADD_CONNECTION {
	ULONG	SrcIpAddressCount;
	ULONG	SrcIpAddress[MAX_CONNECTIONS];
@@ -83,12 +83,12 @@ typedef struct _CLASSIFICATION_ONLY {

typedef union _U_IP_ADDRESS {
	struct {
		ULONG ulIpv4Addr[MAX_IP_RANGE_LENGTH];//Source Ip Address Range
		ULONG ulIpv4Mask[MAX_IP_RANGE_LENGTH];//Source Ip Mask Address Range
		ULONG ulIpv4Addr[MAX_IP_RANGE_LENGTH]; /* Source Ip Address Range */
		ULONG ulIpv4Mask[MAX_IP_RANGE_LENGTH]; /* Source Ip Mask Address Range */
	};
	struct {
		ULONG ulIpv6Addr[MAX_IP_RANGE_LENGTH * 4];//Source Ip Address Range
		ULONG ulIpv6Mask[MAX_IP_RANGE_LENGTH * 4];//Source Ip Mask Address Range
		ULONG ulIpv6Addr[MAX_IP_RANGE_LENGTH * 4]; /* Source Ip Address Range */
		ULONG ulIpv6Mask[MAX_IP_RANGE_LENGTH * 4]; /* Source Ip Mask Address Range */
	};
	struct {
		UCHAR ucIpv4Address[MAX_IP_RANGE_LENGTH * IP_LENGTH_OF_ADDRESS];
@@ -102,8 +102,8 @@ typedef union _U_IP_ADDRESS {
struct _packet_info;

typedef struct _S_HDR_SUPRESSION_CONTEXTINFO {
	UCHAR ucaHdrSupressionInBuf[MAX_PHS_LENGTHS]; //Intermediate buffer to accumulate pkt Header for PHS
	UCHAR ucaHdrSupressionOutBuf[MAX_PHS_LENGTHS + PHSI_LEN]; //Intermediate buffer containing pkt Header after PHS
	UCHAR ucaHdrSupressionInBuf[MAX_PHS_LENGTHS]; /* Intermediate buffer to accumulate pkt Header for PHS */
	UCHAR ucaHdrSupressionOutBuf[MAX_PHS_LENGTHS + PHSI_LEN]; /* Intermediate buffer containing pkt Header after PHS */
} S_HDR_SUPRESSION_CONTEXTINFO;

typedef struct _S_CLASSIFIER_RULE {
@@ -112,19 +112,19 @@ typedef struct _S_CLASSIFIER_RULE {
	B_UINT16	uiClassifierRuleIndex;
	BOOLEAN		bUsed;
	USHORT		usVCID_Value;
	B_UINT8		u8ClassifierRulePriority; //This field detemines the Classifier Priority
	B_UINT8		u8ClassifierRulePriority; /* This field detemines the Classifier Priority */
	U_IP_ADDRESS	stSrcIpAddress;
	UCHAR		ucIPSourceAddressLength;//Ip Source Address Length
	UCHAR		ucIPSourceAddressLength; /* Ip Source Address Length */

	U_IP_ADDRESS	stDestIpAddress;
	UCHAR		ucIPDestinationAddressLength;//Ip Destination Address Length
	UCHAR		ucIPTypeOfServiceLength;//Type of service Length
	UCHAR		ucTosLow;//Tos Low
	UCHAR		ucTosHigh;//Tos High
	UCHAR		ucTosMask;//Tos Mask

	UCHAR		ucProtocolLength;//protocol Length
	UCHAR		ucProtocol[MAX_PROTOCOL_LENGTH];//protocol Length
	UCHAR		ucIPDestinationAddressLength; /* Ip Destination Address Length */
	UCHAR		ucIPTypeOfServiceLength; /* Type of service Length */
	UCHAR		ucTosLow; /* Tos Low */
	UCHAR		ucTosHigh; /* Tos High */
	UCHAR		ucTosMask; /* Tos Mask */

	UCHAR		ucProtocolLength; /* protocol Length */
	UCHAR		ucProtocol[MAX_PROTOCOL_LENGTH]; /* protocol Length */
	USHORT		usSrcPortRangeLo[MAX_PORT_RANGE];
	USHORT		usSrcPortRangeHi[MAX_PORT_RANGE];
	UCHAR		ucSrcPortRangeLength;
@@ -138,14 +138,14 @@ typedef struct _S_CLASSIFIER_RULE {
	BOOLEAN		bDestIpValid;
	BOOLEAN		bSrcIpValid;

	//For IPv6 Addressing
	/* For IPv6 Addressing */
	UCHAR		ucDirection;
	BOOLEAN		bIpv6Protocol;
	UINT32		u32PHSRuleID;
	S_PHS_RULE	sPhsRule;
	UCHAR		u8AssociatedPHSI;

	//Classification fields for ETH CS
	/* Classification fields for ETH CS */
	UCHAR		ucEthCSSrcMACLen;
	UCHAR		au8EThCSSrcMAC[MAC_ADDRESS_SIZE];
	UCHAR		au8EThCSSrcMACMask[MAC_ADDRESS_SIZE];
@@ -158,7 +158,7 @@ typedef struct _S_CLASSIFIER_RULE {
	USHORT		usVLANID;
	USHORT		usValidityBitMap;
} S_CLASSIFIER_RULE;
//typedef struct _S_CLASSIFIER_RULE S_CLASSIFIER_RULE;
/* typedef struct _S_CLASSIFIER_RULE S_CLASSIFIER_RULE; */

typedef struct _S_FRAGMENTED_PACKET_INFO {
	BOOLEAN			bUsed;
@@ -169,20 +169,20 @@ typedef struct _S_FRAGMENTED_PACKET_INFO {
} S_FRAGMENTED_PACKET_INFO, *PS_FRAGMENTED_PACKET_INFO;

struct _packet_info {
	//classification extension Rule
	/* classification extension Rule */
	ULONG		ulSFID;
	USHORT		usVCID_Value;
	UINT		uiThreshold;
	// This field determines the priority of the SF Queues
	/* This field determines the priority of the SF Queues */
	B_UINT8		u8TrafficPriority;

	BOOLEAN		bValid;
	BOOLEAN		bActive;
	BOOLEAN		bActivateRequestSent;

	B_UINT8		u8QueueType;//BE or rtPS
	B_UINT8		u8QueueType; /* BE or rtPS */

	UINT		uiMaxBucketSize;//maximum size of the bucket for the queue
	UINT		uiMaxBucketSize; /* maximum size of the bucket for the queue */
	UINT		uiCurrentQueueDepthOnTarget;
	UINT		uiCurrentBytesOnHost;
	UINT		uiCurrentPacketsOnHost;
@@ -255,22 +255,22 @@ typedef struct _PER_TARANG_DATA {
typedef struct _TARGET_PARAMS {
	B_UINT32 m_u32CfgVersion;

	// Scanning Related Params
	/* Scanning Related Params */
	B_UINT32 m_u32CenterFrequency;
	B_UINT32 m_u32BandAScan;
	B_UINT32 m_u32BandBScan;
	B_UINT32 m_u32BandCScan;

	// QoS Params
	B_UINT32 m_u32minGrantsize;	// size of minimum grant is 0 or 6
	/* QoS Params */
	B_UINT32 m_u32minGrantsize;	/* size of minimum grant is 0 or 6 */
	B_UINT32 m_u32PHSEnable;

	// HO Params
	/* HO Params */
	B_UINT32 m_u32HoEnable;
	B_UINT32 m_u32HoReserved1;
	B_UINT32 m_u32HoReserved2;

	// Power Control Params
	/* Power Control Params */
	B_UINT32 m_u32MimoEnable;
	B_UINT32 m_u32SecurityEnable;
	/*
@@ -279,22 +279,23 @@ typedef struct _TARGET_PARAMS {
	 */
	B_UINT32 m_u32PowerSavingModesEnable;
	/* PowerSaving Mode Options:
	   bit 0 = 1: CPE mode - to keep pcmcia if alive;
	   bit 1 = 1: CINR reporing in Idlemode Msg
	   bit 2 = 1: Default PSC Enable in sleepmode*/
	 * bit 0 = 1: CPE mode - to keep pcmcia if alive;
	 * bit 1 = 1: CINR reporing in Idlemode Msg
	 * bit 2 = 1: Default PSC Enable in sleepmode
	 */
	B_UINT32 m_u32PowerSavingModeOptions;

	B_UINT32 m_u32ArqEnable;

	// From Version #3, the HARQ section renamed as general
	/* From Version #3, the HARQ section renamed as general */
	B_UINT32 m_u32HarqEnable;
	// EEPROM Param Location
	/* EEPROM Param Location */
	B_UINT32 m_u32EEPROMFlag;
	/* BINARY TYPE - 4th MSByte:
	 * Interface Type -  3rd MSByte:
	 * Vendor Type - 2nd MSByte
	 */
	// Unused - LSByte
	/* Unused - LSByte */
	B_UINT32 m_u32Customize;
	B_UINT32 m_u32ConfigBW;  /* In Hz */
	B_UINT32 m_u32ShutDownTimer;
@@ -315,7 +316,7 @@ typedef struct _TARGET_PARAMS {
	B_UINT32 m_u32MaxMACDataperULFrame;
	B_UINT32 m_u32Corr2MacFlags;

	//adding driver params.
	/* adding driver params. */
	B_UINT32 HostDrvrConfig1;
	B_UINT32 HostDrvrConfig2;
	B_UINT32 HostDrvrConfig3;
@@ -324,8 +325,9 @@ typedef struct _TARGET_PARAMS {
	B_UINT32 HostDrvrConfig6;
	B_UINT32 m_u32SegmentedPUSCenable;

	//	BAMC enable - but 4.x does not support this feature
	//	This is added just to sync 4.x and 5.x CFGs
	/* BAMC enable - but 4.x does not support this feature
	 * This is added just to sync 4.x and 5.x CFGs
	 */
	B_UINT32 m_u32BandAMCEnable;
} STARGETPARAMS, *PSTARGETPARAMS;
#endif
@@ -340,8 +342,8 @@ typedef INT (*FP_FLASH_WRITE)(struct _MINI_ADAPTER *, UINT, PVOID);

typedef INT (*FP_FLASH_WRITE_STATUS)(struct _MINI_ADAPTER *, UINT, PVOID);

/**
   Driver adapter data structure
/*
 * Driver adapter data structure
 */
struct _MINI_ADAPTER {
	struct _MINI_ADAPTER	*next;
@@ -365,14 +367,15 @@ struct _MINI_ADAPTER {
	spinlock_t		control_queue_lock;
	wait_queue_head_t	process_read_wait_queue;

	// the pointer to the first packet we have queued in send
	// deserialized miniport support variables
	/* the pointer to the first packet we have queued in send
	 * deserialized miniport support variables
	 */
	atomic_t		TotalPacketCount;
	atomic_t		TxPktAvail;

	// this to keep track of the Tx and Rx MailBox Registers.
	/* this to keep track of the Tx and Rx MailBox Registers. */
	atomic_t		CurrNumFreeTxDesc;
	// to keep track the no of byte received
	/* to keep track the no of byte received */
	USHORT			PrevNumRecvDescs;
	USHORT			CurrNumRecvDescs;
	UINT			u32TotalDSD;
@@ -459,7 +462,7 @@ struct _MINI_ADAPTER {
	BOOLEAN			bShutStatus;
	BOOLEAN			bWakeUpDevice;
	unsigned int		usIdleModePattern;
	//BOOLEAN			bTriedToWakeUpFromShutdown;
	/* BOOLEAN			bTriedToWakeUpFromShutdown; */
	BOOLEAN			bLinkDownRequested;
	int			downloadDDR;
	PHS_DEVICE_EXTENSION	stBCMPhsContext;
@@ -481,8 +484,9 @@ struct _MINI_ADAPTER {
	BOOLEAN			bStatusWrite;
	UINT			uiNVMDSDSize;
	UINT			uiVendorExtnFlag;
	//it will always represent chosen DSD at any point of time.
	// Generally it is Active DSD but in case of NVM RD/WR it might be different.
	/* it will always represent chosen DSD at any point of time.
	 * Generally it is Active DSD but in case of NVM RD/WR it might be different.
	 */
	UINT			ulFlashCalStart;
	ULONG			ulFlashControlSectionStart;
	ULONG			ulFlashWriteSize;
@@ -493,30 +497,30 @@ struct _MINI_ADAPTER {
	struct semaphore	NVMRdmWrmLock;
	struct device		*pstCreatedClassDevice;

	//	BOOLEAN				InterfaceUpStatus;
	/*	BOOLEAN				InterfaceUpStatus; */
	PFLASH2X_CS_INFO	psFlash2xCSInfo;
	PFLASH_CS_INFO		psFlashCSInfo;
	PFLASH2X_VENDORSPECIFIC_INFO psFlash2xVendorInfo;
	UINT			uiFlashBaseAdd; //Flash start address
	UINT			uiActiveISOOffset; //Active ISO offset chosen before f/w download
	FLASH2X_SECTION_VAL	eActiveISO; //Active ISO section val
	FLASH2X_SECTION_VAL	eActiveDSD;	//Active DSD val chosen before f/w download
	UINT			uiActiveDSDOffsetAtFwDld;  //For accessing Active DSD chosen before f/w download
	UINT			uiFlashBaseAdd; /* Flash start address */
	UINT			uiActiveISOOffset; /* Active ISO offset chosen before f/w download */
	FLASH2X_SECTION_VAL	eActiveISO; /* Active ISO section val */
	FLASH2X_SECTION_VAL	eActiveDSD;	/* Active DSD val chosen before f/w download */
	UINT			uiActiveDSDOffsetAtFwDld;  /* For accessing Active DSD chosen before f/w download */
	UINT			uiFlashLayoutMajorVersion;
	UINT			uiFlashLayoutMinorVersion;
	BOOLEAN			bAllDSDWriteAllow;
	BOOLEAN			bSigCorrupted;
	//this should be set who so ever want to change the Headers. after Wrtie it should be reset immediately.
	/* this should be set who so ever want to change the Headers. after Wrtie it should be reset immediately. */
	BOOLEAN			bHeaderChangeAllowed;
	INT			SelectedChip;
	BOOLEAN			bEndPointHalted;
	//while bFlashRawRead will be true, Driver  ignore map lay out and consider flash as of without any map.
	/* while bFlashRawRead will be true, Driver  ignore map lay out and consider flash as of without any map. */
	BOOLEAN			bFlashRawRead;
	BOOLEAN			bPreparingForLowPowerMode;
	BOOLEAN			bDoSuspend;
	UINT			syscfgBefFwDld;
	BOOLEAN			StopAllXaction;
	UINT32			liTimeSinceLastNetEntry; //Used to Support extended CAPI requirements from
	UINT32			liTimeSinceLastNetEntry; /* Used to Support extended CAPI requirements from */
	struct semaphore	LowPowerModeSync;
	ULONG			liDrainCalculated;
	UINT			gpioBitMap;
@@ -539,7 +543,7 @@ typedef struct FirmwareInfo {
	ULONG	u32StartingAddress;
} __attribute__((packed)) FIRMWARE_INFO, *PFIRMWARE_INFO;

// holds the value of net_device structure..
/* holds the value of net_device structure.. */
extern struct net_device *gblpnetdev;
typedef struct _cntl_pkt {
	PMINI_ADAPTER	Adapter;
@@ -554,9 +558,10 @@ typedef struct _DDR_SETTING {
typedef DDR_SETTING DDR_SET_NODE, *PDDR_SET_NODE;
INT InitAdapter(PMINI_ADAPTER psAdapter);

// =====================================================================
// Beceem vendor request codes for EP0
// =====================================================================
/* =====================================================================
 * Beceem vendor request codes for EP0
 * =====================================================================
 */

#define BCM_REQUEST_READ	0x2
#define BCM_REQUEST_WRITE	0x1
@@ -587,4 +592,4 @@ typedef enum eInterface_setting {
	ALTERNATE_SETTING_1 = 1,
} INTERFACE_SETTING;

#endif	//__ADAPTER_H__
#endif	/* __ADAPTER_H__ */