3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef _SURF_NETWORK_PRIVATE_H
9 #define _SURF_NETWORK_PRIVATE_H
11 #include "surf_private.h"
12 #include "network_common.h"
15 typedef struct network_link_CM02 {
16 s_surf_resource_t generic_resource; /* must remain first to be added to a trace */
18 xbt_dict_t properties;
19 /* Using this object with the public part of
20 model does not make sense */
22 tmgr_trace_event_t bw_event;
24 tmgr_trace_event_t lat_event;
25 e_surf_link_state_t state_current;
26 tmgr_trace_event_t state_event;
27 lmm_constraint_t constraint;
28 } s_link_CM02_t, *link_CM02_t;
31 typedef struct network_card_CM02 {
32 s_surf_resource_t generic_resource; /* must remain first to allow casts */
34 } s_network_card_CM02_t, *network_card_CM02_t;
36 typedef struct surf_action_network_CM02 {
37 s_surf_action_t generic_action;
41 lmm_variable_t variable;
44 network_card_CM02_t src;
45 network_card_CM02_t dst;
46 } s_surf_action_network_CM02_t, *surf_action_network_CM02_t;
48 extern int card_number;
49 extern link_CM02_t **routing_table;
50 extern int *routing_table_size;
52 #define ROUTE(i,j) routing_table[(i)+(j)*host_number]
53 #define ROUTE_SIZE(i,j) routing_table_size[(i)+(j)*host_number]
55 #endif /* _SURF_NETWORK_PRIVATE_H */