speaker.hh (9338:97b4a2be1e5b) | speaker.hh (9808:13ffc0066b76) |
---|---|
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; --- 50 unchanged lines hidden (view full) --- 59 typedef PcSpeakerParams Params; 60 61 const Params * 62 params() const 63 { 64 return dynamic_cast<const Params *>(_params); 65 } 66 | 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; --- 50 unchanged lines hidden (view full) --- 59 typedef PcSpeakerParams Params; 60 61 const Params * 62 params() const 63 { 64 return dynamic_cast<const Params *>(_params); 65 } 66 |
67 Speaker(Params *p) : BasicPioDevice(p), | 67 Speaker(Params *p) : BasicPioDevice(p, 1), |
68 latency(p->pio_latency), controlVal(0), timer(p->i8254) 69 { | 68 latency(p->pio_latency), controlVal(0), timer(p->i8254) 69 { |
70 pioSize = 1; | |
71 } 72 73 Tick read(PacketPtr pkt); 74 75 Tick write(PacketPtr pkt); 76 77 virtual void serialize(std::ostream &os); 78 virtual void unserialize(Checkpoint *cp, const std::string §ion); 79 80}; 81 82} // namespace X86ISA 83 84#endif //__DEV_X86_SPEAKER_HH__ | 70 } 71 72 Tick read(PacketPtr pkt); 73 74 Tick write(PacketPtr pkt); 75 76 virtual void serialize(std::ostream &os); 77 virtual void unserialize(Checkpoint *cp, const std::string §ion); 78 79}; 80 81} // namespace X86ISA 82 83#endif //__DEV_X86_SPEAKER_HH__ |