| Index: chromeos/drivers/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
|
| diff --git a/chromeos/drivers/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c b/chromeos/drivers/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
|
| index da25d3b00534fb4f8cf80689f49b2e7c6b450e59..db6d30c113b0abf1629f6107ac8595b549b50de5 100644
|
| --- a/chromeos/drivers/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
|
| +++ b/chromeos/drivers/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
|
| @@ -1,15 +1,19 @@
|
| //------------------------------------------------------------------------------
|
| // <copyright file="ar6k_prot_hciUart.c" company="Atheros">
|
| -// Copyright (c) 2007-2008 Atheros Corporation. All rights reserved.
|
| +// Copyright (c) 2007-2010 Atheros Corporation. All rights reserved.
|
| //
|
| -// This program is free software; you can redistribute it and/or modify
|
| -// it under the terms of the GNU General Public License version 2 as
|
| -// published by the Free Software Foundation;
|
| //
|
| -// Software distributed under the License is distributed on an "AS
|
| -// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
| -// implied. See the License for the specific language governing
|
| -// rights and limitations under the License.
|
| +// Permission to use, copy, modify, and/or distribute this software for any
|
| +// purpose with or without fee is hereby granted, provided that the above
|
| +// copyright notice and this permission notice appear in all copies.
|
| +//
|
| +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
| +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
| +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
| +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| //
|
| //
|
| //------------------------------------------------------------------------------
|
| @@ -79,14 +83,14 @@ typedef struct {
|
| #define UNLOCK_HCI_TX(t) A_MUTEX_UNLOCK(&(t)->HCITxLock);
|
|
|
| #define DO_HCI_RECV_INDICATION(p,pt) \
|
| -{ AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("HCI: Indicate Recv on packet:0x%X status:%d len:%d type:%d \n", \
|
| - (A_UINT32)(pt),(pt)->Status, A_SUCCESS((pt)->Status) ? (pt)->ActualLength : 0, HCI_GET_PACKET_TYPE(pt))); \
|
| +{ AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("HCI: Indicate Recv on packet:0x%lX status:%d len:%d type:%d \n", \
|
| + (unsigned long)(pt),(pt)->Status, A_SUCCESS((pt)->Status) ? (pt)->ActualLength : 0, HCI_GET_PACKET_TYPE(pt))); \
|
| (p)->HCIConfig.pHCIPktRecv((p)->HCIConfig.pContext, (pt)); \
|
| }
|
|
|
| #define DO_HCI_SEND_INDICATION(p,pt) \
|
| -{ AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: Indicate Send on packet:0x%X status:%d type:%d \n", \
|
| - (A_UINT32)(pt),(pt)->Status,HCI_GET_PACKET_TYPE(pt))); \
|
| +{ AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: Indicate Send on packet:0x%lX status:%d type:%d \n", \
|
| + (unsigned long)(pt),(pt)->Status,HCI_GET_PACKET_TYPE(pt))); \
|
| (p)->HCIConfig.pHCISendComplete((p)->HCIConfig.pContext, (pt)); \
|
| }
|
|
|
| @@ -526,11 +530,11 @@ static A_STATUS HCIUartMessagePending(void *pContext, A_UINT8 LookAheadBytes[],
|
| static void HCISendPacketCompletion(void *Context, HTC_PACKET *pPacket)
|
| {
|
| GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)Context;
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion (pPacket:0x%X) \n",(A_UINT32)pPacket));
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion (pPacket:0x%lX) \n",(unsigned long)pPacket));
|
|
|
| if (A_FAILED(pPacket->Status)) {
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_ERR,(" Send Packet (0x%X) failed: %d , len:%d \n",
|
| - (A_UINT32)pPacket, pPacket->Status, pPacket->ActualLength));
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_ERR,(" Send Packet (0x%lX) failed: %d , len:%d \n",
|
| + (unsigned long)pPacket, pPacket->Status, pPacket->ActualLength));
|
| }
|
|
|
| DO_HCI_SEND_INDICATION(pProt,pPacket);
|
| @@ -578,7 +582,7 @@ static A_STATUS HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, A_B
|
| A_UINT8 hciUartType;
|
| A_BOOL synchSendComplete = FALSE;
|
|
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCITrySend (pPacket:0x%X) %s \n",(A_UINT32)pPacket,
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCITrySend (pPacket:0x%lX) %s \n",(unsigned long)pPacket,
|
| Synchronous ? "SYNC" :"ASYNC"));
|
|
|
| LOCK_HCI_TX(pProt);
|
| @@ -671,8 +675,8 @@ static A_STATUS HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, A_B
|
| break;
|
| }
|
|
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: Got head packet:0x%X , Type:%d Length: %d Remaining Queue Depth: %d\n",
|
| - (A_UINT32)pPacket, HCI_GET_PACKET_TYPE(pPacket), pPacket->ActualLength,
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: Got head packet:0x%lX , Type:%d Length: %d Remaining Queue Depth: %d\n",
|
| + (unsigned long)pPacket, HCI_GET_PACKET_TYPE(pPacket), pPacket->ActualLength,
|
| HTC_PACKET_QUEUE_DEPTH(&pProt->SendQueue)));
|
|
|
| transferLength = 1; /* UART type header is 1 byte */
|
| @@ -709,8 +713,8 @@ static A_STATUS HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, A_B
|
| /* provide a hint to reduce attempts to re-send if credits are dribbling back
|
| * this hint is the short fall of credits */
|
| pProt->CreditsCurrentSeek = creditsRequired;
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: packet:0x%X placed back in queue. head packet needs: %d credits \n",
|
| - (A_UINT32)pPacket, pProt->CreditsCurrentSeek));
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: packet:0x%lX placed back in queue. head packet needs: %d credits \n",
|
| + (unsigned long)pPacket, pProt->CreditsCurrentSeek));
|
| pPacket = NULL;
|
| UNLOCK_HCI_TX(pProt);
|
|
|
| @@ -968,7 +972,7 @@ HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_I
|
| NotifyTransportReady(pProtocol);
|
| }
|
|
|
| - AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("-HCI_TransportAttach (0x%X) \n",(A_UINT32)pProtocol));
|
| + AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("-HCI_TransportAttach (0x%lX) \n",(unsigned long)pProtocol));
|
| return (HCI_TRANSPORT_HANDLE)pProtocol;
|
| }
|
|
|
|
|