GitHub/mt8127/android_kernel_alcatel_ttab.git
13 years agoStaging: hv: vmbus: Change the memory barrier in hv_ringbuffer_write()
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:53 +0000 (15:49 -0700)]
Staging: hv: vmbus: Change the memory barrier in hv_ringbuffer_write()

Use the correct memory barrier interface in Change the memory barrier
in hv_ringbuffer_write().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Introduce read dependency in hv_get_ringbuffer_availbytes()
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:52 +0000 (15:49 -0700)]
Staging: hv: vmbus: Introduce read dependency in hv_get_ringbuffer_availbytes()

Introduce read dependency in hv_get_ringbuffer_availbytes().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Fix the memory barrier in hv_ringbuffer_read()
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:51 +0000 (15:49 -0700)]
Staging: hv: vmbus: Fix the memory barrier in hv_ringbuffer_read()

Use the correct barrier interface.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of the poll timer in the channel state
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:50 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of the poll timer in the channel state

Since tis is not used anymore,  get rid of the poll timer in the channel state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of unneeded calls to dump_vmbus_channel
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:49 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of unneeded calls to dump_vmbus_channel

Get rid of unneeded calls to dump_vmbus_channel and get rid of the unused
static function that dumps the channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of the unused wrapper - vmbus_onchannel_event()
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:48 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of the unused wrapper - vmbus_onchannel_event()

Now, get rid of the unused wrapper - vmbus_onchannel_event().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Directly invoke the channel callback
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:47 +0000 (15:49 -0700)]
Staging: hv: vmbus: Directly invoke the channel callback

Now, directly invoke the channel callback.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of the call to dump channel state in channel event handler
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:46 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of the call to dump channel state in channel event handler

Get rid of the call to dump channel state in channel event handler.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of the timer based handling of channel events
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:45 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of the timer based handling of channel events

Get rid of the timer based handling of channel events.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc: We don't support removable media; get rid of unnecessary state
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:44 +0000 (15:49 -0700)]
Staging: hv: blkvsc: We don't support removable media; get rid of unnecessary state

We don't support removable media; get rid of unnecessary state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc: Fix bugs in the module unload path
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:43 +0000 (15:49 -0700)]
Staging: hv: blkvsc: Fix bugs in the module unload path

Fix bugs in the module unload path for the blkvsc driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Add the DSDT _HID name as well
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:42 +0000 (15:49 -0700)]
Staging: hv: vmbus: Add the DSDT _HID name as well

Add the DSDT _HID name as well, in addition to the _DDN name.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of vmbus_acpi_exit() by inlining the code
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:41 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of vmbus_acpi_exit() by inlining the code

Get rid of vmbus_acpi_exit() by inlining the code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Get rid of vmbus_acpi_init() by inlining the code
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:40 +0000 (15:49 -0700)]
Staging: hv: vmbus: Get rid of vmbus_acpi_init() by inlining the code

Staging: hv: vmbus: Get rid of  vmbus_acpi_init() by inlining the code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Make vmbus an acpi bus driver
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:39 +0000 (15:49 -0700)]
Staging: hv: vmbus: Make vmbus an acpi bus driver

Now, make the vmbus driver an ACPI bus driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Use the DSDT specified irq for vmbus
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:38 +0000 (15:49 -0700)]
Staging: hv: vmbus: Use the DSDT specified irq for vmbus

DSDT specifies the irq value for the vmbus driver; use it unconditionally.
This is an exclusive interrupt line dedicated for the vmbus driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Change the signature of vmbus_bus_init()
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:37 +0000 (15:49 -0700)]
Staging: hv: vmbus: Change the signature of vmbus_bus_init()

In preparation for making the vmbus driver an ACPI bus driver, change the
signature of vmbus_bus_init() to accept the irq value.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Add a DMI signature to support auto-loading
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:36 +0000 (15:49 -0700)]
Staging: hv: storvsc: Add a DMI signature to support auto-loading

To support auto-loading the storvsc driver, add a DMI signature.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: Don't free the channel when the channel is closed
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:35 +0000 (15:49 -0700)]
Staging: hv: vmbus: Don't free the channel when the channel is closed

When the driver unloads, the device must persist. A channel represents the
device and so we should not free the channel when the channel is closed as
part of the driver unloading.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: mouse: Get rid of the unused initialization of the name field
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:34 +0000 (15:49 -0700)]
Staging: hv: mouse: Get rid of the unused initialization of the name field

