Release 4.7 drivers/input/serio/i8042.h
  
  
#ifndef _I8042_H
#define _I8042_H
/*
 *  Copyright (c) 1999-2002 Vojtech Pavlik
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 */
/*
 * Arch-dependent inline functions and defines.
 */
#if defined(CONFIG_MACH_JAZZ)
#include "i8042-jazzio.h"
#elif defined(CONFIG_SGI_HAS_I8042)
#include "i8042-ip22io.h"
#elif defined(CONFIG_SNI_RM)
#include "i8042-snirm.h"
#elif defined(CONFIG_PPC)
#include "i8042-ppcio.h"
#elif defined(CONFIG_SPARC)
#include "i8042-sparcio.h"
#elif defined(CONFIG_X86) || defined(CONFIG_IA64)
#include "i8042-x86ia64io.h"
#elif defined(CONFIG_UNICORE32)
#include "i8042-unicore32io.h"
#else
#include "i8042-io.h"
#endif
/*
 * This is in 50us units, the time we wait for the i8042 to react. This
 * has to be long enough for the i8042 itself to timeout on sending a byte
 * to a non-existent mouse.
 */
#define I8042_CTL_TIMEOUT	10000
/*
 * Return codes.
 */
#define I8042_RET_CTL_TEST	0x55
/*
 * Expected maximum internal i8042 buffer size. This is used for flushing
 * the i8042 buffers.
 */
#define I8042_BUFFER_SIZE	16
/*
 * Number of AUX ports on controllers supporting active multiplexing
 * specification
 */
#define I8042_NUM_MUX_PORTS	4
/*
 * Debug.
 */
#ifdef DEBUG
static unsigned long i8042_start_time;
#define dbg_init() do { i8042_start_time = jiffies; } while (0)
#define dbg(format, arg...)							\
	do {                                                                    \
                if (i8042_debug)                                                \
                        printk(KERN_DEBUG KBUILD_MODNAME ": [%d] " format,      \
                               (int) (jiffies - i8042_start_time), ##arg);      \
        } while (0)
#define filter_dbg(filter, data, format, args...)		\
	do {                                                    \
                if (!i8042_debug)                               \
                        break;                                  \
                                                                \
                if (!filter || i8042_unmask_kbd_data)           \
                        dbg("%02x " format, data, ##args);      \
                else                                            \
                        dbg("** " format, ##args);              \
        } while (0)
#else
#define dbg_init() do { } while (0)
#define dbg(format, arg...)							\
	do {                                                                    \
                if (0)                                                          \
                        printk(KERN_DEBUG pr_fmt(format), ##arg);               \
        } while (0)
#define filter_dbg(filter, data, format, args...) do { } while (0)
#endif
#endif /* _I8042_H */
Overall Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| vojtech pavlik | vojtech pavlik | 79 | 43.89% | 4 | 22.22% | 
| stephen chandler paul | stephen chandler paul | 29 | 16.11% | 1 | 5.56% | 
| andrew morton | andrew morton | 17 | 9.44% | 1 | 5.56% | 
| bjorn helgaas | bjorn helgaas | 14 | 7.78% | 1 | 5.56% | 
| thomas bogendoerfer | thomas bogendoerfer | 10 | 5.56% | 2 | 11.11% | 
| guan xuetao | guan xuetao | 9 | 5.00% | 1 | 5.56% | 
| david s. miller | david s. miller | 8 | 4.44% | 1 | 5.56% | 
| dmitry torokhov | dmitry torokhov | 8 | 4.44% | 3 | 16.67% | 
| joe perches | joe perches | 3 | 1.67% | 1 | 5.56% | 
| dave jones | dave jones | 1 | 0.56% | 1 | 5.56% | 
| ralf baechle | ralf baechle | 1 | 0.56% | 1 | 5.56% | 
| adrian bunk | adrian bunk | 1 | 0.56% | 1 | 5.56% | 
 | Total | 180 | 100.00% | 18 | 100.00% | 
  
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.