Deleted Added
sdiff udiff text old ( 10303:71e0934af9f1 ) new ( 10311:ad9c042dce54 )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

67 virtual void init();
68
69 static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int getNumNodes() const { return m_nodes; }
71
72 static uint32_t MessageSizeType_to_int(MessageSizeType size_type);
73
74 // returns the queue requested for the given component
75 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered,
76 int netNumber, std::string vnet_type) = 0;
77 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
78 int netNumber, std::string vnet_type) = 0;
79
80
81 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
82 LinkDirection direction,
83 const NetDest& routing_table_entry) = 0;
84 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
85 LinkDirection direction,
86 const NetDest& routing_table_entry) = 0;
87 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
88 LinkDirection direction,

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

108
109 uint32_t m_nodes;
110 static uint32_t m_virtual_networks;
111 Topology* m_topology_ptr;
112 static uint32_t m_control_msg_size;
113 static uint32_t m_data_msg_size;
114
115 // vector of queues from the components
116 std::vector<std::vector<MessageBuffer*> > m_toNetQueues;
117 std::vector<std::vector<MessageBuffer*> > m_fromNetQueues;
118
119 std::vector<bool> m_in_use;
120 std::vector<bool> m_ordered;
121
122 private:
123 //! Callback class used for collating statistics from all the
124 //! controller of this type.
125 class StatsCallback : public Callback

--- 25 unchanged lines hidden ---