X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fi8042.h;h=13952899bae08550183381c5cc1c77994e5d5794;hb=26df6aa9916443077139f8f008fbc5f414ba05e5;hp=61c9da2ea152dcc44b87d70dfa276448c2a5f0b2;hpb=1df49e27bca2b0d36a506b0da90f6e92771c0982;p=oweals%2Fu-boot.git diff --git a/include/i8042.h b/include/i8042.h index 61c9da2ea1..13952899ba 100644 --- a/include/i8042.h +++ b/include/i8042.h @@ -26,11 +26,18 @@ #ifndef _I8042_H_ #define _I8042_H_ +#ifdef __I386__ +#include +#include +#define in8(p) inb(p) +#define out8(p,v) outb(v,p) +#endif + /* defines */ -#define I8042_DATA_REG (CFG_ISA_IO + 0x0060) /* keyboard i/o buffer */ -#define I8042_STATUS_REG (CFG_ISA_IO + 0x0064) /* keyboard status read */ -#define I8042_COMMAND_REG (CFG_ISA_IO + 0x0064) /* keyboard ctrl write */ +#define I8042_DATA_REG (CONFIG_SYS_ISA_IO + 0x0060) /* keyboard i/o buffer */ +#define I8042_STATUS_REG (CONFIG_SYS_ISA_IO + 0x0064) /* keyboard status read */ +#define I8042_COMMAND_REG (CONFIG_SYS_ISA_IO + 0x0064) /* keyboard ctrl write */ #define KBD_US 0 /* default US layout */ #define KBD_GER 1 /* german layout */