pc.cc (8741:491297d019f3) | pc.cc (11244:a2af58a06c4e) |
---|---|
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; --- 127 unchanged lines hidden (view full) --- 136} 137 138void 139Pc::clearPciInt(int line) 140{ 141 warn_once("Tried to clear PCI interrupt %d\n", line); 142} 143 | 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; --- 127 unchanged lines hidden (view full) --- 136} 137 138void 139Pc::clearPciInt(int line) 140{ 141 warn_once("Tried to clear PCI interrupt %d\n", line); 142} 143 |
144Addr 145Pc::pciToDma(Addr pciAddr) const 146{ 147 return pciAddr; 148} 149 150Addr 151Pc::calcPciConfigAddr(int bus, int dev, int func) 152{ 153 assert(func < 8); 154 assert(dev < 32); 155 assert(bus == 0); 156 return (PhysAddrPrefixPciConfig | (func << 8) | (dev << 11)); 157} 158 159Addr 160Pc::calcPciIOAddr(Addr addr) 161{ 162 return PhysAddrPrefixIO + addr; 163} 164 165Addr 166Pc::calcPciMemAddr(Addr addr) 167{ 168 return addr; 169} 170 | |
171Pc * 172PcParams::create() 173{ 174 return new Pc(this); 175} | 144Pc * 145PcParams::create() 146{ 147 return new Pc(this); 148} |