svn commit: r238731 - in head/sys/dev/ath: . ath_hal

Adrian Chadd adrian at FreeBSD.org
Tue Jul 24 01:18:20 UTC 2012


Author: adrian
Date: Tue Jul 24 01:18:19 2012
New Revision: 238731
URL: http://svn.freebsd.org/changeset/base/238731

Log:
  Add a new HAL method - the AR93xx and later NICs have a separate
  TX descriptor ring for TX status completion. This API call will pass
  the allocated buffer details to the HAL.

Modified:
  head/sys/dev/ath/ath_hal/ah.h
  head/sys/dev/ath/if_athvar.h

Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h	Tue Jul 24 01:09:11 2012	(r238730)
+++ head/sys/dev/ath/ath_hal/ah.h	Tue Jul 24 01:18:19 2012	(r238731)
@@ -1090,6 +1090,9 @@ struct ath_hal {
 				uint32_t *link);
 	void	  __ahdecl(*ah_getTxDescLinkPtr)(struct ath_hal *ah, void *ds,
 				uint32_t **linkptr);
+	void	  __ahdecl(*ah_setupTxStatusRing)(struct ath_hal *,
+				void *ts_start, uint32_t ts_paddr_start,
+				uint16_t size);
 
 	/* Receive Functions */
 	uint32_t __ahdecl(*ah_getRxDP)(struct ath_hal*, HAL_RX_QUEUE);

Modified: head/sys/dev/ath/if_athvar.h
==============================================================================
--- head/sys/dev/ath/if_athvar.h	Tue Jul 24 01:09:11 2012	(r238730)
+++ head/sys/dev/ath/if_athvar.h	Tue Jul 24 01:18:19 2012	(r238731)
@@ -1099,6 +1099,9 @@ void	ath_intr(void *);
 	((*(_ah)->ah_getTxDescLink)((_ah), (_ds), (_link)))
 #define ath_hal_gettxdesclinkptr(_ah, _ds, _linkptr) \
 	((*(_ah)->ah_getTxDescLinkPtr)((_ah), (_ds), (_linkptr)))
+#define	ath_hal_setuptxstatusring(_ah, _tsstart, _tspstart, _size) \
+	((*(_ah)->ah_setupTxStatusRing)((_ah), (_tsstart), (_tspstart), \
+		(_size)))
 
 #define	ath_hal_setupfirsttxdesc(_ah, _ds, _aggrlen, _flags, _txpower, \
 		_txr0, _txtr0, _antm, _rcr, _rcd) \


More information about the svn-src-all mailing list