/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 |
/shark/trunk/drivers/grx/drawfun/fun16.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define memsetw(addr, val, n) {LIN_ADDR i; for(i = addr; i < addr + n; i += 2) lmempokew(i, val);} |
17,3 → 20,4 |
void linWr16(WORD x, WORD y, DWORD color); |
DWORD RdPixel_Hi(WORD x, WORD y); |
DWORD linRd16(WORD x, WORD y); |
__END_DECLS |
/shark/trunk/drivers/grx/drawfun/fun8.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void RdWin_256(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
void linGet8(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
void WrWin_256(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
14,3 → 17,4 |
void linWr8(WORD x, WORD y, DWORD color); |
DWORD RdPixel_256(WORD x, WORD y); |
DWORD linRd8(WORD x, WORD y); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/trident.h |
---|
1,4 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int trident_test(void); |
void trident_setpage(int page); |
void trident_showinfo(void); |
DWORD trident_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/vesa.h |
---|
1,4 → 1,8 |
#include <ll/i386/x-dos.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/****************************************************************************/ |
/* DEFINIZIONE DEI TIPI */ |
/****************************************************************************/ |
94,3 → 98,4 |
int vbe_checkmode(WORD mode); |
DWORD vbe_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/s3.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int s3_test(void); |
void s3_setpage(int page); |
void s3_setpage864(int page); |
4,3 → 7,4 |
void s3_linear(DWORD param); |
void s3_showinfo(void); |
DWORD s3_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/svga/vgammvgaio.h |
---|
1,2 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern unsigned long __svgalib_vgammbase; |
extern void __svgalib_mm_io_mapio(void); |
__END_DECLS |
/shark/trunk/drivers/svga/vgaregs.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Register indices into mode state array. */ |
#define VGA_CRTC_COUNT 24 |
114,3 → 117,5 |
#define __svgalib_inCR __svgalib_incrtc |
#define __svgalib_outCR __svgalib_outcrtc |
#define __svgalib_outbCR __svgalib_outcrtc |
__END_DECLS |
/shark/trunk/drivers/svga/interface.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Prototypes of functions defined in interface.c. */ |
/* |
21,3 → 24,4 |
*/ |
void __svgalib_clear_accelspecs(AccelSpecs * accelspecs); |
__END_DECLS |
/shark/trunk/drivers/svga/vgarelvgaio.h |
---|
1,2 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_io_reloc; |
extern void __svgalib_rel_io_mapio(void); |
__END_DECLS |
/shark/trunk/drivers/svga/io.h |
---|
1,5 → 1,8 |
#include <stdint.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __alpha__ |
#define v_readb(addr) (*(volatile uint8_t *) (MMIO_POINTER+(addr))) |
67,4 → 70,5 |
mb(); |
} |
__END_DECLS |
#endif /* __alpha__ */ |
/shark/trunk/drivers/svga/accel.h |
---|
2,6 → 2,10 |
#ifndef ACCEL_H |
#define ACCEL_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* New accelerator interface sketch. |
* As of svgalib 1.23, this isn't used yet. |
201,4 → 205,5 |
* void initOperations( AccelSpecs *accelspecs, int bpp, int width_in_pixels ); |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/endianess.h |
---|
1,6 → 1,9 |
#include <endian.h> |
#include <byteswap.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#if __BYTE_ORDER == __BIG_ENDIAN |
#define LE32(x) bswap_32(x) |
12,3 → 15,5 |
#define BE32(x) bswap_32(x) |
#endif |
__END_DECLS |
/shark/trunk/drivers/svga/vgapci.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_pci_find_vendor_vga(unsigned int vendor, unsigned long *conf, int cont); |
extern int __svgalib_pci_find_vendor_vga_pos(unsigned int vendor, unsigned long *conf, int cont); |
extern int __svgalib_pci_idev; |
9,4 → 12,4 |
extern int __svgalib_pci_read_config_dword(int pos, int address); |
extern int __svgalib_pci_read_aperture_len(int pos, int address); |
extern int memorytest(unsigned char *m, int max_mem); |
__END_DECLS |
/shark/trunk/drivers/svga/grx/glib.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: glib.h,v 1.2 2003-03-13 13:08:38 giacomo Exp $ |
CVS : $Id: glib.h,v 1.3 2003-03-13 13:46:08 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:08:38 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:46:08 $ |
------------ |
**/ |
52,7 → 52,10 |
#define __GLIB_H__ |
#include <ll/sys/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int grx_setbuffer(BYTE *vbuf,WORD w, WORD h); |
void grx_plot(WORD x, WORD y, DWORD color); |
66,5 → 69,5 |
void grx_circle(WORD x, WORD y, WORD r, DWORD col); |
void grx_disc(WORD x, WORD y, WORD r, DWORD col); |
void grx_clear(DWORD color); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/nvreg.h |
---|
26,6 → 26,10 |
#ifndef __NVREG_H_ |
#define __NVREG_H_ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Little macro to construct bitmask for contiguous ranges of bits */ |
#define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) |
#define MASKEXPAND(mask) BITMASK(1?mask,0?mask) |
172,6 → 176,8 |
NVChipType GetChipType(void); |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/vgaversion.h |
---|
1,2 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int vga_version=0x1917; |
static char versionstr[32]="1.9.17"; |
__END_DECLS |
/shark/trunk/drivers/svga/driver.h |
---|
17,7 → 17,10 |
#include "timing.h" |
#include "accel.h" |
#include "io.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAX_REGS 5000 /* VESA needs a lot of storage space */ |
extern int inrestore; |
192,4 → 195,5 |
extern void __svgalib_readmodes(FILE * inp, ModeTable ** modes, int *dac, unsigned *clocks); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/interrupt.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void vga_init_vsync(struct sh_pci_device *); |
int vga_test_vsync(struct sh_pci_device *); |
void vga_ack_vsync(struct sh_pci_device *); |
void vga_enable_vsync(struct sh_pci_device *); |
__END_DECLS |
/shark/trunk/drivers/svga/clockchip.h |
---|
1,3 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* clockchip.h |
*/ |
30,3 → 34,5 |
} ClockChipMethods; |
extern ClockChipMethods __svgalib_I2061A_clockchip_methods; |
__END_DECLS |
/shark/trunk/drivers/svga/8514a.h |
---|
10,7 → 10,10 |
#ifndef _8514A_H |
#define _8514A_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define CMD 0x9AE8 |
#define ALU_FG_FN 0xBAEE |
#define ALU_BG_FN 0xB6EE |
88,5 → 91,5 |
#define DEST_CMP_FN 0xEEEE |
#define CMP_COLOR 0xB2E8 |
#define RD_MASK 0xAEE8 |
__END_DECLS |
#endif /* _8514A_H */ |
/shark/trunk/drivers/svga/lrmi.h |
---|
13,6 → 13,10 |
#ifndef LRMI_H |
#define LRMI_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct LRMI_regs |
{ |
unsigned int edi; |
51,4 → 55,6 |
int |
LRMI_int(int interrupt, struct LRMI_regs *r); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/libvga.h |
---|
11,6 → 11,10 |
#include <string.h> |
#include <stdint.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
//typedef unsigned int CARD32; |
//typedef unsigned short CARD16; |
//typedef unsigned char CARD8; |
275,5 → 279,7 |
#define DPRINTF(...) |
#endif |
__END_DECLS |
#endif /* _LIBVGA_H */ |
/shark/trunk/drivers/svga/vgaio.h |
---|
1,5 → 1,7 |
#include "libvga.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_vga_inmisc(void); |
extern void __svgalib_vga_outmisc(int i); |
extern int __svgalib_vga_incrtc(int i); |
14,3 → 16,4 |
extern void __svgalib_vga_attscreen(int i); |
extern void __svgalib_vga_inpal(int i, int *r, int *g, int *b); |
extern void __svgalib_vga_outpal(int i, int r, int g, int b); |
__END_DECLS |
/shark/trunk/drivers/svga/vga.h |
---|
14,11 → 14,9 |
#include <drivers/grxsvga/glib.h> |
#include <kernel/log.h> |
#ifdef __cplusplus |
extern "C" |
{ |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define rgb15(r, g, b) ((((WORD)(r & 0xF8)>>3) << 10) | (((WORD)(g & 0xF8)>>3) << 5) | ((WORD)(b & 0xF8)>>3)) |
#define rgb16(r, g, b) ((((WORD)(r & 0xF8)>>3) << 11) | (((WORD)(g & 0xFC)>>2) << 5) | ((WORD)(b & 0xF8)>>3)) |
#define rgb24(r, g, b) (((DWORD)(r & 0xFF) << 16) | ((DWORD)(g & 0xFF) << 8) | (DWORD)(b & 0xFF)) |
586,8 → 584,6 |
#define VGA_COMEFROMBACK -2 |
extern int vga_runinbackground_version(void); |
#ifdef __cplusplus |
} |
__END_DECLS |
#endif |
#endif /* VGA_H */ |
/shark/trunk/drivers/svga/svgalib_helper.h |
---|
1,6 → 1,10 |
#ifndef __SVGALIB_HELPER__ |
#define __SVGALIB_HELPER__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifdef __KERNEL__ |
#define MAX_NR_DEVICES 15 |
85,6 → 89,8 |
int svgalib_helper_ioctl( struct inode *inode, unsigned int cmd, unsigned long arg); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/ramdac.h |
---|
4,6 → 4,10 |
* Structures and functions for programmable ramdac support. |
*/ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* DacMethods type. */ |
typedef struct { |
164,3 → 168,5 |
void _ramdac_dactopel(void); |
unsigned char _ramdac_setcomm(unsigned char data); |
#endif |
__END_DECLS |
/shark/trunk/drivers/svga/timing.h |
---|
2,6 → 2,10 |
#ifndef TIMING_H |
#define TIMING_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Generic mode timing module. |
*/ |
167,4 → 171,6 |
#define GTF_lockHF 2 /* Lock to horizontal frequency */ |
#define GTF_lockPF 3 /* Lock to pixel clock frequency*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/oldsnd/blaster.h |
---|
1,6 → 1,9 |
#include "semaphore.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct sb_device { |
DWORD BaseAddress; |
BYTE IntLine; |
43,3 → 46,5 |
void sb_dma16buffop(BYTE i_o); |
void sb_stopdsp(BYTE b); |
void sb_show(void); |
__END_DECLS |
/shark/trunk/drivers/oldsnd/sbio.h |
---|
1,3 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* DSP Registers */ |
#define RESET 0x06 |
#define READDATA 0x0A |
56,3 → 60,5 |
BYTE inpb(WORD addr); |
void outpb(WORD addr, BYTE val); |
__END_DECLS |
/shark/trunk/drivers/net/netbuff.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: netbuff.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: netbuff.h,v 1.2 2003-03-13 13:54:07 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:54:07 $ |
------------ |
**/ |
56,10 → 56,10 |
#ifndef __NETBUFF_H__ |
#define __NETBUFF_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct netbuff{ |
BYTE *b; |
BYTE **pb; |
73,8 → 73,6 |
void *netbuff_sequentialget(struct netbuff *netb, BYTE to); |
void netbuff_release(struct netbuff *netb, void *m); |
#ifdef __cplusplus |
}; |
#endif |
__END_DECLS |
#endif |
/shark/trunk/drivers/net/8390.h |
---|
11,7 → 11,10 |
#include <linux/if_ether.h> |
#include <linux/ioport.h> |
#include <linux/skbuff.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* With kmod, drivers can now load the 8390 module themselves! */ |
#if 0 /* def CONFIG_KMOD */ |
#define LOAD_8390_BY_KMOD |
289,4 → 292,5 |
#define ENTSR_CDH 0x40 /* The collision detect "heartbeat" signal was lost. */ |
#define ENTSR_OWC 0x80 /* There was an out-of-window collision. */ |
__END_DECLS |
#endif /* _8390_h */ |
/shark/trunk/drivers/net/eth_priv.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: eth_priv.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: eth_priv.h,v 1.2 2003-03-13 13:54:07 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:54:07 $ |
------------ |
**/ |
57,10 → 57,10 |
#ifndef __ETH_H__ |
#define __ETH_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define LOOPBACK 2 |
#define ETH_MAX_LEN 1528 |
111,8 → 111,5 |
void eth_getAddress(struct eth_addr *eth); |
#ifdef __cplusplus |
}; |
__END_DECLS |
#endif |
#endif |
/shark/trunk/drivers/net/arp.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: arp.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: arp.h,v 1.2 2003-03-13 13:54:07 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:54:07 $ |
------------ |
**/ |
58,10 → 58,10 |
#ifndef __ARP_H__ |
#define __ARP_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define ARP_IP_TYPE 0x0800 |
#define ARP_ETH_TYPE 1 |
90,8 → 90,6 |
int arp_req(IP_ADDR dest); |
void arp_sendRequest(int i); |
#ifdef __cplusplus |
}; |
#endif |
__BEGIN_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/linux/compatib.h |
---|
1,5 → 1,8 |
#include <kernel/kern.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __UNIXCOMP__ |
#define __UNIXCOMP__ |
122,4 → 125,5 |
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */ |
#define le16_to_cpu __le16_to_cpu |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/asm/io.h |
---|
2,7 → 2,10 |
#define __IO__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Thanks to James van Artsdalen for a better timing-fix than |
* the two short jumps: using outb's to a nonexistent port seems |
71,5 → 74,5 |
#define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b)) |
#define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b)) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/fpu_control.h |
---|
21,6 → 21,10 |
#ifndef _FPU_CONTROL_H |
#define _FPU_CONTROL_H 1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Here is the dirty part. Set up your 387 through the control word |
* (cw) register. |
* |
95,4 → 99,5 |
/* Default control word set at startup. */ |
extern fpu_control_t __fpu_control; |
__END_DECLS |
#endif /* fpu_control.h */ |
/shark/trunk/drivers/linuxc24/include/byteswap.h |
---|
21,8 → 21,11 |
/* Get the machine specific, optimized definitions. */ |
#include <bits/byteswap.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* The following definitions must all be macros since otherwise some |
of the possible optimizations are not possible. */ |
37,4 → 40,5 |
# define bswap_64(x) __bswap_64 (x) |
#endif |
__END_DECLS |
#endif /* byteswap.h */ |
/shark/trunk/drivers/linuxc24/include/stdint.h |
---|
26,7 → 26,10 |
#include <features.h> |
#include <bits/wchar.h> |
#include <bits/wordsize.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Exact integral types. */ |
/* Signed. */ |
317,4 → 320,5 |
#endif /* C++ && constant macros */ |
__END_DECLS |
#endif /* stdint.h */ |
/shark/trunk/drivers/linuxc24/include/sys/ttydefaults.h |
---|
40,6 → 40,10 |
#ifndef _SYS_TTYDEFAULTS_H_ |
#define _SYS_TTYDEFAULTS_H_ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Defaults on "first" open. |
*/ |
97,4 → 101,6 |
CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE |
}; |
#undef TTYDEFCHARS |
__END_DECLS |
#endif |
/shark/trunk/drivers/pcl812/pclab.h |
---|
3,7 → 3,9 |
/* le funzioni di aquisizione contenute in PCLAB.C */ |
/*--------------------------------------------------------------*/ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
float ad_conv(int ); /* conversione A/D */ |
int da_conv(float, int ); /* conversione D/A */ |
10,4 → 12,6 |
int par_in(void); /* ingresso digitale */ |
void par_out(int n); /* uscita digitale */ |
__END_DECLS |
/*--------------------------------------------------------------*/ |
/shark/trunk/drivers/block/sstf/sstf.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGsstf_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest sstf_getrequest |
#define bqueue_removerequest sstf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/fcfs/fcfs.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGfcfs_queue_t { |
struct phdskinfo *disk; |
/**/ |
64,4 → 67,5 |
#define bqueue_getrequest fcfs_getrequest |
#define bqueue_removerequest fcfs_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/glue.h |
---|
20,7 → 20,10 |
*/ |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __b_mutex_t; |
128,5 → 131,5 |
while (__gettimer()<t); \ |
} |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ide.h |
---|
21,11 → 21,11 |
/*************************************** |
CVS : $Id: ide.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: ide.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
Revision: $Revision: 1.1.1.1 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
Header file for all the modules of the IDE block device interface |
sub-system. |
57,7 → 57,10 |
#include "glue.h" |
#include "bdev.h" |
#include "bqueue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ max number of ide interface (must be <= 8) +*/ |
#define MAXIDEINTERFACES 4 |
444,6 → 447,7 |
#define is_communicatordev(p) ((((p)->config&0x1f00)>>8)==0x09) |
#define is_arraydev(p) ((((p)->config&0x1f00)>>8)==0x0c) |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/edf/edf.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGbd_edf_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest bd_edf_getrequest |
#define bqueue_removerequest bd_edf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/idereq.h |
---|
9,7 → 9,10 |
#include "bqueue.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXIDEREQUEST 64 |
/* -------- */ |
60,4 → 63,5 |
/* remove the request that we have served blocking the queue*/ |
int remove_idereq_blocking(int ideif); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/phdsk.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: phdsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: phdsk.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __PHDSK_H__ |
49,7 → 49,10 |
#define __PHDSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXPHDSK 4 |
#define MAXPHDSKNAME 16 |
85,4 → 88,5 |
void phdsk_init(void); |
struct phdskinfo *phdsk_register(struct phdskinfo *disk); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/lodsk.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: lodsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: lodsk.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __LODSK_H__ |
50,7 → 50,10 |
#define __LODSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MSDOS_LABEL_MAGIC 0xAA55 |
struct phpartition { |
91,5 → 94,6 |
int lodsk_scan(__dev_t device, lodsk_callback_func func, |
void *data, int showinfo, char *lname); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ideglue.h |
---|
1,9 → 1,13 |
#ifndef __IDEGLUE_H |
#define __IDEGLUE_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void ide_glue_send_request(int ideif); |
int ide_glue_activate_interface(int ideif); |
void ide_glue_unactivate_interface(int ideif); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/look/look.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGlook_queue_t { |
struct phdskinfo *disk; |
/**/ |
64,4 → 67,5 |
#define bqueue_getrequest look_getrequest |
#define bqueue_removerequest look_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/pscan/pscan.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* must be in sync with <modules/bd_pscan.h> */ |
#define NUMPRIORITY 4 |
70,4 → 73,5 |
#define bqueue_getrequest pscan_getrequest |
#define bqueue_removerequest pscan_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/bdev.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bdev.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: bdev.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __BDEV_H__ |
52,7 → 52,10 |
#include "glue.h" |
#include <fs/bdevinit.h> |
#include <fs/bdev.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXBLOCKDEVICE 8 |
struct block_device { |
105,4 → 108,5 |
int bdev_seek(__dev_t dev, __blkcnt_t blocknum); |
int bdev_write(__dev_t dev, __blkcnt_t blocknum, __uint8_t *buffer); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/clook/clook.h |
---|
43,7 → 43,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGclook_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest clook_getrequest |
#define bqueue_removerequest clook_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/debug.h |
---|
1,3 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* si trova in fs/util/ */ |
void dump_buffer(char *buf, int size); |
__END_DECLS |
/shark/trunk/drivers/block/bqueue.h |
---|
20,11 → 20,11 |
/*************************************** |
CVS : $Id: bqueue.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: bqueue.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
Revision: $Revision: 1.1.1.1 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
This module is responsable of the protocol between the IDE device driver |
interface and the host (the computer). |
74,6 → 74,10 |
#include "pscan/pscan.h" |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define REQ_DUMMY 0 |
#define REQ_SEEK 1 |
#define REQ_READ 2 |
95,5 → 99,5 |
int bqueue_insertrequest(bqueue_t *, struct request_prologue *); |
struct request_prologue *bqueue_getrequest(bqueue_t *); |
int bqueue_removerequest(bqueue_t *); |
__END_DECLS |
#endif |
/shark/trunk/drivers/pci/linuxpci.h |
---|
46,6 → 46,10 |
#ifndef LINUX_PCI_H |
#define LINUX_PCI_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Under PCI, each device has 256 bytes of configuration address space, |
* of which the first 64 bytes are standardized as follows: |
1076,4 → 1080,6 |
extern const char *pci_strclass (unsigned int class); |
extern const char *pci_strvendor (unsigned int vendor); |
__END_DECLS |
#endif /* LINUX_PCI_H */ |
/shark/trunk/drivers/pci/pci.h |
---|
9,10 → 9,10 |
#ifndef __PCI_H__ |
#define __PCI_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define N_MAX_DEVS 10 |
typedef struct pci_regs { |
72,9 → 72,7 |
struct pci_regs *pci_class(DWORD class_code, WORD index, BYTE *bus, BYTE *dev); |
struct pci_regs *pci_device(WORD vendor, WORD device, WORD index, BYTE *bus, BYTE *dev); |
#ifdef __cplusplus |
}; |
#endif |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/8042.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: 8042.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: 8042.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
8042.h |
63,6 → 63,10 |
#ifndef __8042_H__ |
#define __8042_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define C8042_KEYBOARDIRQ 1 |
#define C8042_PS2IRQ 12 |
213,6 → 217,7 |
need |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/sermouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: sermouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: sermouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
Author: Massimiliano Giorgi |
59,7 → 59,10 |
#define __SERMOUSE_H__ |
#include <drivers/mouse.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct sermouse_info { |
int type; /* MSMOUSE, MMMOUSE,... */ |
int port; /* COM1,COM2,... */ |
88,4 → 91,5 |
int M_mm(MOUSE_EVT *evt,unsigned char *data); |
int M_logi(MOUSE_EVT *evt,unsigned char *data); |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/ps2mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: ps2mouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: ps2mouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
Author: Massimiliano Giorgi |
59,7 → 59,10 |
#define __PS2MOUSE_H__ |
#include <drivers/mouse.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int C8042_ps2mousepresent(void); |
#define ps2mouse_present() C8042_ps2mousepresent() |
75,4 → 78,5 |
extern int M_ps2(MOUSE_EVT *evt, unsigned char *data); |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/_mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: _mouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: _mouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
_mouse.h |
52,7 → 52,10 |
#ifndef ___MOUSE_H__ |
#define ___MOUSE_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* "virtual operations" on a mouse */ |
struct mouse_operations { |
char *name; /* name! */ |
134,6 → 137,7 |
/* (to not declare saved_x & saved_y public) */ |
void _mouse_getsavedposition(int *xptr, int *yptr); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/netdevice.h |
---|
9,7 → 9,10 |
#include <linux/skbuff.h> |
#include <linux/notifier.h> |
#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
// for 3c59x.c (!!!) |
#define le32_to_cpu(val) (val) |
#define cpu_to_le32(val) (val) |
258,6 → 261,7 |
void netif_rx(struct sk_buff *skb); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/stddef.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_STDDEF_H |
#define _LINUX_STDDEF_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef _SIZE_T |
#define _SIZE_T |
typedef unsigned int size_t; |
12,4 → 16,6 |
#undef offsetof |
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/notifier.h |
---|
2,7 → 2,10 |
#define __NOTIFIER__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct notifier_block |
{ |
int (*notifier_call)(struct notifier_block *this, unsigned long, void *); |
10,4 → 13,6 |
int priority; |
}; |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/kernel.h |
---|
2,7 → 2,10 |
#define __KERNEL__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Optimization barrier */ |
#define barrier() __asm__("": : :"memory") |
14,4 → 17,6 |
#define KERN_NOTICE "<5>" /* normal but significant condition */ |
#define KERN_INFO "<6>" /* informational */ |
#define KERN_DEBUG "<7>" /* debug-level messages */ |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/etherdevice.h |
---|
5,7 → 5,10 |
#include <linux/if_ether.h> |
#include <linux/socket.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define eth_header panic_stub |
#if 0 |
extern int eth_header(struct sk_buff *skb, struct device *dev, |
27,4 → 30,5 |
unsigned char *src, int length, int base); |
extern struct device * init_etherdev(struct device *, int); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/interrupt.h |
---|
2,7 → 2,10 |
#define __INTERRUPT__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define NR_IRQS 128 |
int request_irq(unsigned int irq, void (*handler)(int, void *dev_id, struct pt_regs *), unsigned long flags, const char *device, void *dev_id); |
13,4 → 16,5 |
void free_irq(unsigned int irq, void *d); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/compatib.h |
---|
1,5 → 1,8 |
#include <kernel/kern.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __UNIXCOMP__ |
#define __UNIXCOMP__ |
134,4 → 137,5 |
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */ |
#define le16_to_cpu __le16_to_cpu |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/timer.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: timer.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: timer.h,v 1.2 2003-03-13 13:48:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:48:05 $ |
------------ |
**/ |
51,7 → 51,10 |
#include <kernel/kern.h> |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* This is completely separate from the above, and is the |
* "new and improved" way of handling timers more dynamically. |
83,5 → 86,5 |
int add_timer(struct timer_list *timer); |
void del_timer(struct timer_list *timer); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/skbuff.h |
---|
2,7 → 2,10 |
#define __SKBUFF__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define HAVE_ALLOC_SKB /* For the drivers to know */ |
#define HAVE_ALIGNABLE_SKB /* Ditto 8) */ |
128,5 → 131,5 |
extern void skb_queue_head_init(struct sk_buff_head *list); |
extern struct sk_buff * skb_clone(struct sk_buff *skb, int priority); |
extern void skb_reserve(struct sk_buff *skb, int len); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/socket.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_SOCKET_H |
#define _LINUX_SOCKET_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct sockaddr |
{ |
unsigned short sa_family; /* address family, AF_xxx */ |
135,4 → 139,6 |
extern int move_addr_to_user(void *kaddr, int klen, void *uaddr, int *ulen); |
extern int move_addr_to_kernel(void *uaddr, int ulen, void *kaddr); |
#endif |
__END_DECLS |
#endif /* _LINUX_SOCKET_H */ |
/shark/trunk/drivers/linuxcom/include/asm/bitops.h |
---|
2,7 → 2,10 |
#define __BITOPS__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define LOCK_PREFIX "" |
#define SMPVOL |
40,4 → 43,5 |
return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; |
} |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/asm/io.h |
---|
2,7 → 2,10 |
#define __IO__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Thanks to James van Artsdalen for a better timing-fix than |
* the two short jumps: using outb's to a nonexistent port seems |
71,5 → 74,5 |
#define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b)) |
#define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b)) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/net/sock.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: sock.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: sock.h,v 1.2 2003-03-13 13:48:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:48:05 $ |
------------ |
**/ |
56,8 → 56,11 |
#include <linux/netdevice.h> |
#include <linux/skbuff.h> /* struct sk_buff */ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* This structure really needs to be cleaned up. |
* Most of it is for TCP, and not used by any of |
239,4 → 242,6 |
}; |
__END_DECLS |
#endif |