i82094aa.hh (8229:78bf55f23338) i82094aa.hh (8711:c7e14f52c682)
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;

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

98
99 I82094AA(Params *p);
100
101 void init();
102
103 Tick read(PacketPtr pkt);
104 Tick write(PacketPtr pkt);
105
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;

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

98
99 I82094AA(Params *p);
100
101 void init();
102
103 Tick read(PacketPtr pkt);
104 Tick write(PacketPtr pkt);
105
106 void addressRanges(AddrRangeList &range_list)
106 AddrRangeList getAddrRanges()
107 {
107 {
108 range_list.clear();
109 range_list.push_back(RangeEx(pioAddr, pioAddr + 4));
110 range_list.push_back(RangeEx(pioAddr + 16, pioAddr + 20));
108 AddrRangeList ranges;
109 ranges.push_back(RangeEx(pioAddr, pioAddr + 4));
110 ranges.push_back(RangeEx(pioAddr + 16, pioAddr + 20));
111 return ranges;
111 }
112
112 }
113
113 void getIntAddrRange(AddrRangeList &range_list)
114 AddrRangeList getIntAddrRange()
114 {
115 {
115 range_list.clear();
116 range_list.push_back(RangeEx(x86InterruptAddress(initialApicId, 0),
117 x86InterruptAddress(initialApicId, 0) +
118 PhysAddrAPICRangeSize));
116 AddrRangeList ranges;
117 ranges.push_back(RangeEx(x86InterruptAddress(initialApicId, 0),
118 x86InterruptAddress(initialApicId, 0) +
119 PhysAddrAPICRangeSize));
120 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")

--- 16 unchanged lines hidden ---
121 }
122
123 void writeReg(uint8_t offset, uint32_t value);
124 uint32_t readReg(uint8_t offset);
125
126 Port *getPort(const std::string &if_name, int idx = -1)
127 {
128 if (if_name == "int_port")

--- 16 unchanged lines hidden ---