iwlwifi: move PCIe into subdirectory
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 May 2012 17:13:54 +0000 (19:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jun 2012 11:09:30 +0000 (13:09 +0200)
Structure the code a bit more and move all PCIe code
including the hardware configuration files into a
PCIe specific subdirectory.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/Makefile
drivers/net/wireless/iwlwifi/pcie/1000.c [moved from drivers/net/wireless/iwlwifi/iwl-1000.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/2000.c [moved from drivers/net/wireless/iwlwifi/iwl-2000.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/5000.c [moved from drivers/net/wireless/iwlwifi/iwl-5000.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/6000.c [moved from drivers/net/wireless/iwlwifi/iwl-6000.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/cfg.h [moved from drivers/net/wireless/iwlwifi/iwl-cfg.h with 100% similarity]
drivers/net/wireless/iwlwifi/pcie/drv.c [moved from drivers/net/wireless/iwlwifi/iwl-pci.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/internal.h [moved from drivers/net/wireless/iwlwifi/iwl-trans-pcie-int.h with 100% similarity]
drivers/net/wireless/iwlwifi/pcie/rx.c [moved from drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/trans.c [moved from drivers/net/wireless/iwlwifi/iwl-trans-pcie.c with 99% similarity]
drivers/net/wireless/iwlwifi/pcie/tx.c [moved from drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c with 99% similarity]

index 9310027..f155126 100644 (file)
@@ -15,17 +15,13 @@ CFLAGS_iwl-devtrace.o := -I$(src)
 
 # WIFI
 obj-$(CONFIG_IWLWIFI)  += iwlwifi.o
-iwlwifi-objs           += iwl-5000.o
-iwlwifi-objs           += iwl-6000.o
-iwlwifi-objs           += iwl-1000.o
-iwlwifi-objs           += iwl-2000.o
 iwlwifi-objs           += iwl-io.o
-iwlwifi-objs           += iwl-pci.o
 iwlwifi-objs           += iwl-drv.o
 iwlwifi-objs           += iwl-debug.o
 iwlwifi-objs           += iwl-notif-wait.o
-iwlwifi-objs           += iwl-trans-pcie.o iwl-trans-pcie-rx.o iwl-trans-pcie-tx.o
+iwlwifi-objs           += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o
+iwlwifi-objs           += pcie/1000.o pcie/2000.o pcie/5000.o pcie/6000.o
 
 iwlwifi-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o
 
-ccflags-y += -D__CHECK_ENDIAN__
+ccflags-y += -D__CHECK_ENDIAN__ -I$(src)
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-1000.c
rename to drivers/net/wireless/iwlwifi/pcie/1000.c
index 2629a66..0cfbf9f 100644 (file)
@@ -27,9 +27,9 @@
 #include <linux/module.h>
 #include <linux/stringify.h>
 #include "iwl-config.h"
-#include "iwl-cfg.h"
 #include "iwl-csr.h"
 #include "iwl-agn-hw.h"
+#include "cfg.h"
 
 /* Highest firmware API version supported */
 #define IWL1000_UCODE_API_MAX 5
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-2000.c
rename to drivers/net/wireless/iwlwifi/pcie/2000.c
index 8133105..f6efa12 100644 (file)
@@ -27,8 +27,8 @@
 #include <linux/module.h>
 #include <linux/stringify.h>
 #include "iwl-config.h"
-#include "iwl-cfg.h"
 #include "iwl-agn-hw.h"
+#include "cfg.h"
 #include "iwl-commands.h" /* needed for BT for now */
 
 /* Highest firmware API version supported */
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-5000.c
rename to drivers/net/wireless/iwlwifi/pcie/5000.c
index 8e26bc8..92e502e 100644 (file)
@@ -27,9 +27,9 @@
 #include <linux/module.h>
 #include <linux/stringify.h>
 #include "iwl-config.h"
-#include "iwl-cfg.h"
 #include "iwl-agn-hw.h"
 #include "iwl-csr.h"
+#include "cfg.h"
 
 /* Highest firmware API version supported */
 #define IWL5000_UCODE_API_MAX 5
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-6000.c
rename to drivers/net/wireless/iwlwifi/pcie/6000.c
index 19f7ee8..7360cd9 100644 (file)
@@ -27,8 +27,8 @@
 #include <linux/module.h>
 #include <linux/stringify.h>
 #include "iwl-config.h"
-#include "iwl-cfg.h"
 #include "iwl-agn-hw.h"
+#include "cfg.h"
 #include "iwl-commands.h" /* needed for BT for now */
 
 /* Highest firmware API version supported */
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-pci.c
rename to drivers/net/wireless/iwlwifi/pcie/drv.c
index 0c8a1c2..f4c3500 100644 (file)
 #include <linux/pci-aspm.h>
 
 #include "iwl-trans.h"
-#include "iwl-cfg.h"
 #include "iwl-drv.h"
 #include "iwl-trans.h"
-#include "iwl-trans-pcie-int.h"
+
+#include "cfg.h"
+#include "internal.h"
 
 #define IWL_PCI_DEVICE(dev, subdev, cfg) \
        .vendor = PCI_VENDOR_ID_INTEL,  .device = (dev), \
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c
rename to drivers/net/wireless/iwlwifi/pcie/rx.c
index 98605fc..d6860c0 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "iwl-prph.h"
 #include "iwl-io.h"
-#include "iwl-trans-pcie-int.h"
+#include "internal.h"
 #include "iwl-op-mode.h"
 
 #ifdef CONFIG_IWLWIFI_IDI
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
rename to drivers/net/wireless/iwlwifi/pcie/trans.c
index 1e50401..e8a04a1 100644 (file)
 
 #include "iwl-drv.h"
 #include "iwl-trans.h"
-#include "iwl-trans-pcie-int.h"
 #include "iwl-csr.h"
 #include "iwl-prph.h"
 #include "iwl-eeprom.h"
 #include "iwl-agn-hw.h"
+#include "internal.h"
 /* FIXME: need to abstract out TX command (once we know what it looks like) */
 #include "iwl-commands.h"
 
similarity index 99%
rename from drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c
rename to drivers/net/wireless/iwlwifi/pcie/tx.c
index 6f601cd..0b8bbb0 100644 (file)
@@ -36,7 +36,7 @@
 #include "iwl-io.h"
 #include "iwl-agn-hw.h"
 #include "iwl-op-mode.h"
-#include "iwl-trans-pcie-int.h"
+#include "internal.h"
 /* FIXME: need to abstract out TX command (once we know what it looks like) */
 #include "iwl-commands.h"