port.hh (9152:86c0e6ca5e7c) | port.hh (9178:6a0ff1770e6e) |
---|---|
1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 126 unchanged lines hidden (view full) --- 135 SlavePort* _slavePort; 136 137 public: 138 139 MasterPort(const std::string& name, MemObject* owner, 140 PortID id = InvalidPortID); 141 virtual ~MasterPort(); 142 | 1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 126 unchanged lines hidden (view full) --- 135 SlavePort* _slavePort; 136 137 public: 138 139 MasterPort(const std::string& name, MemObject* owner, 140 PortID id = InvalidPortID); 141 virtual ~MasterPort(); 142 |
143 void unBind(); | 143 /** 144 * Bind this master port to a slave port. This also does the 145 * mirror action and binds the slave port to the master port. 146 */ |
144 void bind(SlavePort& slave_port); | 147 void bind(SlavePort& slave_port); |
148 149 /** 150 * Unbind this master port and the associated slave port. 151 */ 152 void unbind(); 153 |
|
145 SlavePort& getSlavePort() const; 146 bool isConnected() const; 147 148 /** 149 * Send an atomic request packet, where the data is moved and the 150 * state is updated in zero time, without interleaving with other 151 * memory accesses. 152 * --- 140 unchanged lines hidden (view full) --- 293 MasterPort* _masterPort; 294 295 public: 296 297 SlavePort(const std::string& name, MemObject* owner, 298 PortID id = InvalidPortID); 299 virtual ~SlavePort(); 300 | 154 SlavePort& getSlavePort() const; 155 bool isConnected() const; 156 157 /** 158 * Send an atomic request packet, where the data is moved and the 159 * state is updated in zero time, without interleaving with other 160 * memory accesses. 161 * --- 140 unchanged lines hidden (view full) --- 302 MasterPort* _masterPort; 303 304 public: 305 306 SlavePort(const std::string& name, MemObject* owner, 307 PortID id = InvalidPortID); 308 virtual ~SlavePort(); 309 |
301 void unBind(); 302 void bind(MasterPort& master_port); | |
303 MasterPort& getMasterPort() const; 304 bool isConnected() const; 305 306 /** 307 * Send an atomic snoop request packet, where the data is moved 308 * and the state is updated in zero time, without interleaving 309 * with other memory accesses. 310 * --- 71 unchanged lines hidden (view full) --- 382 * 383 * @return a list of ranges responded to 384 */ 385 virtual AddrRangeList getAddrRanges() const = 0; 386 387 protected: 388 389 /** | 310 MasterPort& getMasterPort() const; 311 bool isConnected() const; 312 313 /** 314 * Send an atomic snoop request packet, where the data is moved 315 * and the state is updated in zero time, without interleaving 316 * with other memory accesses. 317 * --- 71 unchanged lines hidden (view full) --- 389 * 390 * @return a list of ranges responded to 391 */ 392 virtual AddrRangeList getAddrRanges() const = 0; 393 394 protected: 395 396 /** |
397 * Called by the master port to unbind. Should never be called 398 * directly. 399 */ 400 void unbind(); 401 402 /** 403 * Called by the master port to bind. Should never be called 404 * directly. 405 */ 406 void bind(MasterPort& master_port); 407 408 /** |
|
390 * Receive an atomic request packet from the master port. 391 */ 392 virtual Tick recvAtomic(PacketPtr pkt) = 0; 393 394 /** 395 * Receive a functional request packet from the master port. 396 */ 397 virtual void recvFunctional(PacketPtr pkt) = 0; --- 24 unchanged lines hidden --- | 409 * Receive an atomic request packet from the master port. 410 */ 411 virtual Tick recvAtomic(PacketPtr pkt) = 0; 412 413 /** 414 * Receive a functional request packet from the master port. 415 */ 416 virtual void recvFunctional(PacketPtr pkt) = 0; --- 24 unchanged lines hidden --- |