/* * Code specific to PKUnity SoC and UniCore ISA * * Maintained by GUAN Xue-tao <gxt@mprc.pku.edu.cn> * Copyright (C) 2001-2011 Guan Xuetao * * 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. */ #ifndef _I8042_UNICORE32_H #define _I8042_UNICORE32_H #include <mach/hardware.h> /* * Names. */ #define I8042_KBD_PHYS_DESC "isa0060/serio0" #define I8042_AUX_PHYS_DESC "isa0060/serio1" #define I8042_MUX_PHYS_DESC "isa0060/serio%d" /* * IRQs. */ #define I8042_KBD_IRQ IRQ_PS2_KBD #define I8042_AUX_IRQ IRQ_PS2_AUX /* * Register numbers. */ #define I8042_COMMAND_REG PS2_COMMAND #define I8042_STATUS_REG PS2_STATUS #define I8042_DATA_REG PS2_DATA #define I8042_REGION_START (resource_size_t)(PS2_DATA) #define I8042_REGION_SIZE (resource_size_t)(16)
static inline int i8042_read_data(void) { return readb(I8042_DATA_REG); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 15 | 100.00% | 2 | 100.00% |
Total | 15 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 15 | 100.00% | 2 | 100.00% |
Total | 15 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 17 | 100.00% | 2 | 100.00% |
Total | 17 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 17 | 100.00% | 2 | 100.00% |
Total | 17 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 32 | 100.00% | 3 | 100.00% |
Total | 32 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 16 | 100.00% | 3 | 100.00% |
Total | 16 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
guan xuetao | guan xuetao | 168 | 100.00% | 4 | 100.00% |
Total | 168 | 100.00% | 4 | 100.00% |