The name field of hv_driver is unused in hv_mouse.c; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blk: Get rid of the unused initialization of the name field
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:33 +0000 (15:49 -0700)]
Staging: hv: blk: Get rid of the unused initialization of the name field

The name field of hv_driver is unused in blkvsc_drv.c; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: stor: Get rid of the unused initialization of the name field
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:32 +0000 (15:49 -0700)]
Staging: hv: stor: Get rid of the unused initialization of the name field

The name field of hv_driver is unused in storvsc_drv.c; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: stor: Rename the vriable gStorVscDeviceType in storvsc_drv.c
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:31 +0000 (15:49 -0700)]
Staging: hv: stor: Rename the vriable gStorVscDeviceType in storvsc_drv.c

Rename the vriable gStorVscDeviceType in storvsc_drv.c.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: stor: Get rid of unnecessary DPRINTs in stor vsc_drv.c
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:30 +0000 (15:49 -0700)]
Staging: hv: stor: Get rid of unnecessary DPRINTs in stor vsc_drv.c

Get rid of unnecessary DPRINTs in stor vsc_drv.c.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Cleanup some dated/unnecessary comments
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:29 +0000 (15:49 -0700)]
Staging: hv: storvsc: Cleanup some dated/unnecessary comments

Cleanup some dated/unnecessary comments.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Fix a bug in the storvsc_remove() function
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:28 +0000 (15:49 -0700)]
Staging: hv: storvsc: Fix a bug in the storvsc_remove() function

When the storvs driver unloads, we need to accomodate disk cache flushes.
Re-order the code to permit this.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Cleanup the module init function in storvsc_drv.c
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:27 +0000 (15:49 -0700)]
Staging: hv: storvsc: Cleanup the module init function in storvsc_drv.c

Get rid of unnecessary layering in the module init path.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Cleanup the exit function in storvsc_drv.c
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:26 +0000 (15:49 -0700)]
Staging: hv: storvsc: Cleanup the exit function in storvsc_drv.c

Get rid of unnecessary layering in the module exit path.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: vmbus: In vmbus_child_driver_unregister() don't set the bus field to...
K. Y. Srinivasan [Mon, 6 Jun 2011 22:49:25 +0000 (15:49 -0700)]
Staging: hv: vmbus: In vmbus_child_driver_unregister() don't set the bus field to NULL

As part of conforming to the Linux Driver Model, do not set the bus field to
NULL when the driver un-registers.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: use delayed_work for netvsc_send_garp()
Haiyang Zhang [Fri, 27 May 2011 13:21:55 +0000 (06:21 -0700)]
staging: hv: use delayed_work for netvsc_send_garp()

Instead of sleeping in a scheduled work, we now use delayed_work
for netvsc_send_garp().

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: convert DPRINT_DBG() to netdev_dbg() in dump_rndis_message()
Haiyang Zhang [Fri, 27 May 2011 13:21:54 +0000 (06:21 -0700)]
staging: hv: convert DPRINT_DBG() to netdev_dbg() in dump_rndis_message()

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: remove netvsc send buffer and related functions
Haiyang Zhang [Wed, 25 May 2011 22:02:24 +0000 (15:02 -0700)]
staging: hv: remove netvsc send buffer and related functions

netvsc send buffer is not used, so remove it.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: removed commented out code from rndis_filter_receive()
Haiyang Zhang [Mon, 23 May 2011 16:03:50 +0000 (09:03 -0700)]
staging: hv: removed commented out code from rndis_filter_receive()

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: fix typo in name rndis_filte_device_add()
Haiyang Zhang [Mon, 23 May 2011 16:03:49 +0000 (09:03 -0700)]
staging: hv: fix typo in name rndis_filte_device_add()

rename rndis_filte_device_add to rndis_filter_device_add

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: remove commented out code in netvsc_remove()
Haiyang Zhang [Mon, 23 May 2011 16:03:48 +0000 (09:03 -0700)]
staging: hv: remove commented out code in netvsc_remove()

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: change rndis_filter_device_remove() to void return type
Haiyang Zhang [Mon, 23 May 2011 16:03:47 +0000 (09:03 -0700)]
staging: hv: change rndis_filter_device_remove() to void return type

