/shark/trunk/include/fs/irq.h |
---|
38,19 → 38,16 |
*/ |
/* |
* CVS : $Id: irq.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: irq.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#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); |
59,6 → 56,5 |
#define __request_irq(x) (-1) |
#define __release_irq(x) |
__END_DECLS |
#endif |
/shark/trunk/include/fs/fsinit.h |
---|
34,10 → 34,7 |
#include <fs/major.h> |
#include <fs/fsind.h> |
#include <fs/mount.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* file systems params structure |
*/ |
68,5 → 65,4 |
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.2 2003-03-13 13:37:58 pj Exp $ |
CVS : $Id: libio.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:37:58 $ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
------------ |
pthread.h |
55,12 → 55,7 |
#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.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: assert.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#ifndef __FS_ASSERT_H |
50,10 → 50,7 |
#define __FS_ASSERT_H |
#include <kernel/assert.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifdef NDEBUG |
#define _assert(test) |
#else |
62,6 → 59,5 |
{ 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.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: limits.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#ifndef __FS_LIMITS_H |
50,10 → 50,7 |
#define __FS_LIMITS_H |
#include <bits/limits.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* max filename lenght in chars */ |
#define MAXFILENAMELEN FILENAME_MAX |
102,7 → 99,6 |
#define PATH_MAX MAXPATHNAMELEN |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/mutex.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: mutex.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: mutex.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
/* |
59,10 → 59,7 |
*/ |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __mutex_t; |
181,6 → 178,6 |
__END_DECLS |
#endif |
/shark/trunk/include/fs/mount.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: mount.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
CVS : $Id: mount.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:37:58 $ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
------------ |
**/ |
58,10 → 58,7 |
#include <fs/types.h> |
#include <fs/fsconf.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* |
* SPECIFIC FILESYSTEM PART |
130,5 → 127,4 |
typedef struct mount_opts MOUNT_PARMS; |
__END_DECLS |
#endif |
/shark/trunk/include/fs/bdevinit.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bdevinit.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: bdevinit.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#ifndef _HARTIK_BDEVINIT_H |
54,10 → 54,7 |
#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 |
170,5 → 167,4 |
/*+ 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.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: fs.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#ifndef __FS_FS_H__ |
50,10 → 50,7 |
#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); |
64,5 → 61,4 |
/*+ 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,10 → 22,7 |
#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)) |
45,5 → 42,4 |
int k_ftruncate(int fildes, __off_t len); |
int k_unlink(char *path); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/util.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: util.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: util.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
/* |
63,10 → 63,7 |
#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) */ |
77,6 → 74,5 |
/* all in usec */ |
//extern void __delayk(int usec); |
//extern long __gettimer(void); |
__END_DECLS |
#endif |
/shark/trunk/include/fs/semaph.h |
---|
25,11 → 25,11 |
***************************************/ |
/* |
* CVS : $Id: semaph.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: semaph.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
/* |
55,10 → 55,7 |
#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; |
137,7 → 134,7 |
#endif |
__END_DECLS |
#endif |
/shark/trunk/include/fs/maccess.h |
---|
54,10 → 54,7 |
* 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); |
126,5 → 123,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.2 2003-03-13 13:37:58 pj Exp $ |
* CVS : $Id: bdev.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:37:58 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
*/ |
#ifndef __FS_BDEV_H__ |
49,10 → 49,7 |
#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 |
75,5 → 72,4 |
void bdev_dump_names(void); |
void bdev_dump_status(void); |
__END_DECLS |
#endif |