Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318152
b: refs/heads/master
c: 95e326c
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2012
1 parent 516a5ff commit e54581b
Show file tree
Hide file tree
Showing 34 changed files with 137 additions and 140 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: 26a6b2e1688bc154a16778851d710e90b62f715e
refs/heads/master: 95e326c28aa66d6ff5821f3c1d22b46a8d335939
4 changes: 2 additions & 2 deletions trunk/drivers/staging/csr/csr_formatted_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include "csr_formatted_io.h"
#include "csr_util.h"

CsrInt32 CsrSnprintf(CsrCharString *dest, CsrSize n, const CsrCharString *fmt, ...)
s32 CsrSnprintf(CsrCharString *dest, CsrSize n, const CsrCharString *fmt, ...)
{
CsrInt32 r;
s32 r;
va_list args;
va_start(args, fmt);
r = CsrVsnprintf(dest, n, fmt, args);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/csr/csr_formatted_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {

#include "csr_types.h"

CsrInt32 CsrSnprintf(CsrCharString *dest, CsrSize n, const CsrCharString *fmt, ...);
s32 CsrSnprintf(CsrCharString *dest, CsrSize n, const CsrCharString *fmt, ...);

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/csr/csr_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void CsrTimeUtcGet(CsrTimeUtc *tod, CsrTime *low, CsrTime *high);
* CsrTime - "t1" - "t2".
*
*----------------------------------------------------------------------------*/
#define CsrTimeSub(t1, t2) ((CsrInt32) (t1) - (CsrInt32) (t2))
#define CsrTimeSub(t1, t2) ((s32) (t1) - (s32) (t2))

/*----------------------------------------------------------------------------*
* NAME
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/csr/csr_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ typedef ptrdiff_t CsrPtrdiff; /* Type of the result of subtracting two pointer
typedef uintptr_t CsrUintptr; /* Unsigned integer large enough to hold any pointer (ISO/IEC 9899:1999 7.18.1.4) */
typedef ptrdiff_t CsrIntptr; /* intptr_t is not defined in kernel. Use the equivalent ptrdiff_t. */

/* Signed fixed width types */
typedef int32_t CsrInt32;

/* Boolean */
typedef u8 CsrBool;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/csr/csr_unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ CsrUtf16String *CsrUtf16ConcatenateTexts(const CsrUtf16String *inputText1, const
CsrUtf16String *CsrUtf16String2XML(CsrUtf16String *str);
CsrUtf16String *CsrXML2Utf16String(CsrUtf16String *str);

CsrInt32 CsrUtf8StrCmp(const CsrUtf8String *string1, const CsrUtf8String *string2);
CsrInt32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *string2, CsrSize count);
s32 CsrUtf8StrCmp(const CsrUtf8String *string1, const CsrUtf8String *string2);
s32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *string2, CsrSize count);
u32 CsrUtf8StringLengthInBytes(const CsrUtf8String *string);

/*******************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/csr/csr_utf16.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,12 +1016,12 @@ CsrUtf16String *CsrXML2Utf16String(CsrUtf16String *str)
return resultString;
}

CsrInt32 CsrUtf8StrCmp(const CsrUtf8String *string1, const CsrUtf8String *string2)
s32 CsrUtf8StrCmp(const CsrUtf8String *string1, const CsrUtf8String *string2)
{
return CsrStrCmp((const CsrCharString *) string1, (const CsrCharString *) string2);
}

CsrInt32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *string2, CsrSize count)
s32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *string2, CsrSize count)
{
return CsrStrNCmp((const CsrCharString *) string1, (const CsrCharString *) string2, count);
}
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/csr/csr_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ u32 CsrPow(u32 base, u32 exponent)

/* Convert signed 32 bit (or less) integer to string */
#define I2B10_MAX 12
void CsrIntToBase10(CsrInt32 number, CsrCharString *str)
void CsrIntToBase10(s32 number, CsrCharString *str)
{
CsrInt32 digit;
s32 digit;
u8 index;
CsrCharString res[I2B10_MAX];
CsrBool foundDigit = FALSE;
Expand Down Expand Up @@ -240,7 +240,7 @@ void *CsrMemMove(void *dest, const void *src, CsrSize count)
}
EXPORT_SYMBOL_GPL(CsrMemMove);

CsrInt32 CsrMemCmp(const void *buf1, const void *buf2, CsrSize count)
s32 CsrMemCmp(const void *buf1, const void *buf2, CsrSize count)
{
return memcmp(buf1, buf2, count);
}
Expand Down Expand Up @@ -292,12 +292,12 @@ CsrSize CsrStrLen(const CsrCharString *string)
}
EXPORT_SYMBOL_GPL(CsrStrLen);

