Commit | Line | Data |
---|---|---|
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 |
9 | int do_rangeinfo_ioctl(struct comedi_device *dev, |
10 | struct comedi_rangeinfo __user *arg); | |
242e7ad9 | 11 | int comedi_alloc_board_minor(struct device *hardware_device); |
9e8c6048 | 12 | void comedi_free_board_minor(unsigned minor); |
3346b798 | 13 | void comedi_release_hardware_device(struct device *hardware_device); |
f65cc544 | 14 | int comedi_alloc_subdevice_minor(struct comedi_subdevice *s); |
e9ab1c2f | 15 | void comedi_free_subdevice_minor(struct comedi_subdevice *s); |
61c9fb0e | 16 | |
7029a874 GKH |
17 | int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, |
18 | unsigned long new_size); | |
61c9fb0e | 19 | void comedi_buf_reset(struct comedi_async *async); |
8bd650f9 | 20 | unsigned int comedi_buf_write_n_allocated(struct comedi_async *async); |
4d7df821 IA |
21 | |
22 | extern unsigned int comedi_default_buf_size_kb; | |
23 | extern unsigned int comedi_default_buf_maxsize_kb; | |
39bd5e59 HS |
24 | |
25 | /* drivers.c */ | |
26 | ||
f286766e | 27 | extern struct comedi_driver *comedi_drivers; |
97ce84de | 28 | |
39bd5e59 HS |
29 | int insn_inval(struct comedi_device *, struct comedi_subdevice *, |
30 | struct comedi_insn *, unsigned int *); | |
31 | ||
32 | void comedi_device_detach(struct comedi_device *); | |
33 | int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *); | |
34 | ||
085494ac HS |
35 | #ifdef CONFIG_PROC_FS |
36 | ||
37 | /* proc.c */ | |
38 | ||
39 | void comedi_proc_init(void); | |
40 | void comedi_proc_cleanup(void); | |
41 | #else | |
42 | static inline void comedi_proc_init(void) | |
43 | { | |
44 | } | |
45 | static inline void comedi_proc_cleanup(void) | |
46 | { | |
47 | } | |
48 | #endif | |
49 | ||
97ce84de | 50 | #endif /* _COMEDI_INTERNAL_H */ |