i82094aa.hh (8799:dac1e33e07b0) i82094aa.hh (8839:eeb293859255)
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;

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

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)
125 {
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;

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

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)
125 {
126 if (if_name == "int_port")
126 if (if_name == "int_master")
127 return intPort;
128 return PioDevice::getPort(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__
127 return intPort;
128 return PioDevice::getPort(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__