/shark/trunk/include/mqueue.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: mqueue.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mqueue.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
POSIX message queues: |
61,7 → 61,10 |
#include <fcntl.h> |
#include <time.h> |
#include <signal.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef int mqd_t; |
struct mq_attr { |
90,4 → 93,5 |
struct mq_attr *omqstat); |
int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat); |
__END_DECLS |
#endif |
/shark/trunk/include/string.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: string.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: string.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
**/ |
51,8 → 51,12 |
#ifndef __STRING_H__ |
#define __STRING_H__ |
#include <ll/string.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
const char *strerror(int errnum); |
int strcasecmp(const char *s1, const char *s2); |
__END_DECLS |
#endif |
/shark/trunk/include/stdlib.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: stdlib.h,v 1.2 2003-02-28 12:05:44 pj Exp $ |
CVS : $Id: stdlib.h,v 1.3 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-02-28 12:05:44 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
stdlib.h |
56,7 → 56,10 |
#include <ll/stdlib.h> |
#include <sys/types.h> |
#include <stddef.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define qsort _quicksort |
void abort(void); |
83,4 → 86,5 |
extern void _quicksort (void *const pbase, size_t total_elems, size_t size, __compar_fn_t cmp); |
extern void * bsearch (const void *key, const void *base, size_t nmemb, size_t size, int (*compar) (const void *, const void *)); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/dummy.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: dummy.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: dummy.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the scheduling module RR (Round Robin) |
79,7 → 79,10 |
#define __DUMMY_H__ |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ |
On upper Intel CPUs it is possible to avoid CPU power consumption |
when the system is idle issuing the hlt instruction. |
94,4 → 97,5 |
+*/ |
LEVEL dummy_register_level(); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/nop.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: nop.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: nop.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the No Protocol (NOP) implementation of mutexes |
80,7 → 80,11 |
#define __NOP_H__ |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL NOP_register_module(void); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/npp.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: npp.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: npp.h,v 1.2 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the Non Preemptive Protocol (NPP) |
88,6 → 88,11 |
#ifndef __NPP_H__ |
#define __NPP_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void NPP_register_module(void); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/edf.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: edf.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: edf.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the scheduling module EDF (Earliest Deadline First) |
123,8 → 123,11 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ flags... +*/ |
#define EDF_DISABLE_ALL 0 |
#define EDF_ENABLE_WCET_CHECK 1 /*+ Wcet check enabled +*/ |
145,4 → 148,5 |
/*+ Returns the used bandwidth of a level +*/ |
bandwidth_t EDF_usedbandwidth(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/posix.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: posix.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: posix.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the scheduling module compatible with POSIX |
96,7 → 96,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern TASK __init__(void *arg); |
142,6 → 145,7 |
/*+ this functions sets paramaters of a task +*/ |
int POSIX_setschedparam(LEVEL l, PID p, int policy, int priority); |
__END_DECLS |
#endif |
/* |
/shark/trunk/include/modules/pc.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: pc.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: pc.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the Priority Ceiling (PC) Protocol |
92,7 → 92,10 |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL PC_register_module(void); |
/*+ This function gets the ceiling of a PC mutex, and it have to be called |
108,4 → 111,5 |
/*+ This function sets the ceiling of a task +*/ |
void PC_set_task_ceiling(RLEVEL r, PID p, DWORD priority); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/hartport.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: hartport.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: hartport.h,v 1.2 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the Hartik 3.3.0's port primitives |
77,6 → 77,10 |
#include <modules/sem.h> |
#include <ll/ll.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* $HEADER- */ |
//#ifndef __HW_DEP_H__ |
//#include "hw_dep.h" |
117,5 → 121,6 |
WORD port_send(PORT p,void *m,BYTE wait); |
WORD port_receive(PORT p,void *m,BYTE wait); |
__END_DECLS |
#endif /* __PORT_H__ */ |
/shark/trunk/include/modules/bd_edf.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: bd_edf.h,v 1.2 2003-01-07 17:12:19 pj Exp $ |
* CVS : $Id: bd_edf.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-01-07 17:12:19 $ |
* Revision: $Revision: 1.3 $ |
* Last update: $Date: 2003-03-13 13:39:04 $ |
*/ |
#ifndef __BD_EDF_H__ |
50,9 → 50,14 |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL BD_EDF_register_module(void); |
TIME bd_edf_getdl(void); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/srp.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: srp.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: srp.h,v 1.3 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the Stack Resource Policy (SRP) Protocol |
107,7 → 107,10 |
#include <kernel/model.h> |
#include <kernel/descr.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL SRP_register_module(void); |
extern __inline__ RES_MODEL *SRP_usemutex(mutex_t *m) { |
114,4 → 117,5 |
return (RES_MODEL *)m->opt; |
}; |
__END_DECLS |
#endif |
/shark/trunk/include/modules/rr2.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: rr2.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: rr2.h,v 1.3 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the scheduling module RR (Round Robin) |
94,7 → 94,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern TASK __init__(void *arg); |
117,4 → 120,5 |
int createmain, |
struct multiboot_info *mb); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/ds.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: ds.h,v 1.2 2003-01-07 17:12:19 pj Exp $ |
CVS : $Id: ds.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:19 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the aperiodic server DS (Polling Server) |
92,7 → 92,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ 1 - ln(2) +*/ |
#ifndef RM_MINFREEBANDWIDTH |
#define RM_MINFREEBANDWIDTH 1317922825 |
127,4 → 130,5 |
/*+ Returns the used bandwidth of a level +*/ |
bandwidth_t DS_usedbandwidth(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/ssutils.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: ssutils.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: ssutils.h,v 1.2 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains utility functions used into |
62,7 → 62,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Max size of replenish queue */ |
#define SS_MAX_REPLENISH MAX_EVENT |
103,4 → 106,5 |
1 queue is empty +*/ |
int ssq_isempty(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/cbs.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: cbs.h,v 1.2 2003-01-07 17:12:19 pj Exp $ |
CVS : $Id: cbs.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:19 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the aperiodic server CBS (Total Bandwidth Server) |
103,7 → 103,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ flags... +*/ |
#define CBS_DISABLE_ALL 0 /*+ Task Guarantee enabled +*/ |
#define CBS_ENABLE_GUARANTEE 1 /*+ Task Guarantee enabled +*/ |
128,5 → 131,5 |
No control is done if the task is not a CBS task! +*/ |
int CBS_get_nact(LEVEL l, PID p); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/pi.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: pi.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: pi.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the Priority Inheritance (PI) Protocol |
90,7 → 90,11 |
#define __PI_H__ |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL PI_register_module(void); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/cabs.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: cabs.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: cabs.h,v 1.2 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the Hartik 3.3.1 CAB functions |
66,7 → 66,10 |
#define __CAB_H__ |
#include <ll/sys/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAX_CAB_NAME 10 /*+ Max. n. of chars for a CAB +*/ |
#define MAX_CAB 10U /*+ Maximum number of CABs +*/ |
85,6 → 88,6 |
int cab_unget(CAB id, char *pun_mes); |
void cab_delete(CAB id); |
__END_DECLS |
#endif /* __CAB_H__ */ |
/shark/trunk/include/modules/nopm.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: nopm.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: nopm.h,v 1.2 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the No Protocol Multiple lock (NOPM) implementation |
58,6 → 58,11 |
#ifndef __NOPM_H__ |
#define __NOPM_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void NOPM_register_module(void); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/bd_pscan.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bd_pscan.h,v 1.2 2003-01-07 17:12:19 pj Exp $ |
* CVS : $Id: bd_pscan.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-01-07 17:12:19 $ |
* Revision: $Revision: 1.3 $ |
* Last update: $Date: 2003-03-13 13:39:04 $ |
*/ |
#ifndef __BD_PSCAN_H__ |
51,7 → 51,10 |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
RLEVEL BD_PSCAN_register_module(void); |
int bd_pscan_getpriority(void); |
61,4 → 64,5 |
#define PSCAN_MEDIUMPRIORITY 2 |
#define PSCAN_LOWPRIORITY 3 |
__END_DECLS |
#endif |
/shark/trunk/include/modules/rm.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: rm.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: rm.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the scheduling module RM (Rate Monotonic) |
122,7 → 122,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ 1 - ln(2) +*/ |
#ifndef RM_MINFREEBANDWIDTH |
151,4 → 154,5 |
/*+ Returns the used bandwidth of a level +*/ |
bandwidth_t RM_usedbandwidth(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/rrsoft.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: rrsoft.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: rrsoft.h,v 1.3 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the scheduling module RRSOFT (Round Robin for |
103,7 → 103,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern TASK __init__(void *arg); |
133,4 → 136,5 |
struct multiboot_info *mb, |
BYTE models); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/ps.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: ps.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: ps.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the aperiodic server PS (Polling Server) |
93,7 → 93,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ 1 - ln(2) +*/ |
#ifndef RM_MINFREEBANDWIDTH |
#define RM_MINFREEBANDWIDTH 1317922825 |
128,4 → 131,5 |
/*+ Returns the used bandwidth of a level +*/ |
bandwidth_t PS_usedbandwidth(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/rr.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: rr.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: rr.h,v 1.3 2003-03-13 13:39:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:04 $ |
------------ |
This file contains the scheduling module RR (Round Robin) |
95,7 → 95,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern TASK __init__(void *arg); |
117,5 → 120,5 |
LEVEL RR_register_level(TIME slice, |
int createmain, |
struct multiboot_info *mb); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/sem.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: sem.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: sem.h,v 1.2 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the semaphoric primitives |
73,7 → 73,10 |
#define __MODULES_SEM_H__ |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define SEM_FAILED NULL |
typedef int sem_t; |
98,4 → 101,5 |
int isBlocked(PID i); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/ss.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: ss.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: ss.h,v 1.3 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the aperiodic server SS (Sporadic Server) |
103,7 → 103,10 |
#include <kernel/config.h> |
#include <kernel/types.h> |
#include <sys/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ 1 - ln(2) +*/ |
#ifndef RM_MINFREEBANDWIDTH |
#define RM_MINFREEBANDWIDTH 1317922825 |
162,4 → 165,5 |
/*+ Returns tha available capacity +*/ |
int SS_availCs(LEVEL l); |
__END_DECLS |
#endif |
/shark/trunk/include/modules/tbs.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: tbs.h,v 1.2 2003-01-07 17:12:20 pj Exp $ |
CVS : $Id: tbs.h,v 1.3 2003-03-13 13:39:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:20 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:39:05 $ |
------------ |
This file contains the aperiodic server TBS (Total Bandwidth Server) |
126,7 → 126,10 |
#include <kernel/config.h> |
#include <sys/types.h> |
#include <kernel/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ flags... +*/ |
#define TBS_DISABLE_ALL 0 |
#define TBS_ENABLE_WCET_CHECK 1 /*+ Wcet check enabled +*/ |
150,5 → 153,5 |
No control is done if the task is not a TBS task! +*/ |
int TBS_get_nact(LEVEL l, PID p); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/irq.h |
---|
38,16 → 38,19 |
*/ |
/* |
* CVS : $Id: irq.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: irq.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef __HARTIK_IRQ_H |
#define __HARTIK_IRQ_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
//#include <h/sys/kern.h> |
//int __request_irq(int irq); |
56,5 → 59,6 |
#define __request_irq(x) (-1) |
#define __release_irq(x) |
__END_DECLS |
#endif |
/shark/trunk/include/fs/fsinit.h |
---|
34,7 → 34,10 |
#include <fs/major.h> |
#include <fs/fsind.h> |
#include <fs/mount.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* file systems params structure |
*/ |
65,4 → 68,5 |
int msdos_fs_init(FILESYSTEM_PARMS *); |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/libio.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: libio.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: libio.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:37:58 $ |
------------ |
pthread.h |
55,7 → 55,12 |
#ifndef __FS_LIBIO_H |
#define __FS_LIBIO_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ initialize user library libio +*/ |
int libio_initialize(void); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/assert.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: assert.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: assert.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef __FS_ASSERT_H |
50,7 → 50,10 |
#define __FS_ASSERT_H |
#include <kernel/assert.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifdef NDEBUG |
#define _assert(test) |
#else |
59,5 → 62,6 |
{ if (!(test)) { fs_crash++; _failed_assertk(#test,__FILE__,__LINE__); } } |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/limits.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: limits.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: limits.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef __FS_LIMITS_H |
50,7 → 50,10 |
#define __FS_LIMITS_H |
#include <bits/limits.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* max filename lenght in chars */ |
#define MAXFILENAMELEN FILENAME_MAX |
99,6 → 102,7 |
#define PATH_MAX MAXPATHNAMELEN |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/mount.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: mount.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mount.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:37:58 $ |
------------ |
**/ |
58,7 → 58,10 |
#include <fs/types.h> |
#include <fs/fsconf.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* |
* SPECIFIC FILESYSTEM PART |
127,4 → 130,5 |
typedef struct mount_opts MOUNT_PARMS; |
__END_DECLS |
#endif |
/shark/trunk/include/fs/mutex.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: mutex.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: mutex.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
/* |
59,7 → 59,10 |
*/ |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __mutex_t; |
178,6 → 181,6 |
__END_DECLS |
#endif |
/shark/trunk/include/fs/bdevinit.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bdevinit.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: bdevinit.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef _HARTIK_BDEVINIT_H |
54,7 → 54,10 |
#include <fs/types.h> |
#include <fs/const.h> |
#include <fs/bdevconf.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* prolog */ |
#define BASE_BDEV_START 0 |
167,4 → 170,5 |
/*+ scan all devices present +*/ |
int bdev_scan_devices(int(*callback)(__dev_t,__uint8_t)); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/fs.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: fs.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: fs.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef __FS_FS_H__ |
50,7 → 50,10 |
#include <fs/types.h> |
#include <fs/mount.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int mount_root(__dev_t device, __uint8_t fs_ind, |
struct mount_opts *options); |
61,4 → 64,5 |
/*+ wait the fs initialization (not required for user task!) +*/ |
int wait_for_fs_initialization(void); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/syscall.h |
---|
22,7 → 22,10 |
#define __FS_SYSCALL_H |
#include <fs/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define SYS_CALL(fun) fun() |
#define SYS_CALL1(fun,a1) fun(a1) |
#define SYS_CALL2(fun,a1,a2) fun((a1),(a2)) |
42,4 → 45,5 |
int k_ftruncate(int fildes, __off_t len); |
int k_unlink(char *path); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/semaph.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: semaph.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: semaph.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
/* |
55,7 → 55,10 |
#define _FS_SEMAPH_H |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __sem_t; |
134,7 → 137,7 |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/util.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: util.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: util.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
/* |
63,7 → 63,10 |
#include <ll/stdlib.h> |
#include <kernel/log.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define panic(x) sys_panic(x) |
/* local time, number of seconds since the Epoch (0:0:0 1 Gen 1970 GMT) */ |
74,5 → 77,6 |
/* all in usec */ |
//extern void __delayk(int usec); |
//extern long __gettimer(void); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/maccess.h |
---|
54,7 → 54,10 |
* verify read/write access to user space |
* |
*/ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int verifyuserread(const void * addr, unsigned long size); |
extern int verifyuserwrite(const void * addr, unsigned long size); |
extern int verifyuserreadnolen(const void *addr); |
123,5 → 126,5 |
#define __release_io_space(x,y) releaseiospace(x,y) |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/bdev.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: bdev.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: bdev.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
*/ |
#ifndef __FS_BDEV_H__ |
49,7 → 49,10 |
#define __FS_BDEV_H__ |
#include <fs/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define BDEV_OK 1 |
#define BDEV_FAIL 0 |
#define BDEV_ERROR -1 |
72,4 → 75,5 |
void bdev_dump_names(void); |
void bdev_dump_status(void); |
__END_DECLS |
#endif |
/shark/trunk/include/sched.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: sched.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: sched.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
sched.h |
55,7 → 55,10 |
#define __SCHED_H__ |
#include <kernel/model.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define SCHED_FIFO NRT_FIFO_POLICY |
#define SCHED_RR NRT_RR_POLICY |
#define SCHED_OTHER NRT_RR_POLICY |
75,4 → 78,5 |
int sched_yield(void); |
__END_DECLS |
#endif |
/shark/trunk/include/pthread.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: pthread.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: pthread.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
pthread.h |
60,7 → 60,10 |
#include <signal.h> |
#include <errno.h> |
#include <kernel/func.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void PTHREAD_register_module(LEVEL sched, RLEVEL pi, RLEVEL pc); |
#define PTHREAD_CANCELED TASK_CANCELED |
546,6 → 549,7 |
#define pthread_cleanup_push task_cleanup_push |
#define pthread_cleanup_pop task_cleanup_pop |
__END_DECLS |
#endif |
/shark/trunk/include/assert.h |
---|
38,16 → 38,19 |
*/ |
/* |
* CVS : $Id: assert.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
* CVS : $Id: assert.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:50 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:41:04 $ |
*/ |
#ifndef __ASSERT_H |
#define __ASSERT_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifdef NDEBUG |
#define assert(test) {} |
61,4 → 64,5 |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/unistd.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: unistd.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: unistd.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
unistd.h, inspired on BSD one... |
90,7 → 90,10 |
#define __UNISTD_H__ |
#include <features.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void _exit(int status); |
/* compile-time symbolic constants */ |
460,4 → 463,5 |
extern long pathconf(const char *path, int name); |
extern long fpathconf(int filedes, int name); |
__END_DECLS |
#endif /* !__UNISTD_H_ */ |
/shark/trunk/include/trace/qudp.h |
---|
23,7 → 23,10 |
#include <kernel/model.h> |
#include <drivers/udpip.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGtrc_udp_queue_args_t { |
int size; |
UDP_ADDR local,remote; |
43,4 → 46,5 |
int trc_register_udp_queue(void); |
__END_DECLS |
#endif |
/shark/trunk/include/trace/qdummy.h |
---|
21,6 → 21,11 |
#ifndef __TRACE_QDUMMY_H |
#define __TRACE_QDUMMY_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int trc_register_dummy_queue(void); |
__END_DECLS |
#endif |
/shark/trunk/include/trace/trace.h |
---|
38,16 → 38,20 |
*/ |
/* |
* CVS : $Id: trace.h,v 1.2 2002-10-21 10:17:26 pj Exp $ |
* CVS : $Id: trace.h,v 1.3 2003-03-13 13:37:02 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2002-10-21 10:17:26 $ |
* Revision: $Revision: 1.3 $ |
* Last update: $Date: 2003-03-13 13:37:02 $ |
*/ |
#ifndef __TRACE_TRACE_H |
#define __TRACE_TRACE_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct trc_parms { |
char *path; |
} TRC_PARMS; |
73,4 → 77,5 |
int TRC_init_phase1_standard(void); |
int TRC_init_phase2_standard(void); |
__END_DECLS |
#endif |
/shark/trunk/include/trace/qfixed.h |
---|
21,6 → 21,10 |
#ifndef __TRACE_QFIXED_H |
#define __TRACE_QFIXED_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGtrc_fixed_queue_args_t { |
char *filename; |
int size; |
38,5 → 42,6 |
Note: You MUST specify a valid filename... */ |
int trc_register_dosfs_fixed_queue(void); |
__END_DECLS |
#endif |
/shark/trunk/include/trace/qcirc.h |
---|
21,6 → 21,10 |
#ifndef __TRACE_QCIRC_H |
#define __TRACE_QCIRC_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGtrc_circular_queue_args_t { |
char *filename; |
int size; |
47,4 → 51,5 |
int trc_register_circular_queue(void); |
__END_DECLS |
#endif |
/shark/trunk/include/trace/queues.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: queues.h,v 1.3 2002-10-28 07:53:40 pj Exp $ |
* CVS : $Id: queues.h,v 1.4 2003-03-13 13:37:02 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.3 $ |
* Last update: $Date: 2002-10-28 07:53:40 $ |
* Revision: $Revision: 1.4 $ |
* Last update: $Date: 2003-03-13 13:37:02 $ |
*/ |
#ifndef __TRACE_QUEUES_H |
50,7 → 50,10 |
#include <ll/sys/types.h> |
#include <trace/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGtrc_queue_t { |
int type; |
trc_event_t *(*get)(void *); |
85,4 → 88,5 |
int trc_create_queue(int queuetype, void *arg); |
__END_DECLS |
#endif |
/shark/trunk/include/signal.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: signal.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: signal.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
This file contains the Signal Handling stuffs... |
95,7 → 95,10 |
#include <kernel/types.h> |
#include <sys/types.h> |
//#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
__DJ_pid_t |
#undef __DJ_pid_t |
#define __DJ_pid_t |
377,5 → 380,5 |
return sigqueue_internal(pid, signo, value, SI_QUEUE); |
} |
__END_DECLS |
#endif |
/shark/trunk/include/sys/stat.h |
---|
33,6 → 33,8 |
# include <time.h> /* For time_t. */ |
#endif |
#include "ll/sys/cdefs.h" |
/* The Single Unix specification says that some more types are |
available here. */ |
__DJ_dev_t |
/shark/trunk/include/sys/utsname.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: utsname.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: utsname.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
utsname.h |
53,6 → 53,10 |
#ifndef __SYS_UTSNAME_H__ |
#define __SYS_UTSNAME_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct utsname { |
char machine[18]; |
char nodename[8]; |
63,4 → 67,5 |
int uname(struct utsname *name); |
__END_DECLS |
#endif |
/shark/trunk/include/sys/sysmacro.h |
---|
19,7 → 19,10 |
#ifndef _SYS_SYSMACROS_H |
#define _SYS_SYSMACROS_H 1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
_ |
/* For compatibility we provide alternative names. |
The problem here is that compilers other than GCC probably don't |
28,4 → 31,5 |
#define minor(dev) ((int)((dev) & 0xff)) |
#define makedev(major, minor) (((major) << 8) | (minor)) |
__END_DECLS |
#endif /* sys/sysmacros.h */ |
/shark/trunk/include/sys/mount.h |
---|
27,7 → 27,10 |
#include <sys/types.h> |
#include <fs/mount.h> |
#include <fs/fsind.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
dev_t fdevice __P ((char *device_name)); |
int mount __P ((dev_t device, u_int8_t fsind, |
35,4 → 38,5 |
int umount __P ((dev_t device)); |
__END_DECLS |
#endif |
/shark/trunk/include/sys/mutex.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: mutex.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: mutex.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:41:04 $ |
*/ |
/* |
74,7 → 74,10 |
#include <h/sys/kern.h> |
#include <h/sys/const.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a mutex object +*/ |
typedef SEM mutex_t; |
95,5 → 98,6 |
/*+ Unlock a mutex +*/ |
#define mutex_unlock(ptr) { sem_signal(*(ptr)); } |
__END_DECLS |
#endif |
/shark/trunk/include/sys/types.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: types.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: types.h,v 1.2 2003-03-13 13:41:04 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
**/ |
66,6 → 66,9 |
#include <bits/types.h> |
#include <sys/htypes.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
__DJ_dev_t |
#undef __DJ_dev_t |
161,5 → 164,6 |
typedef __u_quad_t u_quad_t; |
typedef __quad_t quad_t; |
__END_DECLS |
#endif /* !__dj_include_sys_types_h_ */ |
/shark/trunk/include/drivers/gd.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: gd.h,v 1.2 2003-02-28 12:05:44 pj Exp $ |
CVS : $Id: gd.h,v 1.3 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-02-28 12:05:44 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
54,7 → 54,10 |
#include <ll/sys/types.h> |
/* Std 16 colors... are in cons.h !!!*/ |
#include <ll/i386/cons.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* 15bpp, 16bpp, 24bpp and 32bpp colors... */ |
#define color15(r, g, b) (((WORD)(r & 0x1F) << 10) | ((WORD)(g & 0x1F) << 5) | ((WORD)(b & 0x1F))) |
#define color16(r, g, b) (((WORD)(r & 0x1F) << 11) | ((WORD)(g & 0x3F) << 5) | ((WORD)(b & 0x1F))) |
100,4 → 103,6 |
void gd_setcolor(BYTE ind,BYTE r,BYTE g,BYTE b); |
void gd_getpalette(BYTE start, BYTE num, BYTE *pal); |
void gd_setpalette(BYTE start, BYTE num, BYTE *pal); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/pxc.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: pxc.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: pxc.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
75,6 → 75,10 |
#include <kernel/types.h> |
#include <modules/cabs.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
// Definizione degli indirizzi di comando della scheda , relativamente |
// a quelli direttamente impiegati |
189,5 → 193,5 |
CAB PXC_GetCab(void); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/linuxpci.h |
---|
964,6 → 964,9 |
#define PCI_DEVICE_ID_ARK_STINGARK 0xa099 |
#define PCI_DEVICE_ID_ARK_2000MT 0xa0a1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* The PCI interface treats multi-function devices as independent |
* devices. The slot/function address of each device is encoded |
1076,4 → 1079,5 |
extern const char *pci_strclass (unsigned int class); |
extern const char *pci_strvendor (unsigned int vendor); |
__END_DECLS |
#endif /* LINUX_PCI_H */ |
/shark/trunk/include/drivers/dma.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: dma.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: dma.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
51,6 → 51,10 |
#ifndef __DRIVERS_DMA_H__ |
#define __DRIVERS_DMA_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct dma_buff{ |
BYTE *p; |
DWORD len; |
82,4 → 86,5 |
int infun(struct dma_buff *b); |
int outfun(struct dma_buff *b); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/llpci.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int (*pcibios_read_config_byte) |
(BYTE bus, BYTE dev, BYTE where, BYTE *val); |
extern int (*pcibios_read_config_word) |
15,3 → 18,4 |
int pcibios_find_device(WORD vendor, WORD device, WORD index, BYTE *bus, BYTE *dev); |
int pcibios_init(void); |
int pcibios_present(void); |
__END_DECLS |
/shark/trunk/include/drivers/pci6025e/pci6025e.h |
---|
38,6 → 38,10 |
#include "regconst.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
//#define __REG_DEBUG__ //enable this in debug mode to see |
//configuration registers value |
101,5 → 105,6 |
extern WORD joint_reset, interrupt_a_enable, interrupt_a_ack, |
interrupt_b_enable, interrupt_b_ack, clock_and_fout; |
__END_DECLS |
#endif |
/*End of File: Pci6025e.h*/ |
/shark/trunk/include/drivers/pci6025e/timer.h |
---|
37,7 → 37,10 |
#include <drivers/pci6025e/pci6025e.h> |
#include <drivers/pci6025e/regconst.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define C0 0 |
#define C1 1 |
62,5 → 65,7 |
void TIM_bufferedEventCounting(BYTE, BYTE, BYTE, BYTE, DWORD); |
void TIM_timeMeasurement(BYTE, BYTE, BYTE, BYTE, BYTE, DWORD); |
void TIM_bufferedTimeMeasurement(BYTE, BYTE, BYTE, BYTE, DWORD); |
__END_DECLS |
#endif |
/*--------------------------------------------------------------------------*/ |
/shark/trunk/include/drivers/pci6025e/dio_ppi.h |
---|
34,7 → 34,10 |
#define _MY_DIO_H_ |
#include <drivers/pci6025e/pci6025e.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define ALL_IN 0x0000 //All 8 STC line in input |
#define ALL_OUT 0x00FF //All 8 STC line in output |
66,5 → 69,7 |
WORD PPI_setConfig(BYTE, BYTE, BYTE, BYTE, BYTE, BYTE); |
WORD PPI_getConfig(BYTE); |
BYTE PPI_getAddress(BYTE); |
__END_DECLS |
#endif |
/*--------------------------------------------------------------------------*/ |
/shark/trunk/include/drivers/pci6025e/dac.h |
---|
33,7 → 33,10 |
#include <drivers/pci6025e/pci6025e.h> |
#include <drivers/pci6025e/regconst.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define DAC0 0 |
#define DAC1 1 |
53,5 → 56,7 |
void DAC_Init(void); |
void DAC_output(BYTE, WORD); |
__END_DECLS |
#endif |
/*End of file: DAC.H*/ |
/shark/trunk/include/drivers/glib.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: glib.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: glib.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
53,7 → 53,10 |
#include <ll/sys/types.h> |
#include <drivers/gd.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int grx_init(void); |
int grx_setmode(WORD mode); |
int grx_close(void); |
80,4 → 83,6 |
int grx_open(WORD x, WORD y, BYTE depth); |
void grx_clear(DWORD color); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/parport.h |
---|
44,7 → 44,7 |
* along with this program; if not, write to the Free Software |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* |
* CVS : $Id: parport.h,v 1.2 2003-02-28 12:05:43 pj Exp $ |
* CVS : $Id: parport.h,v 1.3 2003-03-13 13:38:28 pj Exp $ |
*/ |
#include <kernel/kern.h> |
58,8 → 58,11 |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include <math.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* general defs... */ |
#define PP_DEBUG 1 /* 1/0 Activate/Disactive internal debugs... */ |
#define PP_STATS 1 /* 1/0 Activate/Disactive internal statistics... */ |
238,3 → 241,4 |
int ppReadSysMsg(char * buf); |
int ppWriteSysMsg(char * buf, ...); |
__END_DECLS |
/shark/trunk/include/drivers/mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: mouse.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mouse.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
31,11 → 31,11 |
/** |
------------ |
CVS : $Id: mouse.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mouse.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
Author: Gerardo Lamastra |
80,6 → 80,10 |
#include <drivers/scom.h> |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* mouse buttons constant */ |
#define MOUSE_RBUTT 1 |
#define MOUSE_CBUTT 2 |
211,4 → 215,5 |
void (*mouse_on)(void); |
void (*mouse_off)(void); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/rtc.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: rtc.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: rtc.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
57,6 → 57,10 |
#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* The struct used to pass data via the following ioctl. Similar to the |
* struct tm in <time.h>, but it needs to be here so that the kernel |
80,4 → 84,5 |
time_t sys_getdate(void); |
__END_DECLS |
#endif |