platform.hh (8229:78bf55f23338) | platform.hh (8741:491297d019f3) |
---|---|
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; --- 50 unchanged lines hidden (view full) --- 59 System *system; 60 61 public: 62 typedef PlatformParams Params; 63 Platform(const Params *p); 64 virtual ~Platform(); 65 virtual void postConsoleInt() = 0; 66 virtual void clearConsoleInt() = 0; | 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; --- 50 unchanged lines hidden (view full) --- 59 System *system; 60 61 public: 62 typedef PlatformParams Params; 63 Platform(const Params *p); 64 virtual ~Platform(); 65 virtual void postConsoleInt() = 0; 66 virtual void clearConsoleInt() = 0; |
67 virtual Tick intrFrequency() = 0; | |
68 virtual void postPciInt(int line); 69 virtual void clearPciInt(int line); 70 virtual Addr pciToDma(Addr pciAddr) const; 71 virtual Addr calcPciConfigAddr(int bus, int dev, int func) = 0; 72 virtual Addr calcPciIOAddr(Addr addr) = 0; 73 virtual Addr calcPciMemAddr(Addr addr) = 0; 74 virtual void registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, 75 uint8_t intr); 76 77 private: 78 std::bitset<256> intLines; 79 std::set<uint32_t> pciDevices; 80 81}; 82 83#endif // __DEV_PLATFORM_HH__ | 67 virtual void postPciInt(int line); 68 virtual void clearPciInt(int line); 69 virtual Addr pciToDma(Addr pciAddr) const; 70 virtual Addr calcPciConfigAddr(int bus, int dev, int func) = 0; 71 virtual Addr calcPciIOAddr(Addr addr) = 0; 72 virtual Addr calcPciMemAddr(Addr addr) = 0; 73 virtual void registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, 74 uint8_t intr); 75 76 private: 77 std::bitset<256> intLines; 78 std::set<uint32_t> pciDevices; 79 80}; 81 82#endif // __DEV_PLATFORM_HH__ |