2011-11-09 14:29:12 +01:00
|
|
|
#ifndef _BDEV_PROTO_H
|
|
|
|
#define _BDEV_PROTO_H
|
|
|
|
|
2011-12-05 10:53:57 +01:00
|
|
|
/* bdev.c */
|
|
|
|
extern void bdev_callback_asyn(bdev_call_t *call, int result);
|
|
|
|
extern int bdev_restart_asyn(bdev_call_t *call);
|
|
|
|
|
2011-11-09 14:29:12 +01:00
|
|
|
/* driver.c */
|
|
|
|
extern void bdev_driver_init(void);
|
|
|
|
extern void bdev_driver_clear(dev_t dev);
|
2011-11-30 19:05:26 +01:00
|
|
|
extern endpoint_t bdev_driver_set(dev_t dev, char *label);
|
2011-11-09 14:29:12 +01:00
|
|
|
extern endpoint_t bdev_driver_get(dev_t dev);
|
2011-11-30 19:05:26 +01:00
|
|
|
extern endpoint_t bdev_driver_update(dev_t dev);
|
2011-11-09 14:29:12 +01:00
|
|
|
|
2011-12-05 10:53:57 +01:00
|
|
|
/* call.c */
|
|
|
|
extern bdev_call_t *bdev_call_alloc(int count);
|
|
|
|
extern void bdev_call_free(bdev_call_t *call);
|
|
|
|
extern bdev_call_t *bdev_call_get(bdev_id_t id);
|
|
|
|
extern bdev_call_t *bdev_call_find(dev_t dev);
|
|
|
|
extern bdev_call_t *bdev_call_iter_maj(dev_t dev, bdev_call_t *last,
|
|
|
|
bdev_call_t **next);
|
|
|
|
|
2011-11-09 14:29:12 +01:00
|
|
|
/* ipc.c */
|
2011-11-30 19:05:26 +01:00
|
|
|
extern void bdev_update(dev_t dev, char *label);
|
2011-12-05 10:53:57 +01:00
|
|
|
extern int bdev_senda(dev_t dev, const message *m_orig, bdev_id_t num);
|
2011-11-09 14:29:12 +01:00
|
|
|
extern int bdev_sendrec(dev_t dev, const message *m_orig);
|
|
|
|
|
2011-12-05 10:53:57 +01:00
|
|
|
/* minor.c */
|
|
|
|
extern int bdev_minor_reopen(dev_t dev);
|
|
|
|
extern void bdev_minor_add(dev_t dev, int access);
|
|
|
|
extern void bdev_minor_del(dev_t dev);
|
|
|
|
|
2011-11-09 14:29:12 +01:00
|
|
|
#endif /* _BDEV_PROTO_H */
|