Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 12:08:49 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238843 - head/sys/dev/ath/ath_hal
Message-ID:  <201207271208.q6RC8n3h003512@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Jul 27 12:08:49 2012
New Revision: 238843
URL: http://svn.freebsd.org/changeset/base/238843

Log:
  Tidy up the TX status fields a little and add a couple new flags.
  
  * shuffle things around so things fall on natural padding boundaries;
  * add a couple of new flags to specify LDPC and whether to switch to the
    low power RX chain configuration after this TX has completed.
  
  Obtained from:	Qualcomm Atheros

Modified:
  head/sys/dev/ath/ath_hal/ah_desc.h

Modified: head/sys/dev/ath/ath_hal/ah_desc.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_desc.h	Fri Jul 27 11:54:05 2012	(r238842)
+++ head/sys/dev/ath/ath_hal/ah_desc.h	Fri Jul 27 12:08:49 2012	(r238843)
@@ -57,16 +57,19 @@ struct ath_tx_status {
 	uint8_t		ts_finaltsi;	/* final transmit series index */
 #ifdef AH_SUPPORT_AR5416
 					/* 802.11n status */
-	uint8_t    	ts_flags;   	/* misc flags */
-	int8_t      	ts_rssi_ctl[3];	/* tx ack RSSI [ctl, chain 0-2] */
-	int8_t      	ts_rssi_ext[3];	/* tx ack RSSI [ext, chain 0-2] */
-/* #define ts_rssi ts_rssi_combined */
-	uint32_t   	ts_ba_low;	/* blockack bitmap low */
-	uint32_t   	ts_ba_high;	/* blockack bitmap high */
+	uint8_t		ts_flags;	/* misc flags */
+	uint8_t		ts_queue_id;	/* AR9300: TX queue id */
+	uint8_t		ts_desc_id;	/* AR9300: TX descriptor id */
 	uint8_t		ts_tid;		/* TID */
-	uint32_t  	ts_evm0;	/* evm bytes */
-	uint32_t   	ts_evm1;
-	uint32_t   	ts_evm2;
+/* #define ts_rssi ts_rssi_combined */
+	uint32_t	ts_ba_low;	/* blockack bitmap low */
+	uint32_t	ts_ba_high;	/* blockack bitmap high */
+	uint32_t	ts_evm0;	/* evm bytes */
+	uint32_t	ts_evm1;
+	uint32_t	ts_evm2;
+	int8_t		ts_rssi_ctl[3];	/* tx ack RSSI [ctl, chain 0-2] */
+	int8_t		ts_rssi_ext[3];	/* tx ack RSSI [ext, chain 0-2] */
+	uint8_t		ts_pad[2];
 #endif /* AH_SUPPORT_AR5416 */
 };
 
@@ -243,6 +246,8 @@ struct ath_desc_status {
 #define	HAL_TXDESC_EXT_ONLY	0x0080	/* send on ext channel only (11n) */
 #define	HAL_TXDESC_EXT_AND_CTL	0x0100	/* send on ext + ctl channels (11n) */
 #define	HAL_TXDESC_VMF		0x0200	/* virtual more frag */
+#define	HAL_TXDESC_LOWRXCHAIN	0x0400	/* switch to low RX chain */
+#define	HAL_TXDESC_LDPC		0x1000
 
 /* flags passed to rx descriptor setup methods */
 #define	HAL_RXDESC_INTREQ	0x0020	/* enable per-descriptor interrupt */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207271208.q6RC8n3h003512>