rndis_filter_device_remove() always return 0, so change it to void return
type. Also cleaned up the error checking in the caller.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: remove commented out code from netvsc_drv.c
Haiyang Zhang [Mon, 23 May 2011 16:03:46 +0000 (09:03 -0700)]
staging: hv: remove commented out code from netvsc_drv.c

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: remove unnecessary code in netvsc_probe().
Haiyang Zhang [Mon, 23 May 2011 16:03:45 +0000 (09:03 -0700)]
staging: hv: remove unnecessary code in netvsc_probe().

netif_carrier_off() was called earlier in this function, and there is
no other thread access this device yet. The status checking code is not
necessary here.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: updated TODO with current state of affairs
Roland Vossen [Wed, 1 Jun 2011 11:46:08 +0000 (13:46 +0200)]
staging: brcm80211: updated TODO with current state of affairs

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: renamed file
Roland Vossen [Wed, 1 Jun 2011 11:46:07 +0000 (13:46 +0200)]
staging: brcm80211: renamed file

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed keys.h
Roland Vossen [Wed, 1 Jun 2011 11:46:06 +0000 (13:46 +0200)]
staging: brcm80211: removed keys.h

Code cleanup. Moved used definitions into main.h

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: deleted brcmsmac/cfg.h and brcmsmac/bsscfg.h
Roland Vossen [Wed, 1 Jun 2011 11:46:05 +0000 (13:46 +0200)]
staging: brcm80211: deleted brcmsmac/cfg.h and brcmsmac/bsscfg.h

Code cleanup. Moved used sections to other source files.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved /include/srom.h into /brcmsmac dir
Roland Vossen [Wed, 1 Jun 2011 11:46:04 +0000 (13:46 +0200)]
staging: brcm80211: moved /include/srom.h into /brcmsmac dir

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed unused definitions from include/soc.h
Roland Vossen [Wed, 1 Jun 2011 11:46:03 +0000 (13:46 +0200)]
staging: brcm80211: removed unused definitions from include/soc.h

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved /include/sdio_host.h to /brcmfmac dir
Roland Vossen [Wed, 1 Jun 2011 11:46:02 +0000 (13:46 +0200)]
staging: brcm80211: moved /include/sdio_host.h to /brcmfmac dir

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned include/brcm_hw_ids.h
Roland Vossen [Wed, 1 Jun 2011 11:46:01 +0000 (13:46 +0200)]
staging: brcm80211: cleaned include/brcm_hw_ids.h

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: deleted header file include/aidmp.h
Roland Vossen [Wed, 1 Jun 2011 11:46:00 +0000 (13:46 +0200)]
staging: brcm80211: deleted header file include/aidmp.h

Code cleanup. Merged used contents into brcmsmac/aiutils.c.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: renamed files in brcmsmac and include directories
Roland Vossen [Wed, 1 Jun 2011 11:45:59 +0000 (13:45 +0200)]
staging: brcm80211: renamed files in brcmsmac and include directories

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: prepared header files for file rename
Roland Vossen [Wed, 1 Jun 2011 11:45:58 +0000 (13:45 +0200)]
staging: brcm80211: prepared header files for file rename

Code cleanup. Removing 'bcm' and 'wlc_' file name prefixes.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleanup after R_REG/W_REG patches
Roland Vossen [Wed, 1 Jun 2011 11:45:57 +0000 (13:45 +0200)]
staging: brcm80211: cleanup after R_REG/W_REG patches

Code cleanup. Removed unused sections. Added () to make macro safe.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: further simplified register access macro's
Roland Vossen [Wed, 1 Jun 2011 11:45:56 +0000 (13:45 +0200)]
staging: brcm80211: further simplified register access macro's

The SELECT_BUS_READ and SELECT_BUS_WRITE macro's always select
a (sdio) bus operation for fullmac, and a memory operation for
softmac. Thus they can be removed by expanding them in place.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved register read/write macro's
Roland Vossen [Wed, 1 Jun 2011 11:45:55 +0000 (13:45 +0200)]
staging: brcm80211: moved register read/write macro's

Code cleanup. R_REG()/W_REG() macro's are overly complex. Copied
the macro's to both fullmac and softmac. Next patches will simplify
both copies of the macro's.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed OSL_WRITE_REG and OSL_READ_REG macros
Roland Vossen [Wed, 1 Jun 2011 11:45:54 +0000 (13:45 +0200)]
staging: brcm80211: removed OSL_WRITE_REG and OSL_READ_REG macros

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove nvram related source files
Arend van Spriel [Wed, 1 Jun 2011 11:45:53 +0000 (13:45 +0200)]
staging: brcm80211: remove nvram related source files

