1*433d6423SLionel Sambuc #ifndef _DEVMAN_PROTO_H 2*433d6423SLionel Sambuc #define _DEVMAN_PROTO_H 3*433d6423SLionel Sambuc 4*433d6423SLionel Sambuc /* buf.c */ 5*433d6423SLionel Sambuc void buf_init(off_t start, size_t len); 6*433d6423SLionel Sambuc void buf_printf(char *fmt, ...); 7*433d6423SLionel Sambuc void buf_append(char *data, size_t len); 8*433d6423SLionel Sambuc size_t buf_get(char **ptr); 9*433d6423SLionel Sambuc 10*433d6423SLionel Sambuc /* message handlers */ 11*433d6423SLionel Sambuc int do_add_device(message *m); 12*433d6423SLionel Sambuc int do_del_device(message *m); 13*433d6423SLionel Sambuc int do_bind_device(message *m); 14*433d6423SLionel Sambuc int do_unbind_device(message *m); 15*433d6423SLionel Sambuc 16*433d6423SLionel Sambuc /* local helper functions */ 17*433d6423SLionel Sambuc void devman_init_devices(); 18*433d6423SLionel Sambuc struct devman_device* devman_find_device(int devid); 19*433d6423SLionel Sambuc void devman_get_device(struct devman_device *dev); 20*433d6423SLionel Sambuc void devman_put_device(struct devman_device *dev); 21*433d6423SLionel Sambuc 22*433d6423SLionel Sambuc #endif /* _DEVMAN_PROTO_H */ 23*433d6423SLionel Sambuc 24