platform.cc (8066:cb7bf3919bdd) | platform.cc (11244:a2af58a06c4e) |
---|---|
1/* 2 * Copyright (c) 2004-2005 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; --- 42 unchanged lines hidden (view full) --- 51 panic("No PCI interrupt support in platform."); 52} 53 54void 55Platform::clearPciInt(int line) 56{ 57 panic("No PCI interrupt support in platform."); 58} | 1/* 2 * Copyright (c) 2004-2005 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; --- 42 unchanged lines hidden (view full) --- 51 panic("No PCI interrupt support in platform."); 52} 53 54void 55Platform::clearPciInt(int line) 56{ 57 panic("No PCI interrupt support in platform."); 58} |
59 60Addr 61Platform::pciToDma(Addr pciAddr) const 62{ 63 panic("No PCI dma support in platform."); 64 M5_DUMMY_RETURN 65} 66 67void 68Platform::registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, uint8_t intr) 69{ 70 uint32_t bdf = bus << 16 | dev << 8 | func << 0; 71 if (pciDevices.find(bdf) != pciDevices.end()) 72 fatal("Two PCI devices have same bus:device:function\n"); 73 74 if (intLines.test(intr)) 75 fatal("Two PCI devices have same interrupt line: %d\n", intr); 76 77 pciDevices.insert(bdf); 78 79 intLines.set(intr); 80} | |