mirror of https://gitee.com/openkylin/linux.git
iwlwifi: move DVM code into subdirectory
Since we're working on another mode/driver inside iwlwifi, move the current one into a subdirectory to more cleanly separate the code. While at it, rename all the files. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
20041ea622
commit
1023fdc485
|
@ -1,19 +1,8 @@
|
|||
# DVM
|
||||
obj-$(CONFIG_IWLDVM) += iwldvm.o
|
||||
iwldvm-objs := iwl-agn.o iwl-agn-rs.o iwl-mac80211.o
|
||||
iwldvm-objs += iwl-ucode.o iwl-agn-tx.o
|
||||
iwldvm-objs += iwl-agn-lib.o iwl-agn-calib.o
|
||||
iwldvm-objs += iwl-agn-tt.o iwl-agn-sta.o iwl-agn-rx.o
|
||||
iwldvm-objs += iwl-eeprom.o iwl-power.o
|
||||
iwldvm-objs += iwl-scan.o iwl-led.o
|
||||
iwldvm-objs += iwl-agn-rxon.o iwl-agn-devices.o
|
||||
|
||||
iwldvm-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o
|
||||
iwldvm-$(CONFIG_IWLWIFI_DEVICE_TESTMODE) += iwl-testmode.o
|
||||
obj-$(CONFIG_IWLDVM) += dvm/
|
||||
|
||||
CFLAGS_iwl-devtrace.o := -I$(src)
|
||||
|
||||
# WIFI
|
||||
# common
|
||||
obj-$(CONFIG_IWLWIFI) += iwlwifi.o
|
||||
iwlwifi-objs += iwl-io.o
|
||||
iwlwifi-objs += iwl-drv.o
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# DVM
|
||||
obj-$(CONFIG_IWLDVM) += iwldvm.o
|
||||
iwldvm-objs += main.o rs.o mac80211.o ucode.o tx.o
|
||||
iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
|
||||
|
||||
iwldvm-objs += eeprom.o power.o
|
||||
iwldvm-objs += scan.o led.o
|
||||
iwldvm-objs += rxon.o devices.o
|
||||
|
||||
iwldvm-$(CONFIG_IWLWIFI_DEBUGFS) += debugfs.o
|
||||
iwldvm-$(CONFIG_IWLWIFI_DEVICE_TESTMODE) += testmode.o
|
||||
|
||||
ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/../
|
|
@ -63,9 +63,10 @@
|
|||
#ifndef __iwl_agn_h__
|
||||
#define __iwl_agn_h__
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-config.h"
|
||||
|
||||
#include "dev.h"
|
||||
|
||||
/* The first 11 queues (0-10) are used otherwise */
|
||||
#define IWLAGN_FIRST_AMPDU_QUEUE 11
|
||||
|
|
@ -63,10 +63,11 @@
|
|||
#include <linux/slab.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-agn.h"
|
||||
|
||||
#include "dev.h"
|
||||
#include "calib.h"
|
||||
#include "agn.h"
|
||||
|
||||
/*****************************************************************************
|
||||
* INIT calibrations framework
|
|
@ -62,8 +62,8 @@
|
|||
#ifndef __iwl_calib_h__
|
||||
#define __iwl_calib_h__
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-commands.h"
|
||||
#include "dev.h"
|
||||
#include "commands.h"
|
||||
|
||||
void iwl_chain_noise_calibration(struct iwl_priv *priv);
|
||||
void iwl_sensitivity_calibration(struct iwl_priv *priv);
|
|
@ -61,9 +61,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
/*
|
||||
* Please use this file (iwl-commands.h) only for uCode API definitions.
|
||||
* Please use this file (commands.h) only for uCode API definitions.
|
||||
* Please use iwl-xxxx-hw.h for hardware-related definitions.
|
||||
* Please use iwl-dev.h for driver implementation definitions.
|
||||
* Please use dev.h for driver implementation definitions.
|
||||
*/
|
||||
|
||||
#ifndef __iwl_commands_h__
|
|
@ -30,16 +30,12 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/debugfs.h>
|
||||
|
||||
#include <linux/ieee80211.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
/* create and remove of files */
|
||||
#define DEBUGFS_ADD_FILE(name, parent, mode) do { \
|
|
@ -24,8 +24,8 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
/*
|
||||
* Please use this file (iwl-dev.h) for driver implementation definitions.
|
||||
* Please use iwl-commands.h for uCode API definitions.
|
||||
* Please use this file (dev.h) for driver implementation definitions.
|
||||
* Please use commands.h for uCode API definitions.
|
||||
*/
|
||||
|
||||
#ifndef __iwl_dev_h__
|
||||
|
@ -39,17 +39,18 @@
|
|||
#include <linux/mutex.h>
|
||||
|
||||
#include "iwl-fw.h"
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-csr.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "iwl-led.h"
|
||||
#include "iwl-power.h"
|
||||
#include "iwl-agn-rs.h"
|
||||
#include "iwl-agn-tt.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-op-mode.h"
|
||||
#include "iwl-notif-wait.h"
|
||||
#include "iwl-trans.h"
|
||||
|
||||
#include "eeprom.h"
|
||||
#include "led.h"
|
||||
#include "power.h"
|
||||
#include "rs.h"
|
||||
#include "tt.h"
|
||||
|
||||
/* CT-KILL constants */
|
||||
#define CT_KILL_THRESHOLD_LEGACY 110 /* in Celsius */
|
||||
|
@ -664,7 +665,7 @@ struct iwl_lib_ops {
|
|||
/* device specific configuration */
|
||||
void (*nic_config)(struct iwl_priv *priv);
|
||||
|
||||
/* eeprom operations (as defined in iwl-eeprom.h) */
|
||||
/* eeprom operations (as defined in eeprom.h) */
|
||||
struct iwl_eeprom_ops eeprom_ops;
|
||||
|
||||
/* temperature */
|
|
@ -27,12 +27,13 @@
|
|||
/*
|
||||
* DVM device-specific data & functions
|
||||
*/
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-commands.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-prph.h"
|
||||
|
||||
#include "agn.h"
|
||||
#include "dev.h"
|
||||
#include "commands.h"
|
||||
|
||||
/*
|
||||
* 1000 series
|
||||
* ===========
|
|
@ -65,15 +65,13 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-prph.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
#include "eeprom.h"
|
||||
|
||||
/************************** EEPROM BANDS ****************************
|
||||
*
|
|
@ -34,12 +34,11 @@
|
|||
#include <net/mac80211.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
/* Throughput OFF time(ms) ON time (ms)
|
||||
* >300 25 25
|
|
@ -33,13 +33,14 @@
|
|||
#include <linux/sched.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-modparams.h"
|
||||
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
int iwlagn_hw_valid_rtc_data_addr(u32 addr)
|
||||
{
|
||||
return (addr >= IWLAGN_RTC_DATA_LOWER_BOUND) &&
|
|
@ -43,15 +43,16 @@
|
|||
|
||||
#include <asm/div64.h>
|
||||
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-op-mode.h"
|
||||
#include "iwl-modparams.h"
|
||||
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "calib.h"
|
||||
#include "agn.h"
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* mac80211 entry point functions
|
|
@ -44,16 +44,17 @@
|
|||
|
||||
#include <asm/div64.h>
|
||||
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-op-mode.h"
|
||||
#include "iwl-drv.h"
|
||||
#include "iwl-modparams.h"
|
||||
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "calib.h"
|
||||
#include "agn.h"
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* module boiler plate
|
|
@ -31,18 +31,16 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-commands.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-power.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
#include "commands.h"
|
||||
#include "power.h"
|
||||
|
||||
/*
|
||||
* Setting power level allows the card to go to sleep when not busy.
|
|
@ -28,7 +28,7 @@
|
|||
#ifndef __iwl_power_setting_h__
|
||||
#define __iwl_power_setting_h__
|
||||
|
||||
#include "iwl-commands.h"
|
||||
#include "commands.h"
|
||||
|
||||
struct iwl_power_mgr {
|
||||
struct iwl_powertable_cmd sleep_cmd;
|
|
@ -35,10 +35,8 @@
|
|||
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-op-mode.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
#define RS_NAME "iwl-agn-rs"
|
||||
|
|
@ -29,9 +29,10 @@
|
|||
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-commands.h"
|
||||
#include "iwl-config.h"
|
||||
|
||||
#include "commands.h"
|
||||
|
||||
struct iwl_rate_info {
|
||||
u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */
|
||||
u8 plcp_siso; /* uCode API: IWL_RATE_SISO_6M_PLCP, etc. */
|
|
@ -32,12 +32,11 @@
|
|||
#include <linux/sched.h>
|
||||
#include <net/mac80211.h>
|
||||
#include <asm/unaligned.h>
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "calib.h"
|
||||
#include "agn.h"
|
||||
|
||||
#define IWL_CMD_ENTRY(x) [x] = #x
|
||||
|
|
@ -25,11 +25,11 @@
|
|||
*****************************************************************************/
|
||||
|
||||
#include <linux/etherdevice.h>
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
#include "calib.h"
|
||||
|
||||
/*
|
||||
* initialize rxon structure with default values from eeprom
|
|
@ -30,11 +30,9 @@
|
|||
#include <linux/etherdevice.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
/* For active scan, listen ACTIVE_DWELL_TIME (msec) on each channel after
|
||||
* sending probe req. This should be set long enough to hear probe responses
|
|
@ -28,10 +28,9 @@
|
|||
*****************************************************************************/
|
||||
#include <linux/etherdevice.h>
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
||||
|
|
@ -69,15 +69,14 @@
|
|||
#include <net/cfg80211.h>
|
||||
#include <net/mac80211.h>
|
||||
#include <net/netlink.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-testmode.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-fh.h"
|
||||
#include "iwl-prph.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
#include "testmode.h"
|
||||
|
||||
|
||||
/* Periphery registers absolute lower bound. This is used in order to
|
||||
|
@ -89,7 +88,7 @@
|
|||
/* The TLVs used in the gnl message policy between the kernel module and
|
||||
* user space application. iwl_testmode_gnl_msg_policy is to be carried
|
||||
* through the NL80211_CMD_TESTMODE channel regulated by nl80211.
|
||||
* See iwl-testmode.h
|
||||
* See testmode.h
|
||||
*/
|
||||
static
|
||||
struct nla_policy iwl_testmode_gnl_msg_policy[IWL_TM_ATTR_MAX] = {
|
||||
|
@ -129,7 +128,7 @@ struct nla_policy iwl_testmode_gnl_msg_policy[IWL_TM_ATTR_MAX] = {
|
|||
};
|
||||
|
||||
/*
|
||||
* See the struct iwl_rx_packet in iwl-commands.h for the format of the
|
||||
* See the struct iwl_rx_packet in commands.h for the format of the
|
||||
* received events from the device
|
||||
*/
|
||||
static inline int get_event_length(struct iwl_rx_cmd_buffer *rxb)
|
|
@ -31,17 +31,15 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <net/mac80211.h>
|
||||
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-eeprom.h"
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-commands.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-agn-tt.h"
|
||||
#include "iwl-modparams.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "agn.h"
|
||||
#include "eeprom.h"
|
||||
#include "dev.h"
|
||||
#include "commands.h"
|
||||
#include "tt.h"
|
||||
|
||||
/* default Thermal Throttling transaction table
|
||||
* Current state | Throttling Down | Throttling Up
|
|
@ -28,7 +28,7 @@
|
|||
#ifndef __iwl_tt_setting_h__
|
||||
#define __iwl_tt_setting_h__
|
||||
|
||||
#include "iwl-commands.h"
|
||||
#include "commands.h"
|
||||
|
||||
#define IWL_ABSOLUTE_ZERO 0
|
||||
#define IWL_ABSOLUTE_MAX 0xFFFFFFFF
|
|
@ -32,12 +32,11 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/ieee80211.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
|
||||
static const u8 tid_to_ac[] = {
|
||||
IEEE80211_AC_BE,
|
|
@ -30,15 +30,16 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include "iwl-dev.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "iwl-agn.h"
|
||||
#include "iwl-agn-calib.h"
|
||||
#include "iwl-trans.h"
|
||||
#include "iwl-fh.h"
|
||||
#include "iwl-op-mode.h"
|
||||
|
||||
#include "dev.h"
|
||||
#include "agn.h"
|
||||
#include "calib.h"
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* uCode download functions
|
|
@ -28,6 +28,7 @@
|
|||
#define __IWLWIFI_DEVICE_TRACE
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/device.h>
|
||||
|
||||
|
||||
#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "iwl-config.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "cfg.h"
|
||||
#include "iwl-commands.h" /* needed for BT for now */
|
||||
#include "dvm/commands.h" /* needed for BT for now */
|
||||
|
||||
/* Highest firmware API version supported */
|
||||
#define IWL2030_UCODE_API_MAX 6
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "iwl-config.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "cfg.h"
|
||||
#include "iwl-commands.h" /* needed for BT for now */
|
||||
#include "dvm/commands.h" /* needed for BT for now */
|
||||
|
||||
/* Highest firmware API version supported */
|
||||
#define IWL6000_UCODE_API_MAX 6
|
||||
|
|
|
@ -72,11 +72,10 @@
|
|||
#include "iwl-trans.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"
|
||||
#include "dvm/commands.h"
|
||||
|
||||
#define SCD_QUEUECHAIN_SEL_ALL(trans, trans_pcie) \
|
||||
(((1<<trans->cfg->base_params->num_of_queues) - 1) &\
|
||||
|
|
|
@ -34,11 +34,10 @@
|
|||
#include "iwl-csr.h"
|
||||
#include "iwl-prph.h"
|
||||
#include "iwl-io.h"
|
||||
#include "iwl-agn-hw.h"
|
||||
#include "iwl-op-mode.h"
|
||||
#include "internal.h"
|
||||
/* FIXME: need to abstract out TX command (once we know what it looks like) */
|
||||
#include "iwl-commands.h"
|
||||
#include "dvm/commands.h"
|
||||
|
||||
#define IWL_TX_CRC_SIZE 4
|
||||
#define IWL_TX_DELIMITER_SIZE 4
|
||||
|
|
Loading…
Reference in New Issue