i8254.cc (5898:541097c69e22) i8254.cc (7903:7fcfb515d7bf)
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;

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

71 pit.writeControl(pkt->get<uint8_t>());
72 } else {
73 panic("Write to undefined i8254 register.\n");
74 }
75 pkt->makeAtomicResponse();
76 return latency;
77}
78
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;

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

71 pit.writeControl(pkt->get<uint8_t>());
72 } else {
73 panic("Write to undefined i8254 register.\n");
74 }
75 pkt->makeAtomicResponse();
76 return latency;
77}
78
79void
80X86ISA::I8254::serialize(std::ostream &os)
81{
82 pit.serialize("pit", os);
83}
84
85void
86X86ISA::I8254::unserialize(Checkpoint *cp, const std::string &section)
87{
88 pit.unserialize("pit", cp, section);
89}
90
79X86ISA::I8254 *
80I8254Params::create()
81{
82 return new X86ISA::I8254(this);
83}
91X86ISA::I8254 *
92I8254Params::create()
93{
94 return new X86ISA::I8254(this);
95}