speaker.cc (8232:b28d06a175be) speaker.cc (10905:a6ca6831e775)
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;

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

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

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

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