diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-06-12 00:54:48 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-06-12 00:54:48 -0400 |
commit | 4f9a0402f629dbd78494bd7e820ffa41b0a5f245 (patch) | |
tree | 95083f875c9fe827509d47e4c484ec595f0fcf98 /src/dev/x86/south_bridge/i8254.hh | |
parent | 0368ccdedaa6b6fecb0f04924456953c92396188 (diff) | |
download | gem5-4f9a0402f629dbd78494bd7e820ffa41b0a5f245.tar.xz |
Dev: Seperate the 8254 timer from tsunami and use it in that and the PC.
Diffstat (limited to 'src/dev/x86/south_bridge/i8254.hh')
-rw-r--r-- | src/dev/x86/south_bridge/i8254.hh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/dev/x86/south_bridge/i8254.hh b/src/dev/x86/south_bridge/i8254.hh index f246fd8e4..519049e93 100644 --- a/src/dev/x86/south_bridge/i8254.hh +++ b/src/dev/x86/south_bridge/i8254.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 The Regents of The University of Michigan + * Copyright (c) 2008 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -33,24 +33,28 @@ #include "arch/x86/x86_traits.hh" #include "base/range.hh" +#include "dev/intel_8254_timer.hh" #include "dev/x86/south_bridge/sub_device.hh" +#include <string> + namespace X86ISA { class I8254 : public SubDevice { protected: - void processControlWord(uint8_t word); + Intel8254Timer pit; public: - I8254() + I8254(const std::string &name) : pit(name) {} - I8254(Tick _latency) : SubDevice(_latency) + I8254(const std::string &name, Tick _latency) : + SubDevice(_latency), pit(name) {} - I8254(Addr start, Addr size, Tick _latency) : - SubDevice(start, size, _latency) + I8254(const std::string &name, Addr start, Addr size, Tick _latency) : + SubDevice(start, size, _latency), pit(name) {} Tick read(PacketPtr pkt); |