bridge.hh (2738:5d7a31c7fa29) | bridge.hh (2982:0ecdb0879b14) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Ali Saidi 29 * Steve Reinhardt 30 */ 31 32/** | 1/* 2 * Copyright (c) 2006 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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Ali Saidi 29 * Steve Reinhardt 30 */ 31 32/** |
33 * @file Decleration of a simple bus bridge object with no buffering | 33 * @file 34 * Declaration of a simple bus bridge object with no buffering |
34 */ 35 36#ifndef __MEM_BRIDGE_HH__ 37#define __MEM_BRIDGE_HH__ 38 39#include <string> 40#include <list> 41#include <inttypes.h> 42#include <queue> 43 44#include "mem/mem_object.hh" 45#include "mem/packet.hh" 46#include "mem/port.hh" 47#include "sim/eventq.hh" 48 49class Bridge : public MemObject 50{ 51 protected: | 35 */ 36 37#ifndef __MEM_BRIDGE_HH__ 38#define __MEM_BRIDGE_HH__ 39 40#include <string> 41#include <list> 42#include <inttypes.h> 43#include <queue> 44 45#include "mem/mem_object.hh" 46#include "mem/packet.hh" 47#include "mem/port.hh" 48#include "sim/eventq.hh" 49 50class Bridge : public MemObject 51{ 52 protected: |
52 /** Decleration of the buses port type, one will be instantiated for each | 53 /** Declaration of the buses port type, one will be instantiated for each |
53 of the interfaces connecting to the bus. */ 54 class BridgePort : public Port 55 { 56 /** A pointer to the bridge to which this port belongs. */ 57 Bridge *bridge; 58 59 /** 60 * Pointer to the port on the other side of the bridge --- 127 unchanged lines hidden --- | 54 of the interfaces connecting to the bus. */ 55 class BridgePort : public Port 56 { 57 /** A pointer to the bridge to which this port belongs. */ 58 Bridge *bridge; 59 60 /** 61 * Pointer to the port on the other side of the bridge --- 127 unchanged lines hidden --- |