#define MYDRVNAME "visorbus"
/* module parameters */
-int visorbus_debug;
-int visorbus_forcematch;
-int visorbus_forcenomatch;
+static int visorbus_debug;
+static int visorbus_forcematch;
+static int visorbus_forcenomatch;
#define MAXDEVICETEST 4
-int visorbus_devicetest;
-int visorbus_debugref;
+static int visorbus_devicetest;
+static int visorbus_debugref;
#define SERIALLOOPBACKCHANADDR (100 * 1024 * 1024)
/** This is the private data that we store for each bus device instance.
.attrs = visorbus_bus_attrs,
};
-const struct attribute_group *visorbus_bus_groups[] = {
+static const struct attribute_group *visorbus_bus_groups[] = {
&visorbus_bus_group,
NULL,
};
static int register_devmajorminor_attributes(struct visor_device *dev);
-int
+static int
devmajorminor_create_file(struct visor_device *dev, const char *name,
int major, int minor)
{
return rc;
}
-void
+static void
devmajorminor_remove_file(struct visor_device *dev, int slot)
{
int maxdevnodes = ARRAY_SIZE(dev->devnodes) / sizeof(dev->devnodes[0]);
kfree(myattr);
}
-void
+static void
devmajorminor_remove_all_files(struct visor_device *dev)
{
int i = 0;
return rc;
}
-void
+static void
unregister_devmajorminor_attributes(struct visor_device *dev)
{
if (!dev->kobjdevmajorminor.parent)
module_param_named(debug, visorbus_debug, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_debug, "1 to debug");
-int visorbus_debug = 0;
module_param_named(forcematch, visorbus_forcematch, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_forcematch,
"1 to force a successful dev <--> drv match");
-int visorbus_forcematch = 0;
module_param_named(forcenomatch, visorbus_forcenomatch, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_forcenomatch,
"1 to force an UNsuccessful dev <--> drv match");
-int visorbus_forcenomatch = 0;
module_param_named(devicetest, visorbus_devicetest, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_devicetest,
"non-0 to just test device creation and destruction");
-int visorbus_devicetest = 0;
module_param_named(debugref, visorbus_debugref, int, S_IRUGO);
MODULE_PARM_DESC(visorbus_debugref, "1 to debug reference counting");
-int visorbus_debugref = 0;
MODULE_AUTHOR("Unisys");
MODULE_LICENSE("GPL");