nvram.c is intended for devices with configuration stored in flash. This
is not required for the softmac driver nor the fullmac driver so it has
been removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: renamed utility module related files
Roland Vossen [Wed, 1 Jun 2011 11:45:52 +0000 (13:45 +0200)]
staging: brcm80211: renamed utility module related files

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned up prefix for utility functions
Roland Vossen [Wed, 1 Jun 2011 11:45:51 +0000 (13:45 +0200)]
staging: brcm80211: cleaned up prefix for utility functions

Code cleanup. 'bcm' replaced by 'brcmu_', which is shorthand for
'Broadcom Utilities' (the 'brcmutil.ko' library module).

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed lmac remnants
Roland Vossen [Wed, 1 Jun 2011 11:45:50 +0000 (13:45 +0200)]
staging: brcm80211: removed lmac remnants

Code cleanup. LMAC (a Broadcom specific acronym) was not used.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed Broadcom specific acronym 'hnd'.
Roland Vossen [Wed, 1 Jun 2011 11:45:49 +0000 (13:45 +0200)]
staging: brcm80211: removed Broadcom specific acronym 'hnd'.

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed unused code from bcmotp.c
Roland Vossen [Wed, 1 Jun 2011 11:45:48 +0000 (13:45 +0200)]
staging: brcm80211: removed unused code from bcmotp.c

Code cleanup. The supported chips all contain an 'IPX' controller, the
older 'hnd' OTP controller is not used.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed wl_export.h
Roland Vossen [Wed, 1 Jun 2011 11:45:47 +0000 (13:45 +0200)]
staging: brcm80211: removed wl_export.h

Code cleanup, reducing number of header files. Merged into brcmsmac_80211.h.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed wl_dbg.h
Roland Vossen [Wed, 1 Jun 2011 11:45:46 +0000 (13:45 +0200)]
staging: brcm80211: removed wl_dbg.h

Code cleanup. Reducing number of header files. Merged into wlc_types.h.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: renamed files to get rid of wl_ file name prefix
Roland Vossen [Wed, 1 Jun 2011 11:45:45 +0000 (13:45 +0200)]
staging: brcm80211: renamed files to get rid of wl_ file name prefix

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed wl_ (vendor specific acronym)
Roland Vossen [Wed, 1 Jun 2011 11:45:44 +0000 (13:45 +0200)]
staging: brcm80211: removed wl_ (vendor specific acronym)

Replaced by brcms_, which is short hand for 'Broadcom softmac'.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: clean up wl_iw.h in fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:43 +0000 (13:45 +0200)]
staging: brcm80211: clean up wl_iw.h in fullmac

Remove #include lines in wl_iw.h

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: clean up wl_cfg80211.h in fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:42 +0000 (13:45 +0200)]
staging: brcm80211: clean up wl_cfg80211.h in fullmac

Remove #include lines in wl_cfg80211.h

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove sdioh.h from fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:41 +0000 (13:45 +0200)]
staging: brcm80211: remove sdioh.h from fullmac

Remove unused head file

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brmc80211: remove sdio.h from fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:40 +0000 (13:45 +0200)]
staging: brmc80211: remove sdio.h from fullmac

Use standard sdio.h from mmc core instead of private one

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: combine sbsdpcmdev.h and sbsdio.h
Franky Lin [Wed, 1 Jun 2011 11:45:39 +0000 (13:45 +0200)]
staging: brcm80211: combine sbsdpcmdev.h and sbsdio.h

Combine two head files both for sdio sb configuration in fullmac

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: absorb msgtrace.h in fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:38 +0000 (13:45 +0200)]
staging: brcm80211: absorb msgtrace.h in fullmac

Absorb msgtrace.h into dhd_common.c

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: absorb bcmsdpcm.h in fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:37 +0000 (13:45 +0200)]
staging: brcm80211: absorb bcmsdpcm.h in fullmac

Absorb bcmsdpcm.h into dhd_sdio.c

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: clean up dhd.h in fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:36 +0000 (13:45 +0200)]
staging: brcm80211: clean up dhd.h in fullmac

