sclp_cpi.c 1.1 KB

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