2011-04-13 15:25:34 +02:00
|
|
|
#ifndef __VFS_DMAP_H__
|
|
|
|
#define __VFS_DMAP_H__
|
|
|
|
|
2007-08-07 14:52:47 +02:00
|
|
|
/*
|
|
|
|
dmap.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* Device <-> Driver Table *
|
|
|
|
*===========================================================================*/
|
|
|
|
|
|
|
|
/* Device table. This table is indexed by major device number. It provides
|
|
|
|
* the link between major device numbers and the routines that process them.
|
2012-02-13 16:28:04 +01:00
|
|
|
* The table can be update dynamically. The field 'dmap_flags' describe an
|
|
|
|
* entry's current status and determines what control options are possible.
|
2007-08-07 14:52:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
extern struct dmap {
|
2012-03-24 16:16:34 +01:00
|
|
|
int(*dmap_opcl) (int, dev_t, int, int);
|
|
|
|
int(*dmap_io) (int, message *);
|
2008-02-22 16:01:00 +01:00
|
|
|
endpoint_t dmap_driver;
|
2010-01-13 00:08:50 +01:00
|
|
|
char dmap_label[LABEL_MAX];
|
2010-04-09 23:56:44 +02:00
|
|
|
int dmap_flags;
|
|
|
|
int dmap_style;
|
2008-02-22 16:01:00 +01:00
|
|
|
struct filp *dmap_sel_filp;
|
2007-08-07 14:52:47 +02:00
|
|
|
} dmap[];
|
2011-04-13 15:25:34 +02:00
|
|
|
|
|
|
|
#endif
|