i82094aa.hh (8746:42d3554b1c35) i82094aa.hh (8799:dac1e33e07b0)
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;

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

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

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

96
97 I82094AA(Params *p);
98
99 void init();
100
101 Tick read(PacketPtr pkt);
102 Tick write(PacketPtr pkt);
103
104 void addressRanges(AddrRangeList &range_list)
104 AddrRangeList getAddrRanges()
105 {
105 {
106 range_list.clear();
107 range_list.push_back(RangeEx(pioAddr, pioAddr + 4));
108 range_list.push_back(RangeEx(pioAddr + 16, pioAddr + 20));
106 AddrRangeList ranges;
107 ranges.push_back(RangeEx(pioAddr, pioAddr + 4));
108 ranges.push_back(RangeEx(pioAddr + 16, pioAddr + 20));
109 return ranges;
109 }
110
110 }
111
111 void getIntAddrRange(AddrRangeList &range_list)
112 AddrRangeList getIntAddrRange()
112 {
113 {
113 range_list.clear();
114 range_list.push_back(RangeEx(x86InterruptAddress(initialApicId, 0),
115 x86InterruptAddress(initialApicId, 0) +
116 PhysAddrAPICRangeSize));
114 AddrRangeList ranges;
115 ranges.push_back(RangeEx(x86InterruptAddress(initialApicId, 0),
116 x86InterruptAddress(initialApicId, 0) +
117 PhysAddrAPICRangeSize));
118 return ranges;
117 }
118
119 void writeReg(uint8_t offset, uint32_t value);
120 uint32_t readReg(uint8_t offset);
121
122 Port *getPort(const std::string &if_name, int idx = -1)
123 {
124 if (if_name == "int_port")

--- 15 unchanged lines hidden ---
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")

--- 15 unchanged lines hidden ---