blob: 5716487b8c9d378cf0c7b37645abd985d894a687 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Michael Ernstc05ffc42008-01-26 14:10:55 +01002 * drivers/s390/char/sclp_cpi.c
3 * SCLP control programm identification
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
Michael Ernstc05ffc42008-01-26 14:10:55 +01005 * Copyright IBM Corp. 2001, 2007
6 * Author(s): Martin Peschke <mpeschke@de.ibm.com>
7 * Michael Ernst <mernst@de.ibm.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 */
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <linux/kmod.h>
11#include <linux/module.h>
12#include <linux/moduleparam.h>
Michael Ernstc05ffc42008-01-26 14:10:55 +010013#include <linux/version.h>
14#include "sclp_cpi_sys.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Christian Borntraegerb3c14d02006-12-15 17:18:20 +010016MODULE_LICENSE("GPL");
Michael Ernstc05ffc42008-01-26 14:10:55 +010017MODULE_DESCRIPTION("Identify this operating system instance "
18 "to the System z hardware");
19MODULE_AUTHOR("Martin Peschke <mpeschke@de.ibm.com>, "
20 "Michael Ernst <mernst@de.ibm.com>");
Christian Borntraegerb3c14d02006-12-15 17:18:20 +010021
Michael Ernstc05ffc42008-01-26 14:10:55 +010022static char *system_name = "";
23static char *sysplex_name = "";
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025module_param(system_name, charp, 0);
26MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters");
Linus Torvalds1da177e2005-04-16 15:20:36 -070027module_param(sysplex_name, charp, 0);
28MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters");
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Michael Ernstc05ffc42008-01-26 14:10:55 +010030static int __init cpi_module_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070031{
Michael Ernstc05ffc42008-01-26 14:10:55 +010032 return sclp_cpi_set_data(system_name, sysplex_name, "LINUX",
33 LINUX_VERSION_CODE);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034}
35
Linus Torvalds1da177e2005-04-16 15:20:36 -070036static void __exit cpi_module_exit(void)
37{
38}
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040module_init(cpi_module_init);
41module_exit(cpi_module_exit);