^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * printer.c -- Printer gadget driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 2003-2005 David Brownell
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 2006 Craig W. Nadler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <asm/byteorder.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/usb/ch9.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/usb/composite.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/usb/gadget.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/usb/g_printer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) USB_GADGET_COMPOSITE_OPTIONS();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define DRIVER_DESC "Printer Gadget"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define DRIVER_VERSION "2015 FEB 17"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static const char shortname [] = "printer";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #include "u_printer.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /*-------------------------------------------------------------------------*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) /* DO NOT REUSE THESE IDs with a protocol-incompatible driver!! Ever!!
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * Instead: allocate your own, using normal USB-IF procedures.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /* Thanks to NetChip Technologies for donating this product ID.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define PRINTER_VENDOR_NUM 0x0525 /* NetChip */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define PRINTER_PRODUCT_NUM 0xa4a8 /* Linux-USB Printer Gadget */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /* Some systems will want different product identifiers published in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) * device descriptor, either numbers or strings or both. These string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * parameters are in UTF-8 (superset of ASCII's 7 bit characters).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) module_param_named(iSerialNum, coverwrite.serial_number, charp, S_IRUGO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) MODULE_PARM_DESC(iSerialNum, "1");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) static char *iPNPstring;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) module_param(iPNPstring, charp, S_IRUGO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) MODULE_PARM_DESC(iPNPstring, "MFG:linux;MDL:g_printer;CLS:PRINTER;SN:1;");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) /* Number of requests to allocate per endpoint, not used for ep0. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) static unsigned qlen = 10;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) module_param(qlen, uint, S_IRUGO|S_IWUSR);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define QLEN qlen
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) static struct usb_function_instance *fi_printer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) static struct usb_function *f_printer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) /*-------------------------------------------------------------------------*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) * DESCRIPTORS ... most are static, but strings and (full) configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) * descriptors are built on demand.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) static struct usb_device_descriptor device_desc = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) .bLength = sizeof device_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) .bDescriptorType = USB_DT_DEVICE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) /* .bcdUSB = DYNAMIC */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) .bDeviceClass = USB_CLASS_PER_INTERFACE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) .bDeviceSubClass = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) .bDeviceProtocol = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) .idVendor = cpu_to_le16(PRINTER_VENDOR_NUM),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) .idProduct = cpu_to_le16(PRINTER_PRODUCT_NUM),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) .bNumConfigurations = 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) static const struct usb_descriptor_header *otg_desc[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) /*-------------------------------------------------------------------------*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) /* descriptors that are built on-demand */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) static char product_desc [40] = DRIVER_DESC;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) static char serial_num [40] = "1";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) static char *pnp_string =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) "MFG:linux;MDL:g_printer;CLS:PRINTER;SN:1;";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) /* static strings, in UTF-8 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) static struct usb_string strings [] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) [USB_GADGET_MANUFACTURER_IDX].s = "",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) [USB_GADGET_PRODUCT_IDX].s = product_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) [USB_GADGET_SERIAL_IDX].s = serial_num,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) { } /* end of list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) static struct usb_gadget_strings stringtab_dev = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) .language = 0x0409, /* en-us */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) .strings = strings,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) static struct usb_gadget_strings *dev_strings[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) &stringtab_dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) NULL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) static struct usb_configuration printer_cfg_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) .label = "printer",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) .bConfigurationValue = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) .bmAttributes = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) static int printer_do_config(struct usb_configuration *c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) struct usb_gadget *gadget = c->cdev->gadget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) int status = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) usb_ep_autoconfig_reset(gadget);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) usb_gadget_set_selfpowered(gadget);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) if (gadget_is_otg(gadget)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) printer_cfg_driver.descriptors = otg_desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) printer_cfg_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) f_printer = usb_get_function(fi_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) if (IS_ERR(f_printer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) return PTR_ERR(f_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) status = usb_add_function(c, f_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) if (status < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) usb_put_function(f_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) return status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) static int printer_bind(struct usb_composite_dev *cdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) struct f_printer_opts *opts;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) fi_printer = usb_get_function_instance("printer");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) if (IS_ERR(fi_printer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) return PTR_ERR(fi_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) opts = container_of(fi_printer, struct f_printer_opts, func_inst);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) opts->minor = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) opts->q_len = QLEN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) if (iPNPstring) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) opts->pnp_string = kstrdup(iPNPstring, GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) if (!opts->pnp_string) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) goto fail_put_func_inst;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) opts->pnp_string_allocated = true;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) * we don't free this memory in case of error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) * as printer cleanup func will do this for us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) } else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) opts->pnp_string = pnp_string;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) ret = usb_string_ids_tab(cdev, strings);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) if (ret < 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) goto fail_put_func_inst;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) device_desc.iManufacturer = strings[USB_GADGET_MANUFACTURER_IDX].id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) device_desc.iProduct = strings[USB_GADGET_PRODUCT_IDX].id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) device_desc.iSerialNumber = strings[USB_GADGET_SERIAL_IDX].id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) struct usb_descriptor_header *usb_desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) usb_desc = usb_otg_descriptor_alloc(cdev->gadget);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) if (!usb_desc) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) ret = -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) goto fail_put_func_inst;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) usb_otg_descriptor_init(cdev->gadget, usb_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) otg_desc[0] = usb_desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) otg_desc[1] = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) ret = usb_add_config(cdev, &printer_cfg_driver, printer_do_config);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) goto fail_free_otg_desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) usb_composite_overwrite_options(cdev, &coverwrite);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) fail_free_otg_desc:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) kfree(otg_desc[0]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) otg_desc[0] = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) fail_put_func_inst:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) usb_put_function_instance(fi_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) static int printer_unbind(struct usb_composite_dev *cdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) usb_put_function(f_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) usb_put_function_instance(fi_printer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) kfree(otg_desc[0]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) otg_desc[0] = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) static struct usb_composite_driver printer_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) .name = shortname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) .dev = &device_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) .strings = dev_strings,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) .max_speed = USB_SPEED_SUPER,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) .bind = printer_bind,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) .unbind = printer_unbind,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) module_usb_composite_driver(printer_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) MODULE_DESCRIPTION(DRIVER_DESC);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_AUTHOR("Craig Nadler");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_LICENSE("GPL");