2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2008-01-26 21:10:55 +08:00
|
|
|
* drivers/s390/char/sclp_cpi.c
|
|
|
|
* SCLP control programm identification
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
2008-01-26 21:10:55 +08:00
|
|
|
* Copyright IBM Corp. 2001, 2007
|
|
|
|
* Author(s): Martin Peschke <mpeschke@de.ibm.com>
|
|
|
|
* Michael Ernst <mernst@de.ibm.com>
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kmod.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/moduleparam.h>
|
2008-01-26 21:10:55 +08:00
|
|
|
#include <linux/version.h>
|
|
|
|
#include "sclp_cpi_sys.h"
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-12-16 00:18:20 +08:00
|
|
|
MODULE_LICENSE("GPL");
|
2008-01-26 21:10:55 +08:00
|
|
|
MODULE_DESCRIPTION("Identify this operating system instance "
|
|
|
|
"to the System z hardware");
|
|
|
|
MODULE_AUTHOR("Martin Peschke <mpeschke@de.ibm.com>, "
|
|
|
|
"Michael Ernst <mernst@de.ibm.com>");
|
2006-12-16 00:18:20 +08:00
|
|
|
|
2008-01-26 21:10:55 +08:00
|
|
|
static char *system_name = "";
|
|
|
|
static char *sysplex_name = "";
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
module_param(system_name, charp, 0);
|
|
|
|
MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters");
|
|
|
|
module_param(sysplex_name, charp, 0);
|
|
|
|
MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters");
|
|
|
|
|
2008-01-26 21:10:55 +08:00
|
|
|
static int __init cpi_module_init(void)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2008-01-26 21:10:55 +08:00
|
|
|
return sclp_cpi_set_data(system_name, sysplex_name, "LINUX",
|
|
|
|
LINUX_VERSION_CODE);
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void __exit cpi_module_exit(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
module_init(cpi_module_init);
|
|
|
|
module_exit(cpi_module_exit);
|