Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1039 → Rev 1038

/shark/trunk/ports/first/fsf_include/fsf_basic_types.h
80,6 → 80,15
 
 
/**
Contract parameters type; it is an opaque type (i.e. the internal
structure of this data type is implementation dependent). The user
can access and modify the parameters of a contract only with the
proper functions, and should never access the data directly.
*/
typedef FSF_CONTRACT_PARAMETERS_T_OPAQUE fsf_contract_parameters_t;
 
 
/**
Synchronization object handle type, this an opaque type
used to signaling of servers
*/
100,6 → 109,21
typedef void * (*fsf_thread_code_t) (void *);
 
 
/// List of contracts to negotiate
typedef struct {
int size;
fsf_contract_parameters_t* contracts[FSF_MAX_N_SERVERS];
} fsf_contracts_group_t;
 
/// List of servers to cancel
typedef struct {
int size;
fsf_server_id_t servers[FSF_MAX_N_SERVERS];
} fsf_servers_group_t;
 
 
 
 
//
// Types for the spare capacity module
//
148,13 → 172,7
value[FSF_MAX_N_UTILIZATION_VALUES];
} fsf_utilization_set_t;
 
/// List of servers to cancel
typedef struct {
int size;
fsf_server_id_t servers[FSF_MAX_N_SERVERS];
} fsf_servers_group_t;
 
 
/// The defualt granularity
#define FSF_DEFAULT_GRANULARITY FSF_CONTINUOUS
 
245,7 → 263,7
 
*/
/// Scheduling policies
typedef enum {FSF_FP, FSF_EDF, FSF_TABLE_DRIVEN, FSF_RR, FSF_FEDF,FSF_NONE}
typedef enum {FSF_FP, FSF_EDF, FSF_TABLE_DRIVEN, FSF_RR, FSF_NONE}
fsf_sched_policy_t;
 
/**
305,6 → 323,7
// Constant for assigning default values
#define FSF_DEFAULT_SCHED_POLICY FSF_NONE
 
 
//
// Types for the distributed services module
//
340,21 → 359,8
typedef unsigned int fsf_port_t;
 
 
/**
Contract parameters type; it is an opaque type (i.e. the internal
structure of this data type is implementation dependent). The user
can access and modify the parameters of a contract only with the
proper functions, and should never access the data directly.
*/
typedef FSF_CONTRACT_PARAMETERS_T_OPAQUE fsf_contract_parameters_t;
 
/// List of contracts to negotiate
typedef struct {
int size;
fsf_contract_parameters_t* contracts[FSF_MAX_N_SERVERS];
} fsf_contracts_group_t;
 
 
// Error codes
#define FSF_ERR_BASE_VALUE 0x02004000