i82094aa.hh (8851:7e966326ef5b) i82094aa.hh (8922:17f037ad8918)
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;

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

116 x86InterruptAddress(initialApicId, 0) +
117 PhysAddrAPICRangeSize));
118 return ranges;
119 }
120
121 void writeReg(uint8_t offset, uint32_t value);
122 uint32_t readReg(uint8_t offset);
123
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;

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

116 x86InterruptAddress(initialApicId, 0) +
117 PhysAddrAPICRangeSize));
118 return ranges;
119 }
120
121 void writeReg(uint8_t offset, uint32_t value);
122 uint32_t readReg(uint8_t offset);
123
124 Port *getPort(const std::string &if_name, int idx = -1)
124 MasterPort &getMasterPort(const std::string &if_name, int idx = -1)
125 {
126 if (if_name == "int_master")
125 {
126 if (if_name == "int_master")
127 return &intPort;
128 return PioDevice::getPort(if_name, idx);
127 return intMasterPort;
128 return PioDevice::getMasterPort(if_name, idx);
129 }
130
131 void signalInterrupt(int line);
132 void raiseInterruptPin(int number);
133 void lowerInterruptPin(int number);
134
135 virtual void serialize(std::ostream &os);
136 virtual void unserialize(Checkpoint *cp, const std::string &section);
137};
138
139} // namespace X86ISA
140
141#endif //__DEV_X86_SOUTH_BRIDGE_I8254_HH__
129 }
130
131 void signalInterrupt(int line);
132 void raiseInterruptPin(int number);
133 void lowerInterruptPin(int number);
134
135 virtual void serialize(std::ostream &os);
136 virtual void unserialize(Checkpoint *cp, const std::string &section);
137};
138
139} // namespace X86ISA
140
141#endif //__DEV_X86_SOUTH_BRIDGE_I8254_HH__