keyboard.hh (12656:335489e574f3) | keyboard.hh (12660:c5caca5f7d68) |
---|---|
1/* 2 * Copyright (c) 2017-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 38 unchanged lines hidden (view full) --- 47#include "base/vnc/vncinput.hh" 48#include "dev/ps2/device.hh" 49 50struct PS2KeyboardParams; 51 52class PS2Keyboard : public PS2Device, VncKeyboard 53{ 54 protected: | 1/* 2 * Copyright (c) 2017-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 38 unchanged lines hidden (view full) --- 47#include "base/vnc/vncinput.hh" 48#include "dev/ps2/device.hh" 49 50struct PS2KeyboardParams; 51 52class PS2Keyboard : public PS2Device, VncKeyboard 53{ 54 protected: |
55 static const uint8_t ID[]; 56 57 enum Command 58 { 59 LEDWrite = 0xED, 60 DiagnosticEcho = 0xEE, 61 AlternateScanCodes = 0xF0, 62 ReadID = 0xF2, 63 TypematicInfo = 0xF3, 64 Enable = 0xF4, 65 Disable = 0xF5, 66 DefaultsAndDisable = 0xF6, 67 AllKeysToTypematic = 0xF7, 68 AllKeysToMakeRelease = 0xF8, 69 AllKeysToMake = 0xF9, 70 AllKeysToTypematicMakeRelease = 0xFA, 71 KeyToTypematic = 0xFB, 72 KeyToMakeRelease = 0xFC, 73 KeyToMakeOnly = 0xFD, 74 Resend = 0xFE, 75 Reset = 0xFF 76 }; 77 78 | |
79 /** is the shift key currently down */ 80 bool shiftDown; 81 82 /** Is the device enabled? */ 83 bool enabled; 84 85 public: 86 PS2Keyboard(const PS2KeyboardParams *p); --- 13 unchanged lines hidden --- | 55 /** is the shift key currently down */ 56 bool shiftDown; 57 58 /** Is the device enabled? */ 59 bool enabled; 60 61 public: 62 PS2Keyboard(const PS2KeyboardParams *p); --- 13 unchanged lines hidden --- |