diff options
author | Yunhong Jiang <yunhong.jiang@intel.com> | 2015-08-04 12:17:53 -0700 |
---|---|---|
committer | Yunhong Jiang <yunhong.jiang@intel.com> | 2015-08-04 15:44:42 -0700 |
commit | 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (patch) | |
tree | 1c9cafbcd35f783a87880a10f85d1a060db1a563 /kernel/drivers/staging/ozwpan/ozmain.c | |
parent | 98260f3884f4a202f9ca5eabed40b1354c489b29 (diff) |
Add the rt linux 4.1.3-rt3 as base
Import the rt linux 4.1.3-rt3 as OPNFV kvm base.
It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and
the base is:
commit 0917f823c59692d751951bf5ea699a2d1e2f26a2
Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Sat Jul 25 12:13:34 2015 +0200
Prepare v4.1.3-rt3
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
We lose all the git history this way and it's not good. We
should apply another opnfv project repo in future.
Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Diffstat (limited to 'kernel/drivers/staging/ozwpan/ozmain.c')
-rw-r--r-- | kernel/drivers/staging/ozwpan/ozmain.c | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/kernel/drivers/staging/ozwpan/ozmain.c b/kernel/drivers/staging/ozwpan/ozmain.c new file mode 100644 index 000000000..74ef34815 --- /dev/null +++ b/kernel/drivers/staging/ozwpan/ozmain.c @@ -0,0 +1,71 @@ +/* ----------------------------------------------------------------------------- + * Copyright (c) 2011 Ozmo Inc + * Released under the GNU General Public License Version 2 (GPLv2). + * ----------------------------------------------------------------------------- + */ + +#include <linux/init.h> +#include <linux/module.h> +#include <linux/timer.h> +#include <linux/sched.h> +#include <linux/netdevice.h> +#include <linux/errno.h> +#include <linux/ieee80211.h> +#include "ozdbg.h" +#include "ozpd.h" +#include "ozproto.h" +#include "ozcdev.h" + +unsigned int oz_dbg_mask = OZ_DEFAULT_DBG_MASK; + +/* + * The name of the 802.11 mac device. Empty string is the default value but a + * value can be supplied as a parameter to the module. An empty string means + * bind to nothing. '*' means bind to all netcards - this includes non-802.11 + * netcards. Bindings can be added later using an IOCTL. + */ +static char *g_net_dev = ""; +module_param(g_net_dev, charp, S_IRUGO); +MODULE_PARM_DESC(g_net_dev, "The device(s) to bind to; " + "'*' means all, '' (empty string; default) means none."); + +/* + * Context: process + */ +static int __init ozwpan_init(void) +{ + int err; + + err = oz_cdev_register(); + if (err) + return err; + err = oz_protocol_init(g_net_dev); + if (err) + goto err_protocol; + oz_app_enable(OZ_APPID_USB, 1); + oz_apps_init(); + return 0; + +err_protocol: + oz_cdev_deregister(); + return err; +} + +/* + * Context: process + */ +static void __exit ozwpan_exit(void) +{ + oz_protocol_term(); + oz_apps_term(); + oz_cdev_deregister(); +} + +module_init(ozwpan_init); +module_exit(ozwpan_exit); + +MODULE_AUTHOR("Chris Kelly"); +MODULE_DESCRIPTION("Ozmo Devices USB over WiFi hcd driver"); +MODULE_VERSION("1.0.13"); +MODULE_LICENSE("GPL"); + |