This causes a build error with CONFIG_WALNUT because kb_cs and kb_data were removed in commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc"). ld.lld: error: undefined symbol: kb_cs > referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a > referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a > referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a ld.lld: error: undefined symbol: kb_data > referenced by i8042.c:309 (drivers/input/serio/i8042.c:309) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a > referenced by i8042-ppcio.h:33 (drivers/input/serio/i8042-ppcio.h:33) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a > referenced by i8042.c:319 (drivers/input/serio/i8042.c:319) > input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a > referenced 15 more times Presumably since nobody has noticed this for the last 12 years, there is not anyone actually trying to use this driver so we can just remove this special walnut code and use the generic header so it builds for all configurations. Fixes: 917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://lore.kernel.org/r/20200518181043.3363953-1-natechancellor@gmail.com
94 lines
1.9 KiB
C
94 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _I8042_H
|
|
#define _I8042_H
|
|
|
|
|
|
/*
|
|
* Copyright (c) 1999-2002 Vojtech Pavlik
|
|
*/
|
|
|
|
/*
|
|
* 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_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 */
|