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

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

67 //anything.
68 controlVal.speaker = val.speaker;
69 DPRINTF(PcSpeaker, "Writing to speaker device: gate %s, speaker %s.\n",
70 controlVal.gate ? "on" : "off", controlVal.speaker ? "on" : "off");
71 pkt->makeAtomicResponse();
72 return latency;
73}
74
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;

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

67 //anything.
68 controlVal.speaker = val.speaker;
69 DPRINTF(PcSpeaker, "Writing to speaker device: gate %s, speaker %s.\n",
70 controlVal.gate ? "on" : "off", controlVal.speaker ? "on" : "off");
71 pkt->makeAtomicResponse();
72 return latency;
73}
74
75void
76X86ISA::Speaker::serialize(std::ostream &os)
77{
78 uint8_t controlValData = controlVal.__data;
79 SERIALIZE_SCALAR(controlValData);
80}
81
82void
83X86ISA::Speaker::unserialize(Checkpoint *cp, const std::string &section)
84{
85 uint8_t controlValData;
86 UNSERIALIZE_SCALAR(controlValData);
87 controlVal.__data = controlValData;
88}
89
75X86ISA::Speaker *
76PcSpeakerParams::create()
77{
78 return new X86ISA::Speaker(this);
79}
90X86ISA::Speaker *
91PcSpeakerParams::create()
92{
93 return new X86ISA::Speaker(this);
94}