CsrInt32 CsrStrCmp(const CsrCharString *string1, const CsrCharString *string2)
s32 CsrStrCmp(const CsrCharString *string1, const CsrCharString *string2)
{
return strcmp(string1, string2);
}

CsrInt32 CsrStrNCmp(const CsrCharString *string1, const CsrCharString *string2, CsrSize count)
s32 CsrStrNCmp(const CsrCharString *string1, const CsrCharString *string2, CsrSize count)
{
return strncmp(string1, string2, count);
}
Expand All @@ -308,7 +308,7 @@ CsrCharString *CsrStrChr(const CsrCharString *string, CsrCharString c)
}
#endif

CsrInt32 CsrVsnprintf(CsrCharString *string, CsrSize count, const CsrCharString *format, va_list args)
s32 CsrVsnprintf(CsrCharString *string, CsrSize count, const CsrCharString *format, va_list args)
{
return vsnprintf(string, count, format, args);
}
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/staging/csr/csr_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CsrBool CsrHexStrToUint8(const CsrCharString *string, u8 *returnValue);
CsrBool CsrHexStrToUint16(const CsrCharString *string, u16 *returnValue);
CsrBool CsrHexStrToUint32(const CsrCharString *string, u32 *returnValue);
u32 CsrPow(u32 base, u32 exponent);
void CsrIntToBase10(CsrInt32 number, CsrCharString *str);
void CsrIntToBase10(s32 number, CsrCharString *str);
void CsrUInt16ToHex(u16 number, CsrCharString *str);
void CsrUInt32ToHex(u32 number, CsrCharString *str);

Expand All @@ -44,9 +44,9 @@ void CsrUInt32ToHex(u32 number, CsrCharString *str);
#define CsrStrNCpy strncpy
#define CsrStrCat strcat
#define CsrStrNCat strncat
#define CsrMemCmp(s1, s2, n) ((CsrInt32) memcmp((s1), (s2), (n)))
#define CsrStrCmp(s1, s2) ((CsrInt32) strcmp((s1), (s2)))
#define CsrStrNCmp(s1, s2, n) ((CsrInt32) strncmp((s1), (s2), (n)))
#define CsrMemCmp(s1, s2, n) ((s32) memcmp((s1), (s2), (n)))
#define CsrStrCmp(s1, s2) ((s32) strcmp((s1), (s2)))
#define CsrStrNCmp(s1, s2, n) ((s32) strncmp((s1), (s2), (n)))
#define CsrStrChr strchr
#define CsrStrStr strstr
#define CsrMemSet memset
Expand All @@ -58,15 +58,15 @@ CsrCharString *CsrStrCpy(CsrCharString *dest, const CsrCharString *src);
CsrCharString *CsrStrNCpy(CsrCharString *dest, const CsrCharString *src, CsrSize count);
CsrCharString *CsrStrCat(CsrCharString *dest, const CsrCharString *src);
CsrCharString *CsrStrNCat(CsrCharString *dest, const CsrCharString *src, CsrSize count);
CsrInt32 CsrMemCmp(const void *buf1, const void *buf2, CsrSize count);
CsrInt32 CsrStrCmp(const CsrCharString *string1, const CsrCharString *string2);
CsrInt32 CsrStrNCmp(const CsrCharString *string1, const CsrCharString *string2, CsrSize count);
s32 CsrMemCmp(const void *buf1, const void *buf2, CsrSize count);
s32 CsrStrCmp(const CsrCharString *string1, const CsrCharString *string2);
s32 CsrStrNCmp(const CsrCharString *string1, const CsrCharString *string2, CsrSize count);
CsrCharString *CsrStrChr(const CsrCharString *string, CsrCharString c);
CsrCharString *CsrStrStr(const CsrCharString *string1, const CsrCharString *string2);
void *CsrMemSet(void *dest, u8 c, CsrSize count);
CsrSize CsrStrLen(const CsrCharString *string);
#endif /* !CSR_USE_STDC_LIB */
CsrInt32 CsrVsnprintf(CsrCharString *string, CsrSize count, const CsrCharString *format, va_list args);
s32 CsrVsnprintf(CsrCharString *string, CsrSize count, const CsrCharString *format, va_list args);

