i8042.cc (8232:b28d06a175be) i8042.cc (8711:c7e14f52c682)
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
46void
47X86ISA::I8042::addressRanges(AddrRangeList &range_list)
46AddrRangeList
47X86ISA::I8042::getAddrRanges()
48{
48{
49 range_list.clear();
50 range_list.push_back(RangeSize(dataPort, 1));
51 range_list.push_back(RangeSize(commandPort, 1));
49 AddrRangeList ranges;
50 ranges.push_back(RangeSize(dataPort, 1));
51 ranges.push_back(RangeSize(commandPort, 1));
52 return ranges;
52}
53
54void
55X86ISA::I8042::writeData(uint8_t newData, bool mouse)
56{
57 DPRINTF(I8042, "Set data %#02x.\n", newData);
58 dataReg = newData;
59 statusReg.outputFull = 1;

--- 497 unchanged lines hidden ---
53}
54
55void
56X86ISA::I8042::writeData(uint8_t newData, bool mouse)
57{
58 DPRINTF(I8042, "Set data %#02x.\n", newData);
59 dataReg = newData;
60 statusReg.outputFull = 1;

--- 497 unchanged lines hidden ---