1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28 * Authors: Gabe Black 29 */ 30 31#ifndef __DEV_X86_I8042_HH__ 32#define __DEV_X86_I8042_HH__ 33 34#include <deque> 35 |
36#include "dev/io_device.hh" |
37#include "dev/ps2/device.hh" 38#include "dev/x86/intdev.hh" |
39#include "params/I8042.hh" 40 41namespace X86ISA 42{ 43 44class IntPin; 45 |
46class I8042 : public BasicPioDevice 47{ 48 protected: 49 enum Command 50 { 51 GetCommandByte = 0x20, 52 ReadControllerRamBase = 0x20, 53 WriteCommandByte = 0x60, --- 54 unchanged lines hidden (view full) --- 108 uint8_t dataReg; 109 110 static const uint16_t NoCommand = (uint16_t)(-1); 111 uint16_t lastCommand; 112 113 IntSourcePin *mouseIntPin; 114 IntSourcePin *keyboardIntPin; 115 |
116 PS2Device *mouse; 117 PS2Device *keyboard; |
118 119 void writeData(uint8_t newData, bool mouse = false); 120 uint8_t readDataOut(); 121 122 public: 123 typedef I8042Params Params; 124 125 const Params * --- 20 unchanged lines hidden --- |