X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=ath9k_htc%2Ftarget_firmware%2Fmagpie_fw_dev%2Ftarget%2Fhtc%2Fhtc_internal.h;h=e2951d5f6b75365e121bb44685c623b73208708e;hp=241bb033fd4087bf5f11ba6a55b09bb63d78ad0c;hb=1ba1a88647bfe113c885f985d6e383790dec2a1f;hpb=6e823d0b6ee854eaf5f0bf28a099a5e6b7c45be2 diff --git a/ath9k_htc/target_firmware/magpie_fw_dev/target/htc/htc_internal.h b/ath9k_htc/target_firmware/magpie_fw_dev/target/htc/htc_internal.h index 241bb03..e2951d5 100755 --- a/ath9k_htc/target_firmware/magpie_fw_dev/target/htc/htc_internal.h +++ b/ath9k_htc/target_firmware/magpie_fw_dev/target/htc/htc_internal.h @@ -33,11 +33,11 @@ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* - * @File: - * + * @File: + * * @Abstract: internal data and structure definitions for HTC - * - * @Notes: + * + * @Notes: */ #ifndef HTC_INTERNAL_H_ @@ -49,7 +49,7 @@ (sizeof(HTC_RECORD_HDR)) * 2 ) + \ HTC_HDR_LENGTH, \ sizeof(A_UINT32))) -/* minimum allocation for a credit message */ +/* minimum allocation for a credit message */ #define MIN_CREDIT_BUFFER_ALLOC_SIZE (MIN_BUF_SIZE_FOR_RPTS) /* max ctrl buffers size for a setup message */ @@ -62,14 +62,14 @@ #define HTC_DEFAULT_MAX_EP_PENDING_CREDIT_REPORTS 3 /* an EP should not have more than this many outstanding reports */ -#define HTC_FLAGS_CRPT_EP_MASK 0x1F /* if the message is a credit report this is the endpoint +#define HTC_FLAGS_CRPT_EP_MASK 0x1F /* if the message is a credit report this is the endpoint that issued it */ #define HTC_FLAGS_CREDIT_RPT (1 << 5) /* the buffer was a credit report */ #define HTC_FLAGS_BUF_HDR (1 << 6) /* the buffer was manipulated and a header added */ #define HTC_FLAGS_RECV_END_MSG (1 << 7) /* this buffer is the last buffer for the recev - message (used for recv pause logic) */ - + message (used for recv pause logic) */ + #define HTC_MAILBOX 0 /* we use mailbox 0 for all communications */ #define HTC_ANY_ENDPOINT_MASK 0xFFFFFFFF #define HTC_LOOKAHEAD_POST_VALID 0x55 @@ -79,14 +79,14 @@ typedef struct _HTC_ENDPOINT { A_INT16 CreditsToReturn; /* credits that are ready to be returned to the host */ HTC_SERVICE *pService; /* service that is bound to this endpoint */ -#ifdef HTC_PAUSE_RESUME_REF_COUNTING +#ifdef HTC_PAUSE_RESUME_REF_COUNTING int PauseRefCount; /* reference count */ #endif A_INT16 CreditReturnThreshhold; /* threshold before credits are returned via NULL pkts, - this reduces dribbling effect */ - A_INT16 CreditsConsumed; /* number of credits consumed (outstanding) on the endpoint */ - A_UINT16 ConnectionFlags; /* HTC connection flags */ - int PendingCreditReports; /* no. of pending credit reports issued by this endpoint */ + this reduces dribbling effect */ + A_INT16 CreditsConsumed; /* number of credits consumed (outstanding) on the endpoint */ + A_UINT16 ConnectionFlags; /* HTC connection flags */ + int PendingCreditReports; /* no. of pending credit reports issued by this endpoint */ A_UINT8 DownLinkPipeID; /* The pipe ID to be use for the direction: target -> host */ A_UINT8 UpLinkPipeID; /* The pipe ID to be use for the direction: host -> target */ } HTC_ENDPOINT; @@ -113,7 +113,7 @@ typedef struct _HTC_CONTEXT { pool_handle_t PoolHandle; // Left a door for extension the structure - void *pReserved; + void *pReserved; } HTC_CONTEXT; #define HTC_STATE_SETUP_COMPLETE (1 << 0) /* HTC host-target setup is complete */