Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235778
b: refs/heads/master
c: 4853ac0
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Feb 2, 2011
1 parent e3a7c27 commit 91623ca
Show file tree
Hide file tree
Showing 49 changed files with 473 additions and 477 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab3655dae4948a82a3be52681af0b778ead2c0ff
refs/heads/master: 4853ac05cff7745979830c52fe6fb46a7be6fa94
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/hif/common/hif_sdio_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define HIF_DEFAULT_IO_BLOCK_SIZE 128

/* set extended MBOX window information for SDIO interconnects */
static INLINE void SetExtendedMboxWindowInfo(A_UINT16 Manfid, HIF_DEVICE_MBOX_INFO *pInfo)
static INLINE void SetExtendedMboxWindowInfo(u16 Manfid, HIF_DEVICE_MBOX_INFO *pInfo)
{
switch (Manfid & MANUFACTURER_ID_AR6K_BASE_MASK) {
case MANUFACTURER_ID_AR6002_BASE :
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ int ReinitSDIO(HIF_DEVICE *device)
do {
if (!device->is_suspend) {
A_UINT32 resp;
A_UINT16 rca;
u16 rca;
A_UINT32 i;
int bit = fls(host->ocr_avail) - 1;
/* emulate the mmc_power_up(...) */
Expand Down Expand Up @@ -711,7 +711,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode,
}

if (configLen >= sizeof(HIF_DEVICE_MBOX_INFO)) {
SetExtendedMboxWindowInfo((A_UINT16)device->func->device,
SetExtendedMboxWindowInfo((u16)device->func->device,
(HIF_DEVICE_MBOX_INFO *)config);
}

Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,24 +1042,24 @@ static void AssembleBufferList(BUFFER_PROC_LIST *pList)
#define FILL_COUNTING false
static void InitBuffers(bool Zero)
{
A_UINT16 *pBuffer16 = (A_UINT16 *)g_Buffer;
u16 *pBuffer16 = (u16 *)g_Buffer;
int i;

/* fill buffer with 16 bit counting pattern or zeros */
for (i = 0; i < (TOTAL_BYTES / 2) ; i++) {
if (!Zero) {
pBuffer16[i] = (A_UINT16)i;
pBuffer16[i] = (u16)i;
} else {
pBuffer16[i] = 0;
}
}
}


static bool CheckOneBuffer(A_UINT16 *pBuffer16, int Length)
static bool CheckOneBuffer(u16 *pBuffer16, int Length)
{
int i;
A_UINT16 startCount;
u16 startCount;
bool success = true;

/* get the starting count */
Expand All @@ -1069,10 +1069,10 @@ static bool CheckOneBuffer(A_UINT16 *pBuffer16, int Length)
/* scan the buffer and verify */
for (i = 0; i < (Length / 2) ; i++,startCount++) {
/* target will invert all the data */
if ((A_UINT16)pBuffer16[i] != (A_UINT16)~startCount) {
if ((u16)pBuffer16[i] != (u16)~startCount) {
success = false;
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Invalid Data Got:0x%X, Expecting:0x%X (offset:%d, total:%d) \n",
pBuffer16[i], ((A_UINT16)~startCount), i, Length));
pBuffer16[i], ((u16)~startCount), i, Length));
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("0x%X 0x%X 0x%X 0x%X \n",
pBuffer16[i], pBuffer16[i + 1], pBuffer16[i + 2],pBuffer16[i+3]));
break;
Expand All @@ -1093,7 +1093,7 @@ static bool CheckBuffers(void)

/* scan the buffers and verify */
for (i = 0; i < BUFFER_PROC_LIST_DEPTH ; i++) {
success = CheckOneBuffer((A_UINT16 *)checkList[i].pBuffer, checkList[i].length);
success = CheckOneBuffer((u16 *)checkList[i].pBuffer, checkList[i].length);
if (!success) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Buffer : 0x%X, Length:%d failed verify \n",
(A_UINT32)checkList[i].pBuffer, checkList[i].length));
Expand All @@ -1105,7 +1105,7 @@ static bool CheckBuffers(void)
}

/* find the end marker for the last buffer we will be sending */
static A_UINT16 GetEndMarker(void)
static u16 GetEndMarker(void)
{
u8 *pBuffer;
BUFFER_PROC_LIST checkList[BUFFER_PROC_LIST_DEPTH];
Expand All @@ -1119,7 +1119,7 @@ static A_UINT16 GetEndMarker(void)
pBuffer = &(checkList[BUFFER_PROC_LIST_DEPTH - 1].pBuffer[(checkList[BUFFER_PROC_LIST_DEPTH - 1].length) - 2]);

/* the last count in the last buffer is the marker */
return (A_UINT16)pBuffer[0] | ((A_UINT16)pBuffer[1] << 8);
return (u16)pBuffer[0] | ((u16)pBuffer[1] << 8);
}

#define ATH_PRINT_OUT_ZONE ATH_DEBUG_ERR
Expand Down Expand Up @@ -1338,7 +1338,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
u8 params[4];
int numBufs;
int bufferSize;
A_UINT16 temp;
u16 temp;


AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, (" DoMboxHWTest START - \n"));
Expand Down Expand Up @@ -1401,7 +1401,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
}

numBufs = params[0];
bufferSize = (int)(((A_UINT16)params[2] << 8) | (A_UINT16)params[1]);
bufferSize = (int)(((u16)params[2] << 8) | (u16)params[1]);

AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE,
("Target parameters: bufs per mailbox:%d, buffer size:%d bytes (total space: %d, minimum required space (w/padding): %d) \n",
Expand Down Expand Up @@ -1430,7 +1430,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)

AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, ("End Marker: 0x%X \n",temp));

temp = (A_UINT16)g_BlockSizes[1];
temp = (u16)g_BlockSizes[1];
/* convert to a mask */
temp = temp - 1;
status = HIFReadWrite(pDev->HIFDevice,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/htc2/htc_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void HTCFlushSendPkts(HTC_TARGET *target);
#ifdef ATH_DEBUG_MODULE
void DumpCreditDist(HTC_ENDPOINT_CREDIT_DIST *pEPDist);
void DumpCreditDistStates(HTC_TARGET *target);
void DebugDumpBytes(A_UCHAR *buffer, A_UINT16 length, char *pDescription);
void DebugDumpBytes(A_UCHAR *buffer, u16 length, char *pDescription);
#endif

static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
Expand All @@ -203,7 +203,7 @@ static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
u8 *pHdrBuf; \
(pP)->pBuffer -= HTC_HDR_LENGTH; \
pHdrBuf = (pP)->pBuffer; \
A_SET_UINT16_FIELD(pHdrBuf,HTC_FRAME_HDR,PayloadLen,(A_UINT16)(pP)->ActualLength); \
A_SET_UINT16_FIELD(pHdrBuf,HTC_FRAME_HDR,PayloadLen,(u16)(pP)->ActualLength); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,Flags,(sendflags)); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,EndpointID, (u8)(pP)->Endpoint); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,ControlBytes[0], (u8)(ctrl0)); \
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/htc2/htc_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static int HTCProcessRecvHeader(HTC_TARGET *target,
u8 temp;
u8 *pBuf;
int status = A_OK;
A_UINT16 payloadLen;
u16 payloadLen;
A_UINT32 lookAhead;

pBuf = pPacket->pBuffer;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/include/a_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extern "C" {
/* macro to make a module-specific masks */
#define ATH_DEBUG_MAKE_MODULE_MASK(index) (1 << (ATH_DEBUG_MODULE_MASK_SHIFT + (index)))

void DebugDumpBytes(A_UCHAR *buffer, A_UINT16 length, char *pDescription);
void DebugDumpBytes(A_UCHAR *buffer, u16 length, char *pDescription);

/* Debug support on a per-module basis
*
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/ath6kl/include/aggr_recv_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extern "C" {

typedef void (* RX_CALLBACK)(void * dev, void *osbuf);

typedef void (* ALLOC_NETBUFS)(A_NETBUF_QUEUE_T *q, A_UINT16 num);
typedef void (* ALLOC_NETBUFS)(A_NETBUF_QUEUE_T *q, u16 num);

/*
* aggr_init:
Expand Down Expand Up @@ -64,7 +64,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn);
* up to the indicated sequence number.
*/
void
aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no);
aggr_process_bar(void *cntxt, u8 tid, u16 seq_no);


/*
Expand All @@ -82,7 +82,7 @@ aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no);
* in hold_q to OS.
*/
void
aggr_recv_addba_req_evt(void * cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz);
aggr_recv_addba_req_evt(void * cntxt, u8 tid, u16 seq_no, u8 win_sz);


/*
Expand All @@ -108,7 +108,7 @@ aggr_recv_delba_req_evt(void * cntxt, u8 tid);
* callback may be called to deliver frames in order.
*/
void
aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf);
aggr_process_recv_frm(void *cntxt, u8 tid, u16 seq_no, bool is_amsdu, void **osbuf);


/*
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/ath6kl/include/ar3kconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ typedef struct {
HIF_DEVICE *pHIFDevice; /* HIF layer device */

A_UINT32 AR3KBaudRate; /* AR3K operational baud rate */
A_UINT16 AR6KScale; /* AR6K UART scale value */
A_UINT16 AR6KStep; /* AR6K UART step value */
u16 AR6KScale; /* AR6K UART scale value */
u16 AR6KStep; /* AR6K UART step value */
struct hci_dev *pBtStackHCIDev; /* BT Stack HCI dev */
A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */
A_UINT16 IdleTimeout; /* TLPM idle timeout */
A_UINT16 WakeupTimeout; /* TLPM wakeup timeout */
u16 IdleTimeout; /* TLPM idle timeout */
u16 WakeupTimeout; /* TLPM wakeup timeout */
u8 bdaddr[6]; /* Bluetooth device address */
} AR3K_CONFIG_INFO;

Expand Down
Loading

0 comments on commit 91623ca

Please sign in to comment.