Remove #include lines in dhd.h

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: absorb bcmcdc.h into dhd_cdc.c
Franky Lin [Wed, 1 Jun 2011 11:45:35 +0000 (13:45 +0200)]
staging: brcm80211: absorb bcmcdc.h into dhd_cdc.c

Merge bcmcdc.h into dhd_cdc.c in fullmac as it's only used by
dhd_cdc.c

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove BCMEMBEDIMAGE related codes from fullmac
Franky Lin [Wed, 1 Jun 2011 11:45:34 +0000 (13:45 +0200)]
staging: brcm80211: remove BCMEMBEDIMAGE related codes from fullmac

Remove BCMEMBEDIMAGE related codes in fullmac driver as we don't
need this in firmware download routine.

Signed-off-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove phy_version.h
Arend van Spriel [Wed, 1 Jun 2011 11:45:33 +0000 (13:45 +0200)]
staging: brcm80211: remove phy_version.h

Removed the file phy_version.h from the driver sources. It was not
used. For keeping track of the phy version, which is a separately
developed component, one definition has been kept and placed in
wlc_phy_int.h.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: macro cleanup
Roland Vossen [Wed, 1 Jun 2011 11:45:32 +0000 (13:45 +0200)]
staging: brcm80211: macro cleanup

Code cleanup. Replaced bcopy() by memcpy(). Removed redundant PAD
macro definitions.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved sbdma.h into brcmsmac/bcmdma.h
Roland Vossen [Wed, 1 Jun 2011 11:45:31 +0000 (13:45 +0200)]
staging: brcm80211: moved sbdma.h into brcmsmac/bcmdma.h

Code cleanup. Removed fullmac dependencies on this file.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: deleted sbconfig.h, renamed sbcc.h
Roland Vossen [Wed, 1 Jun 2011 11:45:30 +0000 (13:45 +0200)]
staging: brcm80211: deleted sbconfig.h, renamed sbcc.h

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: replaced typedef si_t with struct si_pub
Roland Vossen [Wed, 1 Jun 2011 11:45:29 +0000 (13:45 +0200)]
staging: brcm80211: replaced typedef si_t with struct si_pub

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove pci core defintion files
Arend van Spriel [Wed, 1 Jun 2011 11:45:28 +0000 (13:45 +0200)]
staging: brcm80211: remove pci core defintion files

The source file nicpci.c is the only file left which needs the
pci core register definitions. These definitions have been added
to the source file so the include files can be removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove dependency on pci core difinitions from aiutils.c
Arend van Spriel [Wed, 1 Jun 2011 11:45:27 +0000 (13:45 +0200)]
staging: brcm80211: remove dependency on pci core difinitions from aiutils.c

The file aiutils.c included the register definition includes for the
PCI and PCIe core. This was for two functions which have been partly
moved to nicpci.c. This means that nicpci.h is the only include file
to provide interface to aiutils.c for PCI core related functions.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: add braces to SI_INFO macro definition
Arend van Spriel [Wed, 1 Jun 2011 11:45:26 +0000 (13:45 +0200)]
staging: brcm80211: add braces to SI_INFO macro definition

The additional braces allow the casted parameter to be indirected
immediately. Here is an example to clarify:
x = SI_INFO(y);    => z = SI_INFO(y)->field_a;
z = x->field_a;

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove unused functions from nicpci.c
Arend van Spriel [Wed, 1 Jun 2011 11:45:25 +0000 (13:45 +0200)]
staging: brcm80211: remove unused functions from nicpci.c

Several functions are defined but not used. These have been removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove functions from nicpci.h
Arend van Spriel [Wed, 1 Jun 2011 11:45:24 +0000 (13:45 +0200)]
staging: brcm80211: remove functions from nicpci.h

Couple of functions in the header file are actually only used by
nicpci.c itself and as such made static and removed from the header
file.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: move PCI related header files to appropriate driver folder
Arend van Spriel [Wed, 1 Jun 2011 11:45:23 +0000 (13:45 +0200)]
staging: brcm80211: move PCI related header files to appropriate driver folder

The include file pcicfg.h is now only required by brcmfmac driver. Similarly,
nicpci.h is only required by brcmsmac driver. These header files have been
moved to the appropriate driver specific folder.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove usage of pcicfg.h from brcmsmac driver
Arend van Spriel [Wed, 1 Jun 2011 11:45:22 +0000 (13:45 +0200)]
staging: brcm80211: remove usage of pcicfg.h from brcmsmac driver

