| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 2 |  *  drivers/s390/char/sclp_cpi.c | 
 | 3 |  *    SCLP control programm identification | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 |  * | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 5 |  *    Copyright IBM Corp. 2001, 2007 | 
 | 6 |  *    Author(s): Martin Peschke <mpeschke@de.ibm.com> | 
 | 7 |  *		 Michael Ernst <mernst@de.ibm.com> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 |  */ | 
 | 9 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/kmod.h> | 
 | 11 | #include <linux/module.h> | 
 | 12 | #include <linux/moduleparam.h> | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 13 | #include <linux/version.h> | 
 | 14 | #include "sclp_cpi_sys.h" | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 |  | 
| Christian Borntraeger | b3c14d0 | 2006-12-15 17:18:20 +0100 | [diff] [blame] | 16 | MODULE_LICENSE("GPL"); | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 17 | MODULE_DESCRIPTION("Identify this operating system instance " | 
 | 18 | 		   "to the System z hardware"); | 
 | 19 | MODULE_AUTHOR("Martin Peschke <mpeschke@de.ibm.com>, " | 
 | 20 | 	      "Michael Ernst <mernst@de.ibm.com>"); | 
| Christian Borntraeger | b3c14d0 | 2006-12-15 17:18:20 +0100 | [diff] [blame] | 21 |  | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 22 | static char *system_name = ""; | 
 | 23 | static char *sysplex_name = ""; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | module_param(system_name, charp, 0); | 
 | 26 | MODULE_PARM_DESC(system_name, "e.g. hostname - max. 8 characters"); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | module_param(sysplex_name, charp, 0); | 
 | 28 | MODULE_PARM_DESC(sysplex_name, "if applicable - max. 8 characters"); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 |  | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 30 | static int __init cpi_module_init(void) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | { | 
| Michael Ernst | c05ffc4 | 2008-01-26 14:10:55 +0100 | [diff] [blame] | 32 | 	return sclp_cpi_set_data(system_name, sysplex_name, "LINUX", | 
 | 33 | 				 LINUX_VERSION_CODE); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | } | 
 | 35 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | static void __exit cpi_module_exit(void) | 
 | 37 | { | 
 | 38 | } | 
 | 39 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | module_init(cpi_module_init); | 
 | 41 | module_exit(cpi_module_exit); |