Release 4.10 drivers/input/serio/i8042-io.h
#ifndef _I8042_IO_H
#define _I8042_IO_H
/*
* 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.
*/
/*
* Names.
*/
#define I8042_KBD_PHYS_DESC "isa0060/serio0"
#define I8042_AUX_PHYS_DESC "isa0060/serio1"
#define I8042_MUX_PHYS_DESC "isa0060/serio%d"
/*
* IRQs.
*/
#ifdef __alpha__
# define I8042_KBD_IRQ 1
# define I8042_AUX_IRQ (RTC_PORT(0) == 0x170 ? 9 : 12)
/* Jensen is special */
#elif defined(__arm__)
/* defined in include/asm-arm/arch-xxx/irqs.h */
#include <asm/irq.h>
#elif defined(CONFIG_SH_CAYMAN)
#include <asm/irq.h>
#elif defined(CONFIG_PPC)
extern int of_i8042_kbd_irq;
extern int of_i8042_aux_irq;
# define I8042_KBD_IRQ of_i8042_kbd_irq
# define I8042_AUX_IRQ of_i8042_aux_irq
#else
# define I8042_KBD_IRQ 1
# define I8042_AUX_IRQ 12
#endif
/*
* Register numbers.
*/
#define I8042_COMMAND_REG 0x64
#define I8042_STATUS_REG 0x64
#define I8042_DATA_REG 0x60
static inline int i8042_read_data(void)
{
return inb(I8042_DATA_REG);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline int i8042_read_status(void)
{
return inb(I8042_STATUS_REG);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline void i8042_write_data(int val)
{
outb(val, I8042_DATA_REG);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 17 | 100.00% | 1 | 100.00% |
| Total | 17 | 100.00% | 1 | 100.00% |
static inline void i8042_write_command(int val)
{
outb(val, I8042_COMMAND_REG);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 17 | 100.00% | 1 | 100.00% |
| Total | 17 | 100.00% | 1 | 100.00% |
static inline int i8042_platform_init(void)
{
/*
* On some platforms touching the i8042 data register region can do really
* bad things. Because of this the region is always reserved on such boxes.
*/
#if defined(CONFIG_PPC)
if (check_legacy_ioport(I8042_DATA_REG))
return -ENODEV;
#endif
#if !defined(__sh__) && !defined(__alpha__)
if (!request_region(I8042_DATA_REG, 16, "i8042"))
return -EBUSY;
#endif
i8042_reset = I8042_RESET_ALWAYS;
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
benjamin herrenschmidt | benjamin herrenschmidt | 26 | 38.81% | 1 | 12.50% |
vojtech pavlik | vojtech pavlik | 25 | 37.31% | 2 | 25.00% |
olaf hering | olaf hering | 12 | 17.91% | 1 | 12.50% |
kumar gala | kumar gala | 1 | 1.49% | 1 | 12.50% |
bjorn helgaas | bjorn helgaas | 1 | 1.49% | 1 | 12.50% |
dmitry torokhov | dmitry torokhov | 1 | 1.49% | 1 | 12.50% |
marcos paulo de souza | marcos paulo de souza | 1 | 1.49% | 1 | 12.50% |
| Total | 67 | 100.00% | 8 | 100.00% |
static inline void i8042_platform_exit(void)
{
#if !defined(__sh__) && !defined(__alpha__)
release_region(I8042_DATA_REG, 16);
#endif
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 31 | 100.00% | 1 | 100.00% |
| Total | 31 | 100.00% | 1 | 100.00% |
#endif /* _I8042_IO_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
vojtech pavlik | vojtech pavlik | 180 | 68.18% | 3 | 21.43% |
benjamin herrenschmidt | benjamin herrenschmidt | 26 | 9.85% | 1 | 7.14% |
martyn welch | martyn welch | 22 | 8.33% | 1 | 7.14% |
olaf hering | olaf hering | 12 | 4.55% | 1 | 7.14% |
paul mundt | paul mundt | 9 | 3.41% | 2 | 14.29% |
russell king | russell king | 6 | 2.27% | 1 | 7.14% |
peter chubb | peter chubb | 4 | 1.52% | 1 | 7.14% |
bjorn helgaas | bjorn helgaas | 2 | 0.76% | 1 | 7.14% |
dmitry torokhov | dmitry torokhov | 1 | 0.38% | 1 | 7.14% |
marcos paulo de souza | marcos paulo de souza | 1 | 0.38% | 1 | 7.14% |
kumar gala | kumar gala | 1 | 0.38% | 1 | 7.14% |
| Total | 264 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.