staging: comedi: add comedi_release_hardware_device()
[deliverable/linux.git] / drivers / staging / comedi / comedi_internal.h
CommitLineData
97ce84de
IA
1#ifndef _COMEDI_INTERNAL_H
2#define _COMEDI_INTERNAL_H
3
f286766e
IA
4#include <linux/types.h>
5
2434358a 6/*
4d7df821 7 * various internal comedi stuff
2434358a 8 */
3b6b25b5
GKH
9int do_rangeinfo_ioctl(struct comedi_device *dev,
10 struct comedi_rangeinfo __user *arg);
242e7ad9 11int comedi_alloc_board_minor(struct device *hardware_device);
9e8c6048 12void comedi_free_board_minor(unsigned minor);
3346b798 13void comedi_release_hardware_device(struct device *hardware_device);
f65cc544 14int comedi_alloc_subdevice_minor(struct comedi_subdevice *s);
e9ab1c2f 15void comedi_free_subdevice_minor(struct comedi_subdevice *s);
61c9fb0e 16
7029a874
GKH
17int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
18 unsigned long new_size);
61c9fb0e 19void comedi_buf_reset(struct comedi_async *async);
8bd650f9 20unsigned int comedi_buf_write_n_allocated(struct comedi_async *async);
4d7df821
IA
21
22extern unsigned int comedi_default_buf_size_kb;
23extern unsigned int comedi_default_buf_maxsize_kb;
39bd5e59
HS
24
25/* drivers.c */
26
f286766e 27extern struct comedi_driver *comedi_drivers;
97ce84de 28
39bd5e59
HS
29int insn_inval(struct comedi_device *, struct comedi_subdevice *,
30 struct comedi_insn *, unsigned int *);
31
32void comedi_device_detach(struct comedi_device *);
33int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
34
085494ac
HS
35#ifdef CONFIG_PROC_FS
36
37/* proc.c */
38
39void comedi_proc_init(void);
40void comedi_proc_cleanup(void);
41#else
42static inline void comedi_proc_init(void)
43{
44}
45static inline void comedi_proc_cleanup(void)
46{
47}
48#endif
49
97ce84de 50#endif /* _COMEDI_INTERNAL_H */
This page took 0.256297 seconds and 5 git commands to generate.