/*------------------------------------------------------------------*/
/* Non-standard utility functions */
Expand Down
20 changes: 10 additions & 10 deletions trunk/drivers/staging/csr/csr_wifi_hip_card_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
* CSR_RESULT_SUCCESS if successful
* ---------------------------------------------------------------------------
*/
CsrResult unifi_init_card(card_t *card, CsrInt32 led_mask)
CsrResult unifi_init_card(card_t *card, s32 led_mask)
{
CsrResult r;

Expand Down Expand Up @@ -359,7 +359,7 @@ CsrResult unifi_init(card_t *card)
* CsrResult error code on failure.
* ---------------------------------------------------------------------------
*/
CsrResult unifi_download(card_t *card, CsrInt32 led_mask)
CsrResult unifi_download(card_t *card, s32 led_mask)
{
CsrResult r;
void *dlpriv;
Expand Down Expand Up @@ -1235,7 +1235,7 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card)
*/
CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr)
{
CsrInt32 i;
s32 i;
u16 mbox0, mbox1;
CsrResult r;

Expand Down Expand Up @@ -1403,7 +1403,7 @@ CsrResult unifi_capture_panic(card_t *card)
static CsrResult card_access_panic(card_t *card)
{
u16 data_u16 = 0;
CsrInt32 i;
s32 i;
CsrResult r, sr;

func_enter();
Expand Down Expand Up @@ -2221,7 +2221,7 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue)
{
u16 q_len, active_queues = 0, excess_queue_slots, div_extra_slots,
queue_fair_share, reserved_slots = 0, q, excess_need_queues = 0, unmovable_slots = 0;
CsrInt32 i;
s32 i;
q_t *sigq;
u16 num_data_slots = card->config_data.num_fromhost_data_slots - UNIFI_RESERVED_COMMAND_SLOTS;

Expand All @@ -2246,11 +2246,11 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue)

for (i = 0; i < UNIFI_NO_OF_TX_QS; i++)
{
if (i != (CsrInt32)queue)
if (i != (s32)queue)
{
reserved_slots += card->dynamic_slot_data.from_host_reserved_slots[i];
}
if ((i == (CsrInt32)queue) || (card->dynamic_slot_data.from_host_reserved_slots[i] > 0))
if ((i == (s32)queue) || (card->dynamic_slot_data.from_host_reserved_slots[i] > 0))
{
active_queues++;
}
Expand Down Expand Up @@ -4032,7 +4032,7 @@ void unifi_card_info(card_t *card, card_info_t *card_info)
* CSR_RESULT_SUCCESS if OK, or CSR error
* ---------------------------------------------------------------------------
*/
CsrResult unifi_check_io_status(card_t *card, CsrInt32 *status)
CsrResult unifi_check_io_status(card_t *card, s32 *status)
{
u8 io_en;
CsrResult r;
Expand All @@ -4053,7 +4053,7 @@ CsrResult unifi_check_io_status(card_t *card, CsrInt32 *status)

if ((io_en & (1 << card->function)) == 0)
{
CsrInt32 fw_count;
s32 fw_count;
*status = 1;
unifi_error(card->ospriv, "UniFi has spontaneously reset.\n");

Expand Down Expand Up @@ -4102,7 +4102,7 @@ CsrResult unifi_check_io_status(card_t *card, CsrInt32 *status)

void unifi_get_hip_qos_info(card_t *card, unifi_HipQosInfo *hipqosinfo)
{
CsrInt32 count_fhr;
s32 count_fhr;
s16 t;
u32 occupied_fh;

Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/staging/csr/csr_wifi_hip_card_sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ struct card
* We assume these are connected to LEDs. The main firmware gets
* the mask from a MIB entry.
*/
CsrInt32 loader_led_mask;
s32 loader_led_mask;

/*
* Support for flow control. When the from-host queue of signals
Expand Down Expand Up @@ -490,10 +490,10 @@ struct card
* These are the modulo-256 count of signals written to or read from UniFi
* The value is incremented for every signal.
*/
CsrInt32 from_host_signals_w;
CsrInt32 from_host_signals_r;
CsrInt32 to_host_signals_r;
CsrInt32 to_host_signals_w;
s32 from_host_signals_w;
s32 from_host_signals_r;
s32 to_host_signals_r;
s32 to_host_signals_w;


/* Should specify buffer size as a number of signals */
Expand Down Expand Up @@ -653,14 +653,14 @@ CsrResult unifi_set_host_state(card_t *card, enum unifi_host_state state);


CsrResult unifi_set_proc_select(card_t *card, enum unifi_dbg_processors_select select);
CsrInt32 card_read_signal_counts(card_t *card);
s32 card_read_signal_counts(card_t *card);
bulk_data_desc_t* card_find_data_slot(card_t *card, s16 slot);


CsrResult unifi_read32(card_t *card, u32 unifi_addr, u32 *pdata);
CsrResult unifi_readnz(card_t *card, u32 unifi_addr,
void *pdata, u16 len);
CsrInt32 unifi_read_shared_count(card_t *card, u32 addr);
s32 unifi_read_shared_count(card_t *card, u32 addr);

CsrResult unifi_writen(card_t *card, u32 unifi_addr, void *pdata, u16 len);

Expand Down
Loading

0 comments on commit e54581b

Please sign in to comment.