All PCI related definitions needed by the brcmsmac driver are going to
be consolidated in single header file nicpci.h. This commit removes
need to include pcicfg.h in brcmsmac driver sources.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned bcmdefs.h
Roland Vossen [Wed, 1 Jun 2011 11:45:21 +0000 (13:45 +0200)]
staging: brcm80211: cleaned bcmdefs.h

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved header files to more specific directory
Roland Vossen [Wed, 1 Jun 2011 11:45:20 +0000 (13:45 +0200)]
staging: brcm80211: moved header files to more specific directory

Code cleanup. Header files only used by the softmac were moved to the
brcmsmac dir, same approach for fullmac header files.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned sb* header files
Roland Vossen [Wed, 1 Jun 2011 11:45:19 +0000 (13:45 +0200)]
staging: brcm80211: cleaned sb* header files

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove inclusion of bcmsrom_fmt.h
Arend van Spriel [Wed, 1 Jun 2011 11:45:18 +0000 (13:45 +0200)]
staging: brcm80211: remove inclusion of bcmsrom_fmt.h

The header file bcmsrom_fmt.h contains a lot of macro definitions
used by bcmsrom.c and one type definition used by wlc_phy_int.h.
The defintions have been moved appropriately and the include file
bcmsrom_fmt.h is removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove extern variable definitions in bcmsrom.c
Arend van Spriel [Wed, 1 Jun 2011 11:45:17 +0000 (13:45 +0200)]
staging: brcm80211: remove extern variable definitions in bcmsrom.c

The file bcmsrom.c defined two global externals. As these were also
not used these have been removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove usage of bcmsrom_tbl.h
Arend van Spriel [Wed, 1 Jun 2011 11:45:16 +0000 (13:45 +0200)]
staging: brcm80211: remove usage of bcmsrom_tbl.h

The include file bcmsrom_tbl.h was only included by bcmsrom.c. The
required definitions have been move to bcmsrom.c and bcmsrom_tbl.h
has subsequenly been removed.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove SDIO related definitions from nicpci.h
Arend van Spriel [Wed, 1 Jun 2011 11:45:15 +0000 (13:45 +0200)]
staging: brcm80211: remove SDIO related definitions from nicpci.h

The header file nicpci.h is now only used by brcmsmac driver, which
does not support SDIO. The conditional defintions have been removed
from the header file.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed include/proto dir
Roland Vossen [Wed, 1 Jun 2011 11:45:14 +0000 (13:45 +0200)]
staging: brcm80211: removed include/proto dir

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned bcmeth.h and bcmevent.h
Roland Vossen [Wed, 1 Jun 2011 11:45:13 +0000 (13:45 +0200)]
staging: brcm80211: cleaned bcmeth.h and bcmevent.h

Code cleanup. Deleted unused definitions and moved others into less
generic files.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed 802.11.h
Roland Vossen [Wed, 1 Jun 2011 11:45:12 +0000 (13:45 +0200)]
staging: brcm80211: removed 802.11.h

Code cleanup.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: emptied include/802.11.h
Roland Vossen [Wed, 1 Jun 2011 11:45:11 +0000 (13:45 +0200)]
staging: brcm80211: emptied include/802.11.h

Code cleanup. Removed unused definitions. Moved other definitions to less
generic locations.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed unused stuff from proto/802.11.h
Roland Vossen [Wed, 1 Jun 2011 11:45:10 +0000 (13:45 +0200)]
staging: brcm80211: removed unused stuff from proto/802.11.h

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: merged two header files into dhd_sdio.c
Roland Vossen [Wed, 1 Jun 2011 11:45:09 +0000 (13:45 +0200)]
staging: brcm80211: merged two header files into dhd_sdio.c

Code cleanup. Decreasing number of header files.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed 'hnd' from everything but function names
Roland Vossen [Wed, 1 Jun 2011 11:45:08 +0000 (13:45 +0200)]
staging: brcm80211: removed 'hnd' from everything but function names

Code cleanup. 'hnd' is a company specific acronym.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: removed 'hnd' from filenames
Roland Vossen [Wed, 1 Jun 2011 11:45:07 +0000 (13:45 +0200)]
staging: brcm80211: removed 'hnd' from filenames

Cleanup. 'hnd' is a company specific acronym.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>