Deleted Added
sdiff udiff text old ( 2684:71f3cabf891f ) new ( 2796:8d58290b85c7 )
full compact
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;

--- 60 unchanged lines hidden (view full) ---

69 * Send accessor functions are being called from the device the port is
70 * associated with, and it will call the peer recv. accessor function.
71 */
72class Port
73{
74 private:
75
76 /** Descriptive name (for DPRINTF output) */
77 const std::string portName;
78
79 /** A pointer to the peer port. Ports always come in pairs, that way they
80 can use a standardized interface to communicate between different
81 memory objects. */
82 Port *peer;
83
84 public:
85
86 /**
87 * Constructor.
88 *
89 * @param _name Port name for DPRINTF output. Should include name
90 * of memory system object to which the port belongs.
91 */
92 Port(const std::string &_name)
93 : portName(_name), peer(NULL)

--- 6 unchanged lines hidden (view full) ---

100
101 // mey be better to use subclasses & RTTI?
102 /** Holds the ports status. Currently just that a range recomputation needs
103 * to be done. */
104 enum Status {
105 RangeChange
106 };
107
108 /** Function to set the pointer for the peer port.
109 @todo should be called by the configuration stuff (python).
110 */
111 void setPeer(Port *port);
112
113 /** Function to set the pointer for the peer port.
114 @todo should be called by the configuration stuff (python).
115 */

--- 160 unchanged lines hidden ---