i8259.hh (5827:ac2c268bf4f1) | i8259.hh (6073:d552a9544974) |
---|---|
1/* 2 * Copyright (c) 2004-2005 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; --- 25 unchanged lines hidden (view full) --- 34#include "dev/io_device.hh" 35#include "dev/x86/intdev.hh" 36#include "params/I8259.hh" 37#include "enums/X86I8259CascadeMode.hh" 38 39namespace X86ISA 40{ 41 | 1/* 2 * Copyright (c) 2004-2005 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; --- 25 unchanged lines hidden (view full) --- 34#include "dev/io_device.hh" 35#include "dev/x86/intdev.hh" 36#include "params/I8259.hh" 37#include "enums/X86I8259CascadeMode.hh" 38 39namespace X86ISA 40{ 41 |
42class I82094AA; 43 | |
44class I8259 : public BasicPioDevice, public IntDev 45{ 46 protected: 47 static const int NumLines = 8; 48 bool pinStates[NumLines]; 49 50 Tick latency; 51 IntSourcePin *output; --- 37 unchanged lines hidden (view full) --- 89 return dynamic_cast<const Params *>(_params); 90 } 91 92 I8259(Params * p); 93 94 Tick read(PacketPtr pkt); 95 Tick write(PacketPtr pkt); 96 | 42class I8259 : public BasicPioDevice, public IntDev 43{ 44 protected: 45 static const int NumLines = 8; 46 bool pinStates[NumLines]; 47 48 Tick latency; 49 IntSourcePin *output; --- 37 unchanged lines hidden (view full) --- 87 return dynamic_cast<const Params *>(_params); 88 } 89 90 I8259(Params * p); 91 92 Tick read(PacketPtr pkt); 93 Tick write(PacketPtr pkt); 94 |
95 void 96 maskAll() 97 { 98 IMR = 0xFF; 99 } 100 101 void 102 unmaskAll() 103 { 104 IMR = 0x00; 105 } 106 |
|
97 void signalInterrupt(int line); 98 void raiseInterruptPin(int number); 99 void lowerInterruptPin(int number); 100 int getVector(); 101}; 102 103}; // namespace X86ISA 104 105#endif //__DEV_X86_I8259_HH__ | 107 void signalInterrupt(int line); 108 void raiseInterruptPin(int number); 109 void lowerInterruptPin(int number); 110 int getVector(); 111}; 112 113}; // namespace X86ISA 114 115#endif //__DEV_X86_I8259_HH__ |