From: Larry Finger Date: Tue, 26 Jul 2011 20:52:24 +0000 (-0500) Subject: Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 X-Git-Tag: v3.2-rc1~169^2^2~864^2~132^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48d67fe03511c8ded54c39561dfedbdf7c78c743;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Merge branch 'master' of git://git./linux/kernel/git/gregkh/staging-2.6 Conflicts: Documentation/feature-removal-schedule.txt drivers/staging/bcm/headers.h drivers/staging/brcm80211/brcmfmac/dhd_linux.c drivers/staging/brcm80211/brcmfmac/dhd_sdio.c drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h drivers/staging/brcm80211/brcmfmac/wl_iw.c drivers/staging/et131x/et131x_netdev.c drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c drivers/staging/rtl8192e/r8192E.h drivers/staging/usbip/userspace/src/utils.h --- 48d67fe03511c8ded54c39561dfedbdf7c78c743 diff --cc drivers/staging/brcm80211/brcmfmac/dhd_sdio.c index 7fa95b6,8cbfeae..de6476f2 --- a/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +++ b/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c @@@ -20,141 -19,43 +20,88 @@@ #include #include #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include "sdio_host.h" + #include + #include - /* register access macros */ - #ifndef __BIG_ENDIAN - #ifndef __mips__ - #define R_REG(r, typ) \ - brcmf_sdcard_reg_read(NULL, (r), sizeof(typ)) - #else /* __mips__ */ - #define R_REG(r, typ) \ - ({ \ - __typeof(*(r)) __osl_v; \ - __asm__ __volatile__("sync"); \ - __osl_v = brcmf_sdcard_reg_read(NULL, (r),\ - sizeof(typ)); \ - __asm__ __volatile__("sync"); \ - __osl_v; \ - }) - #endif /* __mips__ */ + #ifdef BCMEMBEDIMAGE + #include BCMEMBEDIMAGE + #endif /* BCMEMBEDIMAGE */ - #else /* __BIG_ENDIAN */ - #define R_REG(r, typ) \ - brcmf_sdcard_reg_read(NULL, (r), sizeof(typ)) - #endif /* __BIG_ENDIAN */ + #include + #include - #define OR_REG(r, v, typ) \ - brcmf_sdcard_reg_write(NULL, (r), sizeof(typ), R_REG(r, typ) | (v)) + #include + #ifdef DHD_DEBUG + #include + #include + #endif /* DHD_DEBUG */ + #include + #include - #ifdef BCMDBG + #include + #include + #include + #include - /* ARM trap handling */ + #include - /* Trap types defined by ARM (see arminc.h) */ - - #if defined(__ARM_ARCH_4T__) - #define MAX_TRAP_TYPE (TR_FIQ + 1) - #elif defined(__ARM_ARCH_7M__) - #define MAX_TRAP_TYPE (TR_ISR + ARMCM3_NUMINTS) - #endif /* __ARM_ARCH_7M__ */ - - /* The trap structure is defined here as offsets for assembly */ - #define TR_TYPE 0x00 - #define TR_EPC 0x04 - #define TR_CPSR 0x08 - #define TR_SPSR 0x0c - #define TR_REGS 0x10 - #define TR_REG(n) (TR_REGS + (n) * 4) - #define TR_SP TR_REG(13) - #define TR_LR TR_REG(14) - #define TR_PC TR_REG(15) - - #define TRAP_T_SIZE 80 - - struct brcmf_trap { - u32 type; - u32 epc; - u32 cpsr; - u32 spsr; - u32 r0; - u32 r1; - u32 r2; - u32 r3; - u32 r4; - u32 r5; - u32 r6; - u32 r7; - u32 r8; - u32 r9; - u32 r10; - u32 r11; - u32 r12; - u32 r13; - u32 r14; - u32 pc; - }; + #include + #include + #include + #include + #include + #include + #include + #include -#ifndef DHDSDIO_MEM_DUMP_FNAME -#define DHDSDIO_MEM_DUMP_FNAME "mem_dump" -#endif +#define CBUF_LEN (128) + +struct rte_log { + u32 buf; /* Can't be pointer on (64-bit) hosts */ + uint buf_size; + uint idx; + char *_buf_compat; /* Redundant pointer for backward compat. */ +}; + +struct rte_console { + /* Virtual UART + * When there is no UART (e.g. Quickturn), + * the host should write a complete + * input line directly into cbuf and then write + * the length into vcons_in. + * This may also be used when there is a real UART + * (at risk of conflicting with + * the real UART). vcons_out is currently unused. + */ + volatile uint vcons_in; + volatile uint vcons_out; + + /* Output (logging) buffer + * Console output is written to a ring buffer log_buf at index log_idx. + * The host may read the output when it sees log_idx advance. + * Output will be lost if the output wraps around faster than the host + * polls. + */ + struct rte_log log; + + /* Console input line buffer + * Characters are read one at a time into cbuf + * until is received, then + * the buffer is processed as a command line. + * Also used for virtual UART. + */ + uint cbuf_idx; + char cbuf[CBUF_LEN]; +}; + +#endif /* BCMDBG */ +#include + +#include "dhd.h" +#include "dhd_bus.h" +#include "dhd_proto.h" +#include "dhd_dbg.h" +#include #define TXQLEN 2048 /* bulk tx queue length */ #define TXHI (TXQLEN - 256) /* turn on flow control above TXHI */ diff --cc drivers/staging/brcm80211/brcmsmac/mac80211_if.c index 84245b9,8261229..d6de44e --- a/drivers/staging/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/staging/brcm80211/brcmsmac/mac80211_if.c @@@ -20,16 -21,34 +20,17 @@@ #include #include #include + #include #include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "phy/wlc_phy_int.h" +#include +#include "nicpci.h" +#include "phy/phy_int.h" #include "d11.h" -#include "wlc_types.h" -#include "wlc_cfg.h" -#include "phy/phy_version.h" -#include "wlc_key.h" -#include "wlc_channel.h" -#include "wlc_scb.h" -#include "wlc_pub.h" -#include "wl_dbg.h" -#include "wl_export.h" -#include "wl_ucode.h" -#include "wl_mac80211.h" +#include "channel.h" +#include "scb.h" +#include "pub.h" +#include "ucode_loader.h" +#include "mac80211_if.h" #define N_TX_QUEUES 4 /* #tx queues on mac80211<->driver interface */ diff --cc drivers/staging/brcm80211/brcmsmac/mac80211_if.h index 40e3d37,f7a58b7..5711e7c --- a/drivers/staging/brcm80211/brcmsmac/mac80211_if.h +++ b/drivers/staging/brcm80211/brcmsmac/mac80211_if.h @@@ -14,16 -14,11 +14,18 @@@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef _wl_mac80211_h_ -#define _wl_mac80211_h_ +#ifndef _BRCM_MAC80211_IF_H_ +#define _BRCM_MAC80211_IF_H_ + +#include +#include + +/* softmac ioctl definitions */ +#define BRCMS_SET_SHORTSLOT_OVERRIDE 146 + + #include + /* BMAC Note: High-only driver is no longer working in softirq context as it needs to block and * sleep so perimeter lock has to be a semaphore instead of spinlock. This requires timers to be * submitted to workqueue instead of being on kernel timer diff --cc drivers/staging/usbip/userspace/src/utils.h index fdcb14d,991f662..c36aa27 --- a/drivers/staging/usbip/userspace/src/utils.h +++ b/drivers/staging/usbip/userspace/src/utils.h @@@ -1,24 -1,37 +1,50 @@@ +/* + * Copyright (C) 2011 matt mooney + * 2005-2007 Takahiro Hirofuchi + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ -#ifdef HAVE_CONFIG_H -#include "../config.h" -#endif +#ifndef __UTILS_H +#define __UTILS_H -#define _GNU_SOURCE -#include -#include -#include -#include +int modify_match_busid(char *busid, int add); +#endif /* __UTILS_H */ + #include + #include + #include + #include + #include + #include + #include + #include + #include + + + + /* Be sync to kernel header */ + #define BUS_ID_SIZE 20 + + int read_string(char *path, char *, size_t len); + int read_integer(char *path); + int getdevicename(char *busid, char *name, size_t len); + int getdriver(char *busid, int conf, int infnum, char *driver, size_t len); + int read_bNumInterfaces(char *busid); + int read_bConfigurationValue(char *busid); + int write_integer(char *path, int value); + int write_bConfigurationValue(char *busid, int config); + int read_bDeviceClass(char *busid); + int readline(int sockfd, char *str, int strlen); + int writeline(int sockfd, char *buff, int bufflen);