malta.cc (5478:ca055528a3b3) | malta.cc (6379:75d4aaf7dd54) |
---|---|
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; --- 55 unchanged lines hidden (view full) --- 64Malta::intrFrequency() 65{ 66 return io->frequency(); 67} 68 69void 70Malta::postConsoleInt() 71{ | 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; --- 55 unchanged lines hidden (view full) --- 64Malta::intrFrequency() 65{ 66 return io->frequency(); 67} 68 69void 70Malta::postConsoleInt() 71{ |
72 //panic("Malta::postConsoleInt() has not been implemented."); 73 io->postIntr(0x10/*HW4*/);//see {Linux-src}/arch/mips/mips-boards/sim/sim_setup.c | 72 //see {Linux-src}/arch/mips/mips-boards/sim/sim_setup.c 73 io->postIntr(0x10/*HW4*/); |
74} 75 76void 77Malta::clearConsoleInt() 78{ | 74} 75 76void 77Malta::clearConsoleInt() 78{ |
79 //FIXME: implement clearConsoleInt() 80 //warn("Malta::clearConsoleInt() has not been implemented."); | 79 //FIXME: implement clearConsoleInt() |
81 io->clearIntr(0x10/*HW4*/); 82} 83 84void 85Malta::postPciInt(int line) 86{ | 80 io->clearIntr(0x10/*HW4*/); 81} 82 83void 84Malta::postPciInt(int line) 85{ |
87 panic("Malta::postPciInt() has not been implemented."); 88 //cchip->postDRIR(line); | 86 panic("Malta::postPciInt() has not been implemented."); |
89} 90 91void 92Malta::clearPciInt(int line) 93{ | 87} 88 89void 90Malta::clearPciInt(int line) 91{ |
94 panic("Malta::clearPciInt() has not been implemented."); 95 //cchip->clearDRIR(line); | 92 panic("Malta::clearPciInt() has not been implemented."); |
96} 97 98Addr 99Malta::pciToDma(Addr pciAddr) const 100{ | 93} 94 95Addr 96Malta::pciToDma(Addr pciAddr) const 97{ |
101 panic("Malta::pciToDma() has not been implemented."); 102 return pchip->translatePciToDma(pciAddr); | 98 panic("Malta::pciToDma() has not been implemented."); |
103} 104 | 99} 100 |
105 106Addr 107Malta::calcConfigAddr(int bus, int dev, int func) 108{ 109 panic("Malta::calcConfigAddr() has not been implemented."); 110 return pchip->calcConfigAddr(bus, dev, func); 111} 112 | |
113void 114Malta::serialize(std::ostream &os) 115{ | 101void 102Malta::serialize(std::ostream &os) 103{ |
116 | |
117 SERIALIZE_ARRAY(intr_sum_type, Malta::Max_CPUs); 118} 119 120void 121Malta::unserialize(Checkpoint *cp, const std::string §ion) 122{ 123 UNSERIALIZE_ARRAY(intr_sum_type, Malta::Max_CPUs); 124} 125 126Malta * 127MaltaParams::create() 128{ 129 return new Malta(this); 130} | 104 SERIALIZE_ARRAY(intr_sum_type, Malta::Max_CPUs); 105} 106 107void 108Malta::unserialize(Checkpoint *cp, const std::string §ion) 109{ 110 UNSERIALIZE_ARRAY(intr_sum_type, Malta::Max_CPUs); 111} 112 113Malta * 114MaltaParams::create() 115{ 116 return new Malta(this); 117} |