i8042.cc (5832:38f3f3e1e442) i8042.cc (5898:541097c69e22)
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;

--- 289 unchanged lines hidden (view full) ---

298 //DPRINTF(I8042, "Read from data port got %#02x.\n", data);
299 pkt->set<uint8_t>(data);
300 } else if (addr == commandPort) {
301 //DPRINTF(I8042, "Read status as %#02x.\n", (uint8_t)statusReg);
302 pkt->set<uint8_t>((uint8_t)statusReg);
303 } else {
304 panic("Read from unrecognized port %#x.\n", addr);
305 }
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;

--- 289 unchanged lines hidden (view full) ---

298 //DPRINTF(I8042, "Read from data port got %#02x.\n", data);
299 pkt->set<uint8_t>(data);
300 } else if (addr == commandPort) {
301 //DPRINTF(I8042, "Read status as %#02x.\n", (uint8_t)statusReg);
302 pkt->set<uint8_t>((uint8_t)statusReg);
303 } else {
304 panic("Read from unrecognized port %#x.\n", addr);
305 }
306 pkt->makeAtomicResponse();
306 return latency;
307}
308
309Tick
310X86ISA::I8042::write(PacketPtr pkt)
311{
312 assert(pkt->getSize() == 1);
313 Addr addr = pkt->getAddr();

--- 115 unchanged lines hidden (view full) ---

429 panic("i8042 \"System reset\" command not implemented.\n");
430 default:
431 panic("Write to unknown i8042 "
432 "(keyboard controller) command port.\n");
433 }
434 } else {
435 panic("Write to unrecognized port %#x.\n", addr);
436 }
307 return latency;
308}
309
310Tick
311X86ISA::I8042::write(PacketPtr pkt)
312{
313 assert(pkt->getSize() == 1);
314 Addr addr = pkt->getAddr();

--- 115 unchanged lines hidden (view full) ---

430 panic("i8042 \"System reset\" command not implemented.\n");
431 default:
432 panic("Write to unknown i8042 "
433 "(keyboard controller) command port.\n");
434 }
435 } else {
436 panic("Write to unrecognized port %#x.\n", addr);
437 }
438 pkt->makeAtomicResponse();
437 return latency;
438}
439
440X86ISA::I8042 *
441I8042Params::create()
442{
443 return new X86ISA::I8042(this);
444}
439 return latency;
440}
441
442X86ISA::I8042 *
443I8042Params::create()
444{
445 return new X86ISA::I8042(this);
446}