From 6a3f255a84d93f3e621319fd81f355416e385c8c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 31 Jan 2009 23:33:54 -0800 Subject: X86: Rework interrupt pins to allow one to many connections. --- src/dev/x86/i8259.hh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/dev/x86/i8259.hh') diff --git a/src/dev/x86/i8259.hh b/src/dev/x86/i8259.hh index 5a2cf72e8..dfb56646a 100644 --- a/src/dev/x86/i8259.hh +++ b/src/dev/x86/i8259.hh @@ -45,9 +45,10 @@ class I8259 : public BasicPioDevice, public IntDev { protected: static const int NumLines = 8; + bool pinStates[NumLines]; Tick latency; - IntPin *output; + IntSourcePin *output; Enums::X86I8259CascadeMode mode; I8259 * slave; @@ -90,16 +91,12 @@ class I8259 : public BasicPioDevice, public IntDev I8259(Params * p); - void - setSlave(I8259 * _slave) - { - slave = _slave; - } - Tick read(PacketPtr pkt); Tick write(PacketPtr pkt); void signalInterrupt(int line); + void raiseInterruptPin(int number); + void lowerInterruptPin(int number); int getVector(); }; -- cgit v1.2.3