i8042.c (9f4813b531a0b8cc502fcfb142937fe4e9104d77) i8042.c (6052abf8ff783a14dcd2416be2c029ebeba9ad98)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * i8042 keyboard and mouse controller driver for Linux
4 *
5 * Copyright (c) 1999-2004 Vojtech Pavlik
6 */
7
8

--- 7 unchanged lines hidden (view full) ---

16#include <linux/init.h>
17#include <linux/serio.h>
18#include <linux/err.h>
19#include <linux/rcupdate.h>
20#include <linux/platform_device.h>
21#include <linux/i8042.h>
22#include <linux/slab.h>
23#include <linux/suspend.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * i8042 keyboard and mouse controller driver for Linux
4 *
5 * Copyright (c) 1999-2004 Vojtech Pavlik
6 */
7
8

--- 7 unchanged lines hidden (view full) ---

16#include <linux/init.h>
17#include <linux/serio.h>
18#include <linux/err.h>
19#include <linux/rcupdate.h>
20#include <linux/platform_device.h>
21#include <linux/i8042.h>
22#include <linux/slab.h>
23#include <linux/suspend.h>
24#include <linux/property.h>
24
25#include <asm/io.h>
26
27MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
28MODULE_DESCRIPTION("i8042 keyboard and mouse controller driver");
29MODULE_LICENSE("GPL");
30
31static bool i8042_nokbd;

--- 87 unchanged lines hidden (view full) ---

119static bool i8042_unmask_kbd_data;
120module_param_named(unmask_kbd_data, i8042_unmask_kbd_data, bool, 0600);
121MODULE_PARM_DESC(unmask_kbd_data, "Unconditional enable (may reveal sensitive data) of normally sanitize-filtered kbd data traffic debug log [pre-condition: i8042.debug=1 enabled]");
122#endif
123
124static bool i8042_bypass_aux_irq_test;
125static char i8042_kbd_firmware_id[128];
126static char i8042_aux_firmware_id[128];
25
26#include <asm/io.h>
27
28MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
29MODULE_DESCRIPTION("i8042 keyboard and mouse controller driver");
30MODULE_LICENSE("GPL");
31
32static bool i8042_nokbd;

--- 87 unchanged lines hidden (view full) ---

120static bool i8042_unmask_kbd_data;
121module_param_named(unmask_kbd_data, i8042_unmask_kbd_data, bool, 0600);
122MODULE_PARM_DESC(unmask_kbd_data, "Unconditional enable (may reveal sensitive data) of normally sanitize-filtered kbd data traffic debug log [pre-condition: i8042.debug=1 enabled]");
123#endif
124
125static bool i8042_bypass_aux_irq_test;
126static char i8042_kbd_firmware_id[128];
127static char i8042_aux_firmware_id[128];
128static struct fwnode_handle *i8042_kbd_fwnode;
127
128#include "i8042.h"
129
130/*
131 * i8042_lock protects serialization between i8042_command and
132 * the interrupt handler.
133 */
134static DEFINE_SPINLOCK(i8042_lock);

--- 1195 unchanged lines hidden (view full) ---

1330 serio->close = i8042_port_close;
1331 serio->ps2_cmd_mutex = &i8042_mutex;
1332 serio->port_data = port;
1333 serio->dev.parent = &i8042_platform_device->dev;
1334 strlcpy(serio->name, "i8042 KBD port", sizeof(serio->name));
1335 strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys));
1336 strlcpy(serio->firmware_id, i8042_kbd_firmware_id,
1337 sizeof(serio->firmware_id));
129
130#include "i8042.h"
131
132/*
133 * i8042_lock protects serialization between i8042_command and
134 * the interrupt handler.
135 */
136static DEFINE_SPINLOCK(i8042_lock);

--- 1195 unchanged lines hidden (view full) ---

1332 serio->close = i8042_port_close;
1333 serio->ps2_cmd_mutex = &i8042_mutex;
1334 serio->port_data = port;
1335 serio->dev.parent = &i8042_platform_device->dev;
1336 strlcpy(serio->name, "i8042 KBD port", sizeof(serio->name));
1337 strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys));
1338 strlcpy(serio->firmware_id, i8042_kbd_firmware_id,
1339 sizeof(serio->firmware_id));
1340 set_primary_fwnode(&serio->dev, i8042_kbd_fwnode);
1338
1339 port->serio = serio;
1340 port->irq = I8042_KBD_IRQ;
1341
1342 return 0;
1343}
1344
1345static int __init i8042_create_aux_port(int idx)

--- 300 unchanged lines hidden ---
1341
1342 port->serio = serio;
1343 port->irq = I8042_KBD_IRQ;
1344
1345 return 0;
1346}
1347
1348static int __init i8042_create_aux_port(int idx)

--- 300 unchanged lines hidden ---