speaker.hh (11168:f98eb2da15a4) speaker.hh (11175:2324ed5fa9f4)
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;

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

64 return dynamic_cast<const Params *>(_params);
65 }
66
67 Speaker(Params *p) : BasicPioDevice(p, 1),
68 latency(p->pio_latency), controlVal(0), timer(p->i8254)
69 {
70 }
71
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;

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

64 return dynamic_cast<const Params *>(_params);
65 }
66
67 Speaker(Params *p) : BasicPioDevice(p, 1),
68 latency(p->pio_latency), controlVal(0), timer(p->i8254)
69 {
70 }
71
72 Tick read(PacketPtr pkt);
72 Tick read(PacketPtr pkt) override;
73
73
74 Tick write(PacketPtr pkt);
74 Tick write(PacketPtr pkt) override;
75
76 void serialize(CheckpointOut &cp) const override;
77 void unserialize(CheckpointIn &cp) override;
78};
79
80} // namespace X86ISA
81
82#endif //__DEV_X86_SPEAKER_HH__
75
76 void serialize(CheckpointOut &cp) const override;
77 void unserialize(CheckpointIn &cp) override;
78};
79
80} // namespace X86ISA
81
82#endif //__DEV_X86_SPEAKER_HH__