/shark/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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/tags/rel_0_4/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 |