speaker.hh (5636:27a9526eea1f) speaker.hh (5826:e0d0e58cfd8d)
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
60 const Params *
61 params() const
62 {
63 return dynamic_cast<const Params *>(_params);
64 }
65
66 Speaker(Params *p) : BasicPioDevice(p),
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
60 const Params *
61 params() const
62 {
63 return dynamic_cast<const Params *>(_params);
64 }
65
66 Speaker(Params *p) : BasicPioDevice(p),
67 latency(p->pio_latency), timer(p->i8254)
67 latency(p->pio_latency), controlVal(0), timer(p->i8254)
68 {
69 pioSize = 1;
70 }
71
72 Tick read(PacketPtr pkt);
73
74 Tick write(PacketPtr pkt);
75};
76
77}; // namespace X86ISA
78
79#endif //__DEV_X86_SPEAKER_HH__
68 {
69 pioSize = 1;
70 }
71
72 Tick read(PacketPtr pkt);
73
74 Tick write(PacketPtr pkt);
75};
76
77}; // namespace X86ISA
78
79#endif //__DEV_X86_SPEAKER_HH__