Skip to content

Commit

Permalink
staging: ath6kl: Convert A_INT32 to s32
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Feb 2, 2011
1 parent cb1e370 commit f68057e
Show file tree
Hide file tree
Showing 16 changed files with 91 additions and 94 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ static int async_task(void *param)
return 0;
}

static A_INT32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags, u32 *resp)
static s32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags, u32 *resp)
{
struct mmc_command cmd;
A_INT32 err;
s32 err;
struct mmc_host *host;
struct sdio_func *func;

Expand All @@ -490,7 +490,7 @@ static A_INT32 IssueSDCommand(HIF_DEVICE *device, u32 opcode, u32 arg, u32 flags

int ReinitSDIO(HIF_DEVICE *device)
{
A_INT32 err;
s32 err;
struct mmc_host *host;
struct mmc_card *card;
struct sdio_func *func;
Expand Down Expand Up @@ -1153,7 +1153,7 @@ static void hifDeviceRemoved(struct sdio_func *func)
*/
int hifWaitForPendingRecv(HIF_DEVICE *device)
{
A_INT32 cnt = 10;
s32 cnt = 10;
u8 host_int_status;
int status = A_OK;

Expand Down Expand Up @@ -1280,7 +1280,7 @@ static int Func0_CMD52ReadByte(struct mmc_card *card, unsigned int address, unsi
{
struct mmc_command ioCmd;
unsigned long arg;
A_INT32 err;
s32 err;

memset(&ioCmd,0,sizeof(ioCmd));
SDIO_SET_CMD52_READ_ARG(arg,0,address);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/htc2/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ HTC_PACKET *HTCAllocControlBuffer(HTC_TARGET *target, HTC_PACKET_QUEUE *pList)
/* cleanup the HTC instance */
static void HTCCleanup(HTC_TARGET *target)
{
A_INT32 i;
s32 i;

DevCleanup(&target->Device);

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/include/common/testcmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ typedef PREPACK struct {
u32 mode;
u32 freq;
u32 dataRate;
A_INT32 txPwr;
s32 txPwr;
u32 antenna;
u32 enANI;
u32 scramblerOff;
Expand Down Expand Up @@ -135,7 +135,7 @@ typedef PREPACK struct {
} POSTPACK para;
struct PREPACK TCMD_CONT_RX_REPORT {
u32 totalPkt;
A_INT32 rssiInDBm;
s32 rssiInDBm;
u32 crcErrPkt;
u32 secErrPkt;
u16 rateCnt[TCMD_MAX_RATES];
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/ath6kl/include/common/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ typedef PREPACK struct {
* WMI_SCAN_COMPLETE_EVENTID - no parameters (old), staus parameter (new)
*/
typedef PREPACK struct {
A_INT32 status;
s32 status;
} POSTPACK WMI_SCAN_COMPLETE_EVENT;

#define MAX_OPT_DATA_LEN 1400
Expand Down Expand Up @@ -2233,7 +2233,7 @@ typedef PREPACK struct {
u32 tx_retry_cnt;
u32 tx_mult_retry_cnt;
u32 tx_rts_fail_cnt;
A_INT32 tx_unicast_rate;
s32 tx_unicast_rate;
}POSTPACK tx_stats_t;

typedef PREPACK struct {
Expand All @@ -2252,7 +2252,7 @@ typedef PREPACK struct {
u32 rx_key_cache_miss;
u32 rx_decrypt_err;
u32 rx_duplicate_frames;
A_INT32 rx_unicast_rate;
s32 rx_unicast_rate;
}POSTPACK rx_stats_t;

typedef PREPACK struct {
Expand Down Expand Up @@ -2306,7 +2306,7 @@ typedef PREPACK struct {

typedef PREPACK struct {
u32 lqVal;
A_INT32 noise_floor_calibation;
s32 noise_floor_calibation;
pm_stats_t pmStats;
wlan_net_stats_t txrxStats;
wlan_wow_stats_t wowStats;
Expand Down Expand Up @@ -2388,7 +2388,7 @@ typedef enum{
} WMI_LQ_THRESHOLD_VAL;

typedef PREPACK struct {
A_INT32 lq;
s32 lq;
u8 range; /* WMI_LQ_THRESHOLD_VAL */
}POSTPACK WMI_LQ_THRESHOLD_EVENT;
/*
Expand All @@ -2397,7 +2397,7 @@ typedef PREPACK struct {
#define MAX_ROAM_TBL_CAND 5

typedef PREPACK struct {
A_INT32 roam_util;
s32 roam_util;
u8 bssid[ATH_MAC_LEN];
s8 rssi;
s8 rssidt;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/include/common_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ typedef struct _COMMON_CREDIT_STATE_INFO {
} COMMON_CREDIT_STATE_INFO;

typedef struct {
A_INT32 (*setupTransport)(void *ar);
s32 (*setupTransport)(void *ar);
void (*cleanupTransport)(void *ar);
} HCI_TRANSPORT_CALLBACKS;

Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/ath6kl/include/wmi_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber);
int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream);
int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID);
int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask);
int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate);
int wmi_set_bitrate_cmd(struct wmi_t *wmip, s32 dataRate, s32 mgmtRate, s32 ctlRate);
int wmi_get_bitrate_cmd(struct wmi_t *wmip);
s8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, s8 *rate_idx);
s8 wmi_validate_bitrate(struct wmi_t *wmip, s32 rate, s8 *rate_idx);
int wmi_get_regDomain_cmd(struct wmi_t *wmip);
int wmi_get_channelList_cmd(struct wmi_t *wmip);
int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
Expand Down Expand Up @@ -295,7 +295,7 @@ int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,

int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen);

A_INT32 wmi_get_rate(s8 rateindex);
s32 wmi_get_rate(s8 rateindex);

int wmi_set_ip_cmd(struct wmi_t *wmip, WMI_SET_IP_CMD *cmd);

Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/ath6kl/miscdrv/common_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, u32 RegisterAddr, u32
{
int status;
u8 addrValue[4];
A_INT32 i;
s32 i;

/* write bytes 1,2,3 of the register to set the upper address bytes, the LSB is written
* last to initiate the access cycle */
Expand Down Expand Up @@ -358,10 +358,10 @@ _do_write_diag(HIF_DEVICE *hifDevice, u32 addr, u32 value)
*/
#if 0
static int
_delay_until_target_alive(HIF_DEVICE *hifDevice, A_INT32 wait_msecs, u32 TargetType)
_delay_until_target_alive(HIF_DEVICE *hifDevice, s32 wait_msecs, u32 TargetType)
{
A_INT32 actual_wait;
A_INT32 i;
s32 actual_wait;
s32 i;
u32 address;

actual_wait = 0;
Expand Down Expand Up @@ -485,7 +485,7 @@ ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, u32 TargetType)
{
u32 eepHeaderAddr;
u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4];
A_INT32 i;
s32 i;

if (BMIReadMemory(hifDevice,
HOST_INTEREST_ITEM_ADDRESS(TargetType, hi_board_data),
Expand Down Expand Up @@ -727,13 +727,13 @@ int ar6000_prepare_target(HIF_DEVICE *hifDevice,
int
ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice)
{
A_INT32 i;
s32 i;
struct forceROM_s {
u32 addr;
u32 data;
};
struct forceROM_s *ForceROM;
A_INT32 szForceROM;
s32 szForceROM;
int status = A_OK;
u32 address;
u32 data;
Expand Down
15 changes: 7 additions & 8 deletions drivers/staging/ath6kl/os/linux/ar6000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ ar6000_dbglog_init_done(AR_SOFTC_T *ar)

u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
{
A_INT32 *buffer;
s32 *buffer;
u32 count;
u32 numargs;
u32 length;
u32 fraglen;

count = fraglen = 0;
buffer = (A_INT32 *)datap;
buffer = (s32 *)datap;
length = (limit >> 2);

if (len <= limit) {
Expand All @@ -479,7 +479,7 @@ u32 dbglog_get_debug_fragment(s8 *datap, u32 len, u32 limit)
void
dbglog_parse_debug_logs(s8 *datap, u32 len)
{
A_INT32 *buffer;
s32 *buffer;
u32 count;
u32 timestamp;
u32 debugid;
Expand All @@ -488,7 +488,7 @@ dbglog_parse_debug_logs(s8 *datap, u32 len)
u32 length;

count = 0;
buffer = (A_INT32 *)datap;
buffer = (s32 *)datap;
length = (len >> 2);
while (count < length) {
debugid = DBGLOG_GET_DBGID(buffer[count]);
Expand Down Expand Up @@ -2429,7 +2429,7 @@ int ar6000_init(struct net_device *dev)
{
AR_SOFTC_T *ar;
int status;
A_INT32 timeleft;
s32 timeleft;
s16 i;
int ret = 0;
#if defined(INIT_MODE_DRV_ENABLED) && defined(ENABLE_COEXISTENCE)
Expand Down Expand Up @@ -2767,7 +2767,7 @@ int ar6000_init(struct net_device *dev)


void
ar6000_bitrate_rx(void *devt, A_INT32 rateKbps)
ar6000_bitrate_rx(void *devt, s32 rateKbps)
{
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;

Expand Down Expand Up @@ -5826,8 +5826,7 @@ read_rssi_compensation_param(AR_SOFTC_T *ar)
return;
}

A_INT32
rssi_compensation_calc_tcmd(u32 freq, A_INT32 rssi, u32 totalPkt)
s32 rssi_compensation_calc_tcmd(u32 freq, s32 rssi, u32 totalPkt)
{

if (freq > 5000)
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ typedef struct ar6_softc {
s8 arRssi;
u8 arTxPwr;
bool arTxPwrSet;
A_INT32 arBitRate;
s32 arBitRate;
struct net_device_stats arNetStats;
struct iw_statistics arIwStats;
s8 arNumChannels;
Expand All @@ -509,7 +509,7 @@ typedef struct ar6_softc {
#ifdef CONFIG_HOST_TCMD_SUPPORT
u8 tcmdRxReport;
u32 tcmdRxTotalPkt;
A_INT32 tcmdRxRssi;
s32 tcmdRxRssi;
u32 tcmdPm;
u32 arTargetMode;
u32 tcmdRxcrcErrPkt;
Expand Down Expand Up @@ -552,7 +552,7 @@ typedef struct ar6_softc {
u32 dbglog_init_done;
u32 arConnectCtrlFlags;
#ifdef USER_KEYS
A_INT32 user_savedkeys_stat;
s32 user_savedkeys_stat;
u32 user_key_ctrl;
struct USER_SAVEDKEYS user_saved_keys;
#endif
Expand Down Expand Up @@ -589,7 +589,7 @@ typedef struct ar6_softc {
#endif
WMI_BTCOEX_CONFIG_EVENT arBtcoexConfig;
WMI_BTCOEX_STATS_EVENT arBtcoexStats;
A_INT32 (*exitCallback)(void *config); /* generic callback at AR6K exit */
s32 (*exitCallback)(void *config); /* generic callback at AR6K exit */
HIF_DEVICE_OS_DEVICE_INFO osDevInfo;
#ifdef ATH6K_CONFIG_CFG80211
struct wireless_dev *wdev;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason,
u8 *assocInfo, u16 protocolReasonStatus);
void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
bool ismcast);
void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
void ar6000_bitrate_rx(void *devt, s32 rateKbps);
void ar6000_channelList_rx(void *devt, s8 numChan, u16 *chanList);
void ar6000_regDomain_event(struct ar6_softc *ar, u32 regCode);
void ar6000_txPwr_rx(void *devt, u8 txPwr);
Expand Down Expand Up @@ -77,7 +77,7 @@ void ar6000_gpio_intr_rx(u32 intr_mask, u32 input_values);
void ar6000_gpio_data_rx(u32 reg_id, u32 value);
void ar6000_gpio_ack_rx(void);

A_INT32 rssi_compensation_calc_tcmd(u32 freq, A_INT32 rssi, u32 totalPkt);
s32 rssi_compensation_calc_tcmd(u32 freq, s32 rssi, u32 totalPkt);
s16 rssi_compensation_calc(struct ar6_softc *ar, s16 rssi);
s16 rssi_compensation_reverse_calc(struct ar6_softc *ar, s16 rssi, bool Above);

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/os/linux/include/athdrv_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,8 @@ typedef struct targetStats_t {
u64 cs_connect_cnt;
u64 cs_disconnect_cnt;

A_INT32 tx_unicast_rate;
A_INT32 rx_unicast_rate;
s32 tx_unicast_rate;
s32 rx_unicast_rate;

u32 lq_val;

Expand Down
20 changes: 10 additions & 10 deletions drivers/staging/ath6kl/os/linux/include/osapi_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,16 @@ void *a_netbuf_alloc_raw(int size);
void a_netbuf_free(void *bufPtr);
void *a_netbuf_to_data(void *bufPtr);
u32 a_netbuf_to_len(void *bufPtr);
int a_netbuf_push(void *bufPtr, A_INT32 len);
int a_netbuf_push_data(void *bufPtr, char *srcPtr, A_INT32 len);
int a_netbuf_put(void *bufPtr, A_INT32 len);
int a_netbuf_put_data(void *bufPtr, char *srcPtr, A_INT32 len);
int a_netbuf_pull(void *bufPtr, A_INT32 len);
int a_netbuf_pull_data(void *bufPtr, char *dstPtr, A_INT32 len);
int a_netbuf_trim(void *bufPtr, A_INT32 len);
int a_netbuf_trim_data(void *bufPtr, char *dstPtr, A_INT32 len);
int a_netbuf_setlen(void *bufPtr, A_INT32 len);
A_INT32 a_netbuf_headroom(void *bufPtr);
int a_netbuf_push(void *bufPtr, s32 len);
int a_netbuf_push_data(void *bufPtr, char *srcPtr, s32 len);
int a_netbuf_put(void *bufPtr, s32 len);
int a_netbuf_put_data(void *bufPtr, char *srcPtr, s32 len);
int a_netbuf_pull(void *bufPtr, s32 len);
int a_netbuf_pull_data(void *bufPtr, char *dstPtr, s32 len);
int a_netbuf_trim(void *bufPtr, s32 len);
int a_netbuf_trim_data(void *bufPtr, char *dstPtr, s32 len);
int a_netbuf_setlen(void *bufPtr, s32 len);
s32 a_netbuf_headroom(void *bufPtr);
void a_netbuf_enqueue(A_NETBUF_QUEUE_T *q, void *pkt);
void a_netbuf_prequeue(A_NETBUF_QUEUE_T *q, void *pkt);
void *a_netbuf_dequeue(A_NETBUF_QUEUE_T *q);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/os/linux/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ ar6000_ioctl_set_rssi_threshold(struct net_device *dev, struct ifreq *rq)
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
WMI_RSSI_THRESHOLD_PARAMS_CMD cmd;
USER_RSSI_PARAMS rssiParams;
A_INT32 i, j;
s32 i, j;
int ret = 0;

if (ar->arWmiReady == false) {
Expand Down
Loading

0 comments on commit f68057e

Please sign in to comment.