port.hh (3401:1df0cb879413) | port.hh (3918:1f9a98d198e8) |
---|---|
1/* 2 * Copyright (c) 2002-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; --- 145 unchanged lines hidden (view full) --- 154 */ 155 virtual void recvRetry() { panic("??"); } 156 157 /** Called by a peer port in order to determine the block size of the 158 device connected to this port. It sometimes doesn't make sense for 159 this function to be called, a DMA interface doesn't really have a 160 block size, so it is defaulted to a panic. 161 */ | 1/* 2 * Copyright (c) 2002-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; --- 145 unchanged lines hidden (view full) --- 154 */ 155 virtual void recvRetry() { panic("??"); } 156 157 /** Called by a peer port in order to determine the block size of the 158 device connected to this port. It sometimes doesn't make sense for 159 this function to be called, a DMA interface doesn't really have a 160 block size, so it is defaulted to a panic. 161 */ |
162 virtual int deviceBlockSize() { panic("??"); } | 162 virtual int deviceBlockSize() { panic("??"); M5_DUMMY_RETURN } |
163 164 /** The peer port is requesting us to reply with a list of the ranges we 165 are responsible for. 166 @param resp is a list of ranges responded to 167 @param snoop is a list of ranges snooped 168 */ 169 virtual void getDeviceAddressRanges(AddrRangeList &resp, 170 AddrRangeList &snoop) --- 85 unchanged lines hidden (view full) --- 256class FunctionalPort : public Port 257{ 258 public: 259 FunctionalPort(const std::string &_name, MemObject *_owner = NULL) 260 : Port(_name, _owner) 261 {} 262 263 protected: | 163 164 /** The peer port is requesting us to reply with a list of the ranges we 165 are responsible for. 166 @param resp is a list of ranges responded to 167 @param snoop is a list of ranges snooped 168 */ 169 virtual void getDeviceAddressRanges(AddrRangeList &resp, 170 AddrRangeList &snoop) --- 85 unchanged lines hidden (view full) --- 256class FunctionalPort : public Port 257{ 258 public: 259 FunctionalPort(const std::string &_name, MemObject *_owner = NULL) 260 : Port(_name, _owner) 261 {} 262 263 protected: |
264 virtual bool recvTiming(PacketPtr pkt) { panic("FuncPort is UniDir"); } 265 virtual Tick recvAtomic(PacketPtr pkt) { panic("FuncPort is UniDir"); } | 264 virtual bool recvTiming(PacketPtr pkt) { panic("FuncPort is UniDir"); 265 M5_DUMMY_RETURN } 266 virtual Tick recvAtomic(PacketPtr pkt) { panic("FuncPort is UniDir"); 267 M5_DUMMY_RETURN } |
266 virtual void recvFunctional(PacketPtr pkt) { panic("FuncPort is UniDir"); } 267 virtual void recvStatusChange(Status status) {} 268 269 public: 270 /** a write function that also does an endian conversion. */ 271 template <typename T> 272 inline void writeHtoG(Addr addr, T d); 273 --- 20 unchanged lines hidden --- | 268 virtual void recvFunctional(PacketPtr pkt) { panic("FuncPort is UniDir"); } 269 virtual void recvStatusChange(Status status) {} 270 271 public: 272 /** a write function that also does an endian conversion. */ 273 template <typename T> 274 inline void writeHtoG(Addr addr, T d); 275 --- 20 unchanged lines hidden --- |