Merge tag 'gpio-v3.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6.git] / drivers / staging / comedi / comedi_internal.h
blobfda1a7ba0e16bb83cec7f5bb21eb9347971a7628
1 #ifndef _COMEDI_INTERNAL_H
2 #define _COMEDI_INTERNAL_H
4 #include <linux/types.h>
6 /*
7 * various internal comedi stuff
8 */
9 int do_rangeinfo_ioctl(struct comedi_device *dev,
10 struct comedi_rangeinfo __user *arg);
11 struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device);
12 void comedi_release_hardware_device(struct device *hardware_device);
13 int comedi_alloc_subdevice_minor(struct comedi_subdevice *s);
14 void comedi_free_subdevice_minor(struct comedi_subdevice *s);
16 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
17 unsigned long new_size);
18 void comedi_buf_reset(struct comedi_async *async);
19 unsigned int comedi_buf_write_n_allocated(struct comedi_async *async);
21 extern unsigned int comedi_default_buf_size_kb;
22 extern unsigned int comedi_default_buf_maxsize_kb;
24 /* drivers.c */
26 extern struct comedi_driver *comedi_drivers;
27 extern struct mutex comedi_drivers_list_lock;
29 int insn_inval(struct comedi_device *, struct comedi_subdevice *,
30 struct comedi_insn *, unsigned int *);
32 void comedi_device_detach(struct comedi_device *);
33 int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
35 #ifdef CONFIG_PROC_FS
37 /* proc.c */
39 void comedi_proc_init(void);
40 void comedi_proc_cleanup(void);
41 #else
42 static inline void comedi_proc_init(void)
45 static inline void comedi_proc_cleanup(void)
48 #endif
50 #endif /* _COMEDI_INTERNAL_H */