| OLD | NEW |
| 1 /* | 1 //------------------------------------------------------------------------------ |
| 2 * | 2 // Copyright (c) 2004-2010 Atheros Communications Inc. |
| 3 * Copyright (c) 2004-2007 Atheros Communications Inc. | 3 // All rights reserved. |
| 4 * All rights reserved. | |
| 5 * | |
| 6 * | |
| 7 // This program is free software; you can redistribute it and/or modify | |
| 8 // it under the terms of the GNU General Public License version 2 as | |
| 9 // published by the Free Software Foundation; | |
| 10 // | 4 // |
| 11 // Software distributed under the License is distributed on an "AS | 5 // |
| 12 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 6 // |
| 13 // implied. See the License for the specific language governing | 7 // Permission to use, copy, modify, and/or distribute this software for any |
| 14 // rights and limitations under the License. | 8 // purpose with or without fee is hereby granted, provided that the above |
| 9 // copyright notice and this permission notice appear in all copies. |
| 10 // |
| 11 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 12 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 13 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 14 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 15 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 16 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 17 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 // | 18 // |
| 16 // | 19 // |
| 17 * | 20 // |
| 18 */ | 21 // Author(s): ="Atheros" |
| 22 //------------------------------------------------------------------------------ |
| 19 | 23 |
| 20 #include "ar6000_drv.h" | 24 #include "ar6000_drv.h" |
| 21 | 25 |
| 22 #ifdef HTC_RAW_INTERFACE | 26 #ifdef HTC_RAW_INTERFACE |
| 23 | 27 |
| 24 static void | 28 static void |
| 25 ar6000_htc_raw_read_cb(void *Context, HTC_PACKET *pPacket) | 29 ar6000_htc_raw_read_cb(void *Context, HTC_PACKET *pPacket) |
| 26 { | 30 { |
| 27 AR_SOFTC_T *ar = (AR_SOFTC_T *)Context; | 31 AR_SOFTC_T *ar = (AR_SOFTC_T *)Context; |
| 28 raw_htc_buffer *busy; | 32 raw_htc_buffer *busy; |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 AR6K_DATA_PKT_TAG); | 446 AR6K_DATA_PKT_TAG); |
| 443 | 447 |
| 444 HTCSendPkt(ar->arHtcTarget,&free->HTCPacket); | 448 HTCSendPkt(ar->arHtcTarget,&free->HTCPacket); |
| 445 | 449 |
| 446 arRaw->write_buffer_available[StreamID] = FALSE; | 450 arRaw->write_buffer_available[StreamID] = FALSE; |
| 447 up(&arRaw->raw_htc_write_sem[StreamID]); | 451 up(&arRaw->raw_htc_write_sem[StreamID]); |
| 448 | 452 |
| 449 return length; | 453 return length; |
| 450 } | 454 } |
| 451 #endif /* HTC_RAW_INTERFACE */ | 455 #endif /* HTC_RAW_INTERFACE */ |
| OLD | NEW |