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.
|
|
|
|
* The table can be update dynamically. The field 'dmap_flags' describe an
|
|
|
|
* entry's current status and determines what control options are possible.
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern struct dmap {
|
2010-04-13 12:58:41 +02:00
|
|
|
int _PROTOTYPE ((*dmap_opcl), (int, dev_t, int, int) );
|
2007-08-07 14:52:47 +02:00
|
|
|
int _PROTOTYPE ((*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[];
|