i8042.cc (9623:327bf4242521) | i8042.cc (9808:13ffc0066b76) |
---|---|
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; --- 29 unchanged lines hidden (view full) --- 38const uint8_t RamSize = 32; 39const uint8_t NumOutputBits = 14; 40const uint8_t X86ISA::PS2Keyboard::ID[] = {0xab, 0x83}; 41const uint8_t X86ISA::PS2Mouse::ID[] = {0x00}; 42const uint8_t CommandAck = 0xfa; 43const uint8_t CommandNack = 0xfe; 44const uint8_t BatSuccessful = 0xaa; 45 | 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; --- 29 unchanged lines hidden (view full) --- 38const uint8_t RamSize = 32; 39const uint8_t NumOutputBits = 14; 40const uint8_t X86ISA::PS2Keyboard::ID[] = {0xab, 0x83}; 41const uint8_t X86ISA::PS2Mouse::ID[] = {0x00}; 42const uint8_t CommandAck = 0xfa; 43const uint8_t CommandNack = 0xfe; 44const uint8_t BatSuccessful = 0xaa; 45 |
46 47X86ISA::I8042::I8042(Params *p) 48 : BasicPioDevice(p, 0), // pioSize arg is dummy value... not used 49 latency(p->pio_latency), 50 dataPort(p->data_port), commandPort(p->command_port), 51 statusReg(0), commandByte(0), dataReg(0), lastCommand(NoCommand), 52 mouseIntPin(p->mouse_int_pin), keyboardIntPin(p->keyboard_int_pin) 53{ 54 statusReg.passedSelfTest = 1; 55 statusReg.commandLast = 1; 56 statusReg.keyboardUnlocked = 1; 57 58 commandByte.convertScanCodes = 1; 59 commandByte.passedSelfTest = 1; 60 commandByte.keyboardFullInt = 1; 61} 62 63 |
|
46AddrRangeList 47X86ISA::I8042::getAddrRanges() const 48{ 49 AddrRangeList ranges; 50 // TODO: Are these really supposed to be a single byte and not 4? 51 ranges.push_back(RangeSize(dataPort, 1)); 52 ranges.push_back(RangeSize(commandPort, 1)); 53 return ranges; --- 507 unchanged lines hidden --- | 64AddrRangeList 65X86ISA::I8042::getAddrRanges() const 66{ 67 AddrRangeList ranges; 68 // TODO: Are these really supposed to be a single byte and not 4? 69 ranges.push_back(RangeSize(dataPort, 1)); 70 ranges.push_back(RangeSize(commandPort, 1)); 71 return ranges; --- 507 unchanged lines hidden --- |