1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2004 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c 238607 2012-07-19 02:25:14Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_desc.h" 24 25#include "ar5210/ar5210.h" --- 599 unchanged lines hidden (view full) --- 625/* 626 * Retrieve the rate table from the given TX completion descriptor 627 */ 628HAL_BOOL 629ar5210GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) 630{ 631 return AH_FALSE; 632} |
633 634/* 635 * Set the TX descriptor link pointer 636 */ 637void 638ar5210SetTxDescLink(struct ath_hal *ah, void *ds, uint32_t link) 639{ 640 struct ar5210_desc *ads = AR5210DESC(ds); 641 642 ads->ds_link = link; 643} 644 645/* 646 * Get the TX descriptor link pointer 647 */ 648void 649ar5210GetTxDescLink(struct ath_hal *ah, void *ds, uint32_t *link) 650{ 651 struct ar5210_desc *ads = AR5210DESC(ds); 652 653 *link = ads->ds_link; 654} 655 656/* 657 * Get a pointer to the TX descriptor link pointer 658 */ 659void 660ar5210GetTxDescLinkPtr(struct ath_hal *ah, void *ds, uint32_t **linkptr) 661{ 662 struct ar5210_desc *ads = AR5210DESC(ds); 663 664 *linkptr = &ads->ds_link; 665} |