mouse.hh (12656:335489e574f3) | mouse.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 --- 37 unchanged lines hidden (view full) --- 46 47#include "dev/ps2/device.hh" 48 49struct PS2MouseParams; 50 51class PS2Mouse : public PS2Device 52{ 53 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 --- 37 unchanged lines hidden (view full) --- 46 47#include "dev/ps2/device.hh" 48 49struct PS2MouseParams; 50 51class PS2Mouse : public PS2Device 52{ 53 protected: |
54 static const uint8_t ID[]; 55 56 enum Command 57 { 58 Scale1to1 = 0xE6, 59 Scale2to1 = 0xE7, 60 SetResolution = 0xE8, 61 GetStatus = 0xE9, 62 ReadData = 0xEB, 63 ResetWrapMode = 0xEC, 64 WrapMode = 0xEE, 65 RemoteMode = 0xF0, 66 ReadID = 0xF2, 67 SampleRate = 0xF3, 68 EnableReporting = 0xF4, 69 DisableReporting = 0xF5, 70 DefaultsAndDisable = 0xF6, 71 Resend = 0xFE, 72 Reset = 0xFF 73 }; 74 | |
75 BitUnion8(Status) 76 Bitfield<6> remote; 77 Bitfield<5> enabled; 78 Bitfield<4> twoToOne; 79 Bitfield<2> leftButton; 80 Bitfield<0> rightButton; 81 EndBitUnion(Status) 82 --- 16 unchanged lines hidden --- | 54 BitUnion8(Status) 55 Bitfield<6> remote; 56 Bitfield<5> enabled; 57 Bitfield<4> twoToOne; 58 Bitfield<2> leftButton; 59 Bitfield<0> rightButton; 60 EndBitUnion(Status) 61 --- 16 unchanged lines hidden --- |