Changeset 6ac14a70 in mainline for kernel/genarch/include/kbrd/scanc_pl050.h
- Timestamp:
- 2009-07-28T12:47:31Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e73815
- Parents:
- 7038f55
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/kbrd/scanc_pl050.h
r7038f55 r6ac14a70 1 1 /* 2 * Copyright (c) 200 7 Michal Kebrt, Petr Stepan2 * Copyright (c) 2009 Vineeth Pillai 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup arm32gxemul29 /** @addtogroup genarch 30 30 * @{ 31 31 */ 32 /** @file 33 * @brief GXemul drivers. 32 /** 33 * @file 34 * @brief Scan codes for pl050 keyboards. 34 35 */ 35 36 36 #i nclude <arch/drivers/gxemul.h>37 # include <mm/page.h>37 #ifndef KERN_SCANC_PL050_H_ 38 #define KERN_SCANC_PL050_H_ 38 39 39 void *gxemul_kbd; 40 void *gxemul_rtc; 41 void *gxemul_irqc; 40 #define SC_SCAN_ESCAPE 0xE0 41 #define SC_ESC 0x76 42 #define SC_BACKSPACE 0x66 43 #define SC_LSHIFT 0x12 44 #define SC_RSHIFT 0x59 45 #define SC_CAPSLOCK 0x58 46 #define SC_SPEC_ESCAPE 0xe0 47 #define SC_LEFTARR 0x6b 48 #define SC_RIGHTARR 0x74 49 #define SC_UPARR 0x75 50 #define SC_DOWNARR 0x72 51 #define SC_DELETE 0x70 52 #define SC_HOME 0x6C 53 #define SC_END 0x69 42 54 43 void gxemul_init(void) 44 { 45 gxemul_kbd = (void *) hw_map(GXEMUL_KBD_ADDRESS, PAGE_SIZE); 46 gxemul_rtc = (void *) hw_map(GXEMUL_RTC_ADDRESS, PAGE_SIZE); 47 gxemul_irqc = (void *) hw_map(GXEMUL_IRQC_ADDRESS, PAGE_SIZE); 48 } 55 #endif 49 56 50 57 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.