Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236375
b: refs/heads/master
c: d8cb316
h: refs/heads/master
i:
  236373: 28ae03c
  236371: 3511e9f
  236367: 982c012
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Greg Kroah-Hartman committed Mar 11, 2011
1 parent 0a61c35 commit 5112bb9
Show file tree
Hide file tree
Showing 30 changed files with 164 additions and 172 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: 395e1cae85283f7bbe767097d78b5e3baa13b131
refs/heads/master: d8cb316fdc64fefbb7bd00f16dc8d1bdce24c2d3
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/bmi/include/bmi_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ static bool bmiDone;

int
bmiBufferSend(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
bmiBufferReceive(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
bool want_timeout);

Expand Down
34 changes: 17 additions & 17 deletions trunk/drivers/staging/ath6kl/bmi/src/bmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ very simple.

static bool pendingEventsFuncCheck = false;
static u32 *pBMICmdCredits;
static A_UCHAR *pBMICmdBuf;
static u8 *pBMICmdBuf;
#define MAX_BMI_CMDBUF_SZ (BMI_DATASZ_MAX + \
sizeof(u32) /* cmd */ + \
sizeof(u32) /* addr */ + \
Expand Down Expand Up @@ -84,7 +84,7 @@ BMIInit(void)
}

if (!pBMICmdBuf) {
pBMICmdBuf = (A_UCHAR *)A_MALLOC_NOWAIT(MAX_BMI_CMDBUF_SZ);
pBMICmdBuf = (u8 *)A_MALLOC_NOWAIT(MAX_BMI_CMDBUF_SZ);
A_ASSERT(pBMICmdBuf);
}

Expand Down Expand Up @@ -120,7 +120,7 @@ BMIDone(HIF_DEVICE *device)
bmiDone = true;
cid = BMI_DONE;

status = bmiBufferSend(device, (A_UCHAR *)&cid, sizeof(cid));
status = bmiBufferSend(device, (u8 *)&cid, sizeof(cid));
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to write to the device\n"));
return A_ERROR;
Expand Down Expand Up @@ -155,13 +155,13 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)
AR_DEBUG_PRINTF(ATH_DEBUG_BMI, ("BMI Get Target Info: Enter (device: 0x%p)\n", device));
cid = BMI_GET_TARGET_INFO;

status = bmiBufferSend(device, (A_UCHAR *)&cid, sizeof(cid));
status = bmiBufferSend(device, (u8 *)&cid, sizeof(cid));
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to write to the device\n"));
return A_ERROR;
}

status = bmiBufferReceive(device, (A_UCHAR *)&targ_info->target_ver,
status = bmiBufferReceive(device, (u8 *)&targ_info->target_ver,
sizeof(targ_info->target_ver), true);
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to read Target Version from the device\n"));
Expand All @@ -170,7 +170,7 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)

if (targ_info->target_ver == TARGET_VERSION_SENTINAL) {
/* Determine how many bytes are in the Target's targ_info */
status = bmiBufferReceive(device, (A_UCHAR *)&targ_info->target_info_byte_count,
status = bmiBufferReceive(device, (u8 *)&targ_info->target_info_byte_count,
sizeof(targ_info->target_info_byte_count), true);
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to read Target Info Byte Count from the device\n"));
Expand All @@ -185,7 +185,7 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)

/* Read the remainder of the targ_info */
status = bmiBufferReceive(device,
((A_UCHAR *)targ_info)+sizeof(targ_info->target_info_byte_count),
((u8 *)targ_info)+sizeof(targ_info->target_info_byte_count),
sizeof(*targ_info)-sizeof(targ_info->target_info_byte_count), true);
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to read Target Info (%d bytes) from the device\n",
Expand All @@ -203,7 +203,7 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)
int
BMIReadMemory(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length)
{
u32 cid;
Expand Down Expand Up @@ -259,16 +259,16 @@ BMIReadMemory(HIF_DEVICE *device,
int
BMIWriteMemory(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length)
{
u32 cid;
int status;
u32 offset;
u32 remaining, txlen;
const u32 header = sizeof(cid) + sizeof(address) + sizeof(length);
A_UCHAR alignedBuffer[BMI_DATASZ_MAX];
A_UCHAR *src;
u8 alignedBuffer[BMI_DATASZ_MAX];
u8 *src;

A_ASSERT(BMI_COMMAND_FITS(BMI_DATASZ_MAX + header));
memset (pBMICmdBuf, 0, BMI_DATASZ_MAX + header);
Expand Down Expand Up @@ -647,7 +647,7 @@ BMIrompatchDeactivate(HIF_DEVICE *device,

int
BMILZData(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length)
{
u32 cid;
Expand Down Expand Up @@ -735,7 +735,7 @@ BMILZStreamStart(HIF_DEVICE *device,
/* BMI Access routines */
int
bmiBufferSend(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length)
{
int status;
Expand Down Expand Up @@ -783,7 +783,7 @@ bmiBufferSend(HIF_DEVICE *device,

int
bmiBufferReceive(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
bool want_timeout)
{
Expand Down Expand Up @@ -958,7 +958,7 @@ bmiBufferReceive(HIF_DEVICE *device,
}

int
BMIFastDownload(HIF_DEVICE *device, u32 address, A_UCHAR *buffer, u32 length)
BMIFastDownload(HIF_DEVICE *device, u32 address, u8 *buffer, u32 length)
{
int status = A_ERROR;
u32 lastWord = 0;
Expand Down Expand Up @@ -998,13 +998,13 @@ BMIFastDownload(HIF_DEVICE *device, u32 address, A_UCHAR *buffer, u32 length)
}

int
BMIRawWrite(HIF_DEVICE *device, A_UCHAR *buffer, u32 length)
BMIRawWrite(HIF_DEVICE *device, u8 *buffer, u32 length)
{
return bmiBufferSend(device, buffer, length);
}

int
BMIRawRead(HIF_DEVICE *device, A_UCHAR *buffer, u32 length, bool want_timeout)
BMIRawRead(HIF_DEVICE *device, u8 *buffer, u32 length, bool want_timeout)
{
return bmiBufferReceive(device, buffer, length, want_timeout);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef struct bus_request {
struct bus_request *inusenext; /* link list of in use requests */
struct semaphore sem_req;
u32 address; /* request data */
A_UCHAR *buffer;
u8 *buffer;
u32 length;
u32 request;
void *context;
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 @@ -155,7 +155,7 @@ int HIFInit(OSDRV_CALLBACKS *callbacks)
static int
__HIFReadWrite(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
u32 request,
void *context)
Expand Down Expand Up @@ -332,7 +332,7 @@ void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest)
int
HIFReadWrite(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
u32 request,
void *context)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ int DevEnableRecv(AR6K_DEVICE *pDev, bool AsyncMode)
int DevWaitForPendingRecv(AR6K_DEVICE *pDev,u32 TimeoutInMs,bool *pbIsRecvPending)
{
int status = 0;
A_UCHAR host_int_status = 0x0;
u8 host_int_status = 0x0;
u32 counter = 0x0;

if(TimeoutInMs < 100)
Expand All @@ -507,7 +507,7 @@ int DevWaitForPendingRecv(AR6K_DEVICE *pDev,u32 TimeoutInMs,bool *pbIsRecvPendin
status = HIFReadWrite(pDev->HIFDevice,
HOST_INT_STATUS_ADDRESS,
&host_int_status,
sizeof(A_UCHAR),
sizeof(u8),
HIF_RD_SYNC_BYTE_INC,
NULL);
if (status)
Expand Down
2 changes: 1 addition & 1 deletion 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, u16 length, char *pDescription);
void DebugDumpBytes(u8 *buffer, u16 length, char *pDescription);
#endif

static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
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, u16 length, char *pDescription);
void DebugDumpBytes(u8 *buffer, u16 length, char *pDescription);

/* Debug support on a per-module basis
*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/include/ar6000_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data);

int
ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address,
A_UCHAR *data, u32 length);
u8 *data, u32 length);

int
ar6000_WriteDataDiag(HIF_DEVICE *hifDevice, u32 address,
A_UCHAR *data, u32 length);
u8 *data, u32 length);

int
ar6k_ReadTargetRegister(HIF_DEVICE *hifDevice, int regsel, u32 *regval);
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/ath6kl/include/bmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info);
int
BMIReadMemory(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
BMIWriteMemory(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
Expand Down Expand Up @@ -108,23 +108,23 @@ BMILZStreamStart(HIF_DEVICE *device,

int
BMILZData(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
BMIFastDownload(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
BMIRawWrite(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length);

int
BMIRawRead(HIF_DEVICE *device,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
bool want_timeout);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum searchType {
* instance of table).
*/
typedef PREPACK struct dbMasterTable_t { /* Hold ptrs to Table data structures */
A_UCHAR numOfEntries;
u8 numOfEntries;
char entrySize; /* Entry size per table row */
char searchType; /* Index based access or key based */
char reserved[3]; /* for alignment */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/include/common/testcmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ typedef PREPACK struct {
u16 rateCntShortGuard[TCMD_MAX_RATES];
} POSTPACK report;
struct PREPACK TCMD_CONT_RX_MAC {
A_UCHAR addr[ATH_MAC_LEN];
u8 addr[ATH_MAC_LEN];
} POSTPACK mac;
struct PREPACK TCMD_CONT_RX_ANT_SWITCH_TABLE {
u32 antswitch1;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/include/common/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ typedef PREPACK struct {
u8 groupCryptoType;
u8 groupCryptoLen;
u8 ssidLength;
A_UCHAR ssid[WMI_MAX_SSID_LEN];
u8 ssid[WMI_MAX_SSID_LEN];
u16 channel;
u8 bssid[ATH_MAC_LEN];
u32 ctrl_flags;
Expand Down Expand Up @@ -3031,7 +3031,7 @@ typedef PREPACK struct {
#define WMI_DISABLE_REGULATORY_CODE "FF"

typedef PREPACK struct {
A_UCHAR countryCode[3];
u8 countryCode[3];
} POSTPACK WMI_AP_SET_COUNTRY_CMD;

typedef PREPACK struct {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/include/common/wmi_thin.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ typedef PREPACK struct {
u8 ssidLength; /* 0 - 32 */
u8 probe; /* != 0 : issue probe req at start */
u8 reserved; /* alignment */
A_UCHAR ssid[WMI_MAX_SSID_LEN];
u8 ssid[WMI_MAX_SSID_LEN];
u8 bssid[ATH_MAC_LEN];
} POSTPACK WMI_THIN_JOIN_CMD;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/include/common_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data);

int ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data);

int ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address, A_UCHAR *data, u32 length);
int ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, u32 address, u8 *data, u32 length);

int ar6000_reset_device(HIF_DEVICE *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/include/hif.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ void HIFDetachHTC(HIF_DEVICE *device);
int
HIFReadWrite(HIF_DEVICE *device,
u32 address,
A_UCHAR *buffer,
u8 *buffer,
u32 length,
u32 request,
void *context);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/include/wlan_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void
wlan_refresh_inactive_nodes (struct ieee80211_node_table *nt);

bss_t *
wlan_find_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
wlan_find_Ssidnode (struct ieee80211_node_table *nt, u8 *pSsid,
u32 ssidLength, bool bIsWPA2, bool bMatchSSID);

void
Expand All @@ -117,7 +117,7 @@ wlan_node_return (struct ieee80211_node_table *nt, bss_t *ni);
bss_t *wlan_node_remove(struct ieee80211_node_table *nt, u8 *bssid);

bss_t *
wlan_find_matching_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
wlan_find_matching_Ssidnode (struct ieee80211_node_table *nt, u8 *pSsid,
u32 ssidLength, u32 dot11AuthMode, u32 authMode,
u32 pairwiseCryptoType, u32 grpwiseCryptoTyp);

Expand Down
Loading

0 comments on commit 5112bb9

Please sign in to comment.