Remove building with NOCRYPTO option
[minix3.git] / minix / lib / libbdev / proto.h
blob51963a8e7daff8fccc422a383104af7342c5c20b
1 #ifndef _BDEV_PROTO_H
2 #define _BDEV_PROTO_H
4 /* bdev.c */
5 extern void bdev_callback_asyn(bdev_call_t *call, int result);
6 extern int bdev_restart_asyn(bdev_call_t *call);
8 /* driver.c */
9 extern void bdev_driver_init(void);
10 extern void bdev_driver_clear(dev_t dev);
11 extern endpoint_t bdev_driver_set(dev_t dev, char *label);
12 extern endpoint_t bdev_driver_get(dev_t dev);
13 extern endpoint_t bdev_driver_update(dev_t dev);
15 /* call.c */
16 extern bdev_call_t *bdev_call_alloc(int count);
17 extern void bdev_call_free(bdev_call_t *call);
18 extern bdev_call_t *bdev_call_get(bdev_id_t id);
19 extern bdev_call_t *bdev_call_find(dev_t dev);
20 extern bdev_call_t *bdev_call_iter_maj(dev_t dev, bdev_call_t *last,
21 bdev_call_t **next);
23 /* ipc.c */
24 extern void bdev_update(dev_t dev, char *label);
25 extern int bdev_senda(dev_t dev, const message *m_orig, bdev_id_t num);
26 extern int bdev_sendrec(dev_t dev, const message *m_orig);
28 /* minor.c */
29 extern int bdev_minor_reopen(dev_t dev);
30 extern void bdev_minor_add(dev_t dev, int access);
31 extern void bdev_minor_del(dev_t dev);
32 extern int bdev_minor_is_open(dev_t dev);
34 #endif /* _BDEV_PROTO_H */