bridge.hh (9090:e4e22240398f) | bridge.hh (9128:6921ec2e77c4) |
---|---|
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 --- 199 unchanged lines hidden (view full) --- 208 209 /** 210 * Handle send event, scheduled when the packet at the head of 211 * the response queue is ready to transmit (for timing 212 * accesses only). 213 */ 214 void trySend(); 215 | 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 --- 199 unchanged lines hidden (view full) --- 208 209 /** 210 * Handle send event, scheduled when the packet at the head of 211 * the response queue is ready to transmit (for timing 212 * accesses only). 213 */ 214 void trySend(); 215 |
216 /** 217 * Private class for scheduling sending of responses from the 218 * response queue. 219 */ 220 class SendEvent : public Event 221 { 222 BridgeSlavePort& port; 223 224 public: 225 SendEvent(BridgeSlavePort& p) : port(p) {} 226 virtual void process() { port.trySend(); } 227 virtual const char *description() const { return "bridge send"; } 228 }; 229 | |
230 /** Send event for the response queue. */ | 216 /** Send event for the response queue. */ |
231 SendEvent sendEvent; | 217 EventWrapper<BridgeSlavePort, &BridgeSlavePort::trySend> sendEvent; |
232 233 public: 234 235 /** 236 * Constructor for the BridgeSlavePort. 237 * 238 * @param _name the port name including the owner 239 * @param _bridge the structural owner --- 77 unchanged lines hidden (view full) --- 317 318 /** 319 * Handle send event, scheduled when the packet at the head of 320 * the outbound queue is ready to transmit (for timing 321 * accesses only). 322 */ 323 void trySend(); 324 | 218 219 public: 220 221 /** 222 * Constructor for the BridgeSlavePort. 223 * 224 * @param _name the port name including the owner 225 * @param _bridge the structural owner --- 77 unchanged lines hidden (view full) --- 303 304 /** 305 * Handle send event, scheduled when the packet at the head of 306 * the outbound queue is ready to transmit (for timing 307 * accesses only). 308 */ 309 void trySend(); 310 |
325 /** 326 * Private class for scheduling sending of requests from the 327 * request queue. 328 */ 329 class SendEvent : public Event 330 { 331 BridgeMasterPort& port; 332 333 public: 334 SendEvent(BridgeMasterPort& p) : port(p) {} 335 virtual void process() { port.trySend(); } 336 virtual const char *description() const { return "bridge send"; } 337 }; 338 | |
339 /** Send event for the request queue. */ | 311 /** Send event for the request queue. */ |
340 SendEvent sendEvent; | 312 EventWrapper<BridgeMasterPort, &BridgeMasterPort::trySend> sendEvent; |
341 342 public: 343 344 /** 345 * Constructor for the BridgeMasterPort. 346 * 347 * @param _name the port name including the owner 348 * @param _bridge the structural owner --- 72 unchanged lines hidden --- | 313 314 public: 315 316 /** 317 * Constructor for the BridgeMasterPort. 318 * 319 * @param _name the port name including the owner 320 * @param _bridge the structural owner --- 72 unchanged lines hidden --- |