~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/hid-debug.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 #ifndef __HID_DEBUG_H
  3 #define __HID_DEBUG_H
  4 
  5 /*
  6  *  Copyright (c) 2007-2009     Jiri Kosina
  7  */
  8 
  9 /*
 10  */
 11 
 12 #ifdef CONFIG_DEBUG_FS
 13 
 14 #include <linux/kfifo.h>
 15 
 16 #define HID_DEBUG_BUFSIZE 512
 17 #define HID_DEBUG_FIFOSIZE 512
 18 
 19 void hid_dump_input(struct hid_device *, struct hid_usage *, __s32);
 20 void hid_dump_report(struct hid_device *, int , u8 *, int);
 21 void hid_dump_device(struct hid_device *, struct seq_file *);
 22 void hid_dump_field(struct hid_field *, int, struct seq_file *);
 23 char *hid_resolv_usage(unsigned, struct seq_file *);
 24 void hid_debug_register(struct hid_device *, const char *);
 25 void hid_debug_unregister(struct hid_device *);
 26 void hid_debug_init(void);
 27 void hid_debug_exit(void);
 28 void hid_debug_event(struct hid_device *, char *);
 29 
 30 struct hid_debug_list {
 31         DECLARE_KFIFO_PTR(hid_debug_fifo, char);
 32         struct fasync_struct *fasync;
 33         struct hid_device *hdev;
 34         struct list_head node;
 35         struct mutex read_mutex;
 36 };
 37 
 38 #else
 39 
 40 #define hid_dump_input(a,b,c)           do { } while (0)
 41 #define hid_dump_report(a,b,c,d)        do { } while (0)
 42 #define hid_dump_device(a,b)            do { } while (0)
 43 #define hid_dump_field(a,b,c)           do { } while (0)
 44 #define hid_resolv_usage(a,b)           do { } while (0)
 45 #define hid_debug_register(a, b)        do { } while (0)
 46 #define hid_debug_unregister(a)         do { } while (0)
 47 #define hid_debug_init()                do { } while (0)
 48 #define hid_debug_exit()                do { } while (0)
 49 #define hid_debug_event(a,b)            do { } while (0)
 50 
 51 #endif
 52 
 53 #endif
 54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php