[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.63.1.el8_10.x86_64
/
include
/
linux
/
input
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ad714x.h
1,376 B
SET
[ EDIT ]
|
[ DEL ]
📄 adp5589.h
5,789 B
SET
[ EDIT ]
|
[ DEL ]
📄 adxl34x.h
11,580 B
SET
[ EDIT ]
|
[ DEL ]
📄 as5011.h
399 B
SET
[ EDIT ]
|
[ DEL ]
📄 auo-pixcir-ts.h
998 B
SET
[ EDIT ]
|
[ DEL ]
📄 bu21013.h
725 B
SET
[ EDIT ]
|
[ DEL ]
📄 cma3000.h
1,055 B
SET
[ EDIT ]
|
[ DEL ]
📄 cy8ctmg110_pdata.h
262 B
SET
[ EDIT ]
|
[ DEL ]
📄 cyttsp.h
959 B
SET
[ EDIT ]
|
[ DEL ]
📄 elan-i2c-ids.h
1,737 B
SET
[ EDIT ]
|
[ DEL ]
📄 gp2ap002a00f.h
671 B
SET
[ EDIT ]
|
[ DEL ]
📄 ili210x.h
207 B
SET
[ EDIT ]
|
[ DEL ]
📄 kxtj9.h
1,168 B
SET
[ EDIT ]
|
[ DEL ]
📄 lm8333.h
674 B
SET
[ EDIT ]
|
[ DEL ]
📄 matrix_keypad.h
3,026 B
SET
[ EDIT ]
|
[ DEL ]
📄 mt.h
3,455 B
SET
[ EDIT ]
|
[ DEL ]
📄 navpoint.h
244 B
SET
[ EDIT ]
|
[ DEL ]
📄 samsung-keypad.h
1,114 B
SET
[ EDIT ]
|
[ DEL ]
📄 sh_keysc.h
431 B
SET
[ EDIT ]
|
[ DEL ]
📄 sparse-keymap.h
1,968 B
SET
[ EDIT ]
|
[ DEL ]
📄 touchscreen.h
763 B
SET
[ EDIT ]
|
[ DEL ]
📄 tps6507x-ts.h
535 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: sparse-keymap.h
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _SPARSE_KEYMAP_H #define _SPARSE_KEYMAP_H /* * Copyright (c) 2009 Dmitry Torokhov */ #define KE_END 0 /* Indicates end of keymap */ #define KE_KEY 1 /* Ordinary key/button */ #define KE_SW 2 /* Switch (predetermined value) */ #define KE_VSW 3 /* Switch (value supplied at runtime) */ #define KE_IGNORE 4 /* Known entry that should be ignored */ #define KE_LAST KE_IGNORE /** * struct key_entry - keymap entry for use in sparse keymap * @type: Type of the key entry (KE_KEY, KE_SW, KE_VSW, KE_END); * drivers are allowed to extend the list with their own * private definitions. * @code: Device-specific data identifying the button/switch * @keycode: KEY_* code assigned to a key/button * @sw.code: SW_* code assigned to a switch * @sw.value: Value that should be sent in an input even when KE_SW * switch is toggled. KE_VSW switches ignore this field and * expect driver to supply value for the event. * * This structure defines an entry in a sparse keymap used by some * input devices for which traditional table-based approach is not * suitable. */ struct key_entry { int type; /* See KE_* above */ u32 code; union { u16 keycode; /* For KE_KEY */ struct { /* For KE_SW, KE_VSW */ u8 code; u8 value; /* For KE_SW, ignored by KE_VSW */ } sw; }; }; struct key_entry *sparse_keymap_entry_from_scancode(struct input_dev *dev, unsigned int code); struct key_entry *sparse_keymap_entry_from_keycode(struct input_dev *dev, unsigned int code); int sparse_keymap_setup(struct input_dev *dev, const struct key_entry *keymap, int (*setup)(struct input_dev *, struct key_entry *)); void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke, unsigned int value, bool autorelease); bool sparse_keymap_report_event(struct input_dev *dev, unsigned int code, unsigned int value, bool autorelease); #endif /* _SPARSE_KEYMAP_H */