/shark/trunk/drivers/block/sstf/sstf.h |
---|
42,10 → 42,7 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGsstf_queue_t { |
struct phdskinfo *disk; |
/**/ |
68,5 → 65,4 |
#define bqueue_getrequest sstf_getrequest |
#define bqueue_removerequest sstf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/fcfs/fcfs.h |
---|
42,10 → 42,7 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGfcfs_queue_t { |
struct phdskinfo *disk; |
/**/ |
67,5 → 64,4 |
#define bqueue_getrequest fcfs_getrequest |
#define bqueue_removerequest fcfs_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/glue.h |
---|
20,10 → 20,7 |
*/ |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __b_mutex_t; |
131,5 → 128,5 |
while (__gettimer()<t); \ |
} |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ide.h |
---|
21,11 → 21,11 |
/*************************************** |
CVS : $Id: ide.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
CVS : $Id: ide.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
Revision: $Revision: 1.2 $ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Header file for all the modules of the IDE block device interface |
sub-system. |
57,10 → 57,7 |
#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 |
447,7 → 444,6 |
#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,10 → 42,7 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGbd_edf_queue_t { |
struct phdskinfo *disk; |
/**/ |
68,5 → 65,4 |
#define bqueue_getrequest bd_edf_getrequest |
#define bqueue_removerequest bd_edf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/idereq.h |
---|
9,10 → 9,7 |
#include "bqueue.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXIDEREQUEST 64 |
/* -------- */ |
63,5 → 60,4 |
/* 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.2 2003-03-13 13:43:13 pj Exp $ |
* CVS : $Id: phdsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
*/ |
#ifndef __PHDSK_H__ |
49,10 → 49,7 |
#define __PHDSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXPHDSK 4 |
#define MAXPHDSKNAME 16 |
88,5 → 85,4 |
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.2 2003-03-13 13:43:13 pj Exp $ |
* CVS : $Id: lodsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
*/ |
#ifndef __LODSK_H__ |
50,10 → 50,7 |
#define __LODSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MSDOS_LABEL_MAGIC 0xAA55 |
struct phpartition { |
94,6 → 91,5 |
int lodsk_scan(__dev_t device, lodsk_callback_func func, |
void *data, int showinfo, char *lname); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/pscan/pscan.h |
---|
42,10 → 42,7 |
#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 |
73,5 → 70,4 |
#define bqueue_getrequest pscan_getrequest |
#define bqueue_removerequest pscan_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/look/look.h |
---|
42,10 → 42,7 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGlook_queue_t { |
struct phdskinfo *disk; |
/**/ |
67,5 → 64,4 |
#define bqueue_getrequest look_getrequest |
#define bqueue_removerequest look_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ideglue.h |
---|
1,13 → 1,9 |
#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/bdev.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bdev.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* CVS : $Id: bdev.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
*/ |
#ifndef __BDEV_H__ |
52,10 → 52,7 |
#include "glue.h" |
#include <fs/bdevinit.h> |
#include <fs/bdev.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXBLOCKDEVICE 8 |
struct block_device { |
108,5 → 105,4 |
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,10 → 43,7 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGclook_queue_t { |
struct phdskinfo *disk; |
/**/ |
68,5 → 65,4 |
#define bqueue_getrequest clook_getrequest |
#define bqueue_removerequest clook_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/debug.h |
---|
1,8 → 1,3 |
#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.2 2003-03-13 13:43:13 pj Exp $ |
CVS : $Id: bqueue.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
Revision: $Revision: 1.2 $ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
This module is responsable of the protocol between the IDE device driver |
interface and the host (the computer). |
74,10 → 74,6 |
#include "pscan/pscan.h" |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define REQ_DUMMY 0 |
#define REQ_SEEK 1 |
#define REQ_READ 2 |
99,5 → 95,5 |
int bqueue_insertrequest(bqueue_t *, struct request_prologue *); |
struct request_prologue *bqueue_getrequest(bqueue_t *); |
int bqueue_removerequest(bqueue_t *); |
__END_DECLS |
#endif |