mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 06:55:07 +07:00
8987691a4a
For power saving reasons, WiMAX links can be put in idle mode while connected after a certain time of the link not being used for tx or rx. In this mode, the device pages the base-station regularly and when data is ready to be transmitted, the link is revived. This patch allows the user to control the time the device has to be idle before it decides to go to idle mode from a sysfs interace. It also updates the initialization code to acknowledge the module variable 'idle_mode_disabled' when the firmware is a newer version (upcoming 1.4 vs 2.6.29's v1.3). The method for setting the idle mode timeout in the older firmwares is much more limited and can be only done at initialization time. Thus, the sysfs file will return -ENOSYS on older ones. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/*
|
|
* Intel Wireless WiMAX Connection 2400m
|
|
* Debug levels control file for the i2400m module
|
|
*
|
|
*
|
|
* Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com>
|
|
* Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version
|
|
* 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301, USA.
|
|
*/
|
|
#ifndef __debug_levels__h__
|
|
#define __debug_levels__h__
|
|
|
|
/* Maximum compile and run time debug level for all submodules */
|
|
#define D_MODULENAME i2400m
|
|
#define D_MASTER CONFIG_WIMAX_I2400M_DEBUG_LEVEL
|
|
|
|
#include <linux/wimax/debug.h>
|
|
|
|
/* List of all the enabled modules */
|
|
enum d_module {
|
|
D_SUBMODULE_DECLARE(control),
|
|
D_SUBMODULE_DECLARE(driver),
|
|
D_SUBMODULE_DECLARE(debugfs),
|
|
D_SUBMODULE_DECLARE(fw),
|
|
D_SUBMODULE_DECLARE(netdev),
|
|
D_SUBMODULE_DECLARE(rfkill),
|
|
D_SUBMODULE_DECLARE(rx),
|
|
D_SUBMODULE_DECLARE(sysfs),
|
|
D_SUBMODULE_DECLARE(tx),
|
|
};
|
|
|
|
|
|
#endif /* #ifndef __debug_levels__h__ */
|