Merge branches 'acpi-pm' and 'pm-genirq'
[deliverable/linux.git] / drivers / staging / comedi / comedi_internal.h
1 #ifndef _COMEDI_INTERNAL_H
2 #define _COMEDI_INTERNAL_H
3
4 #include <linux/types.h>
5
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);
15
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_subdevice *s);
19 bool comedi_buf_is_mmapped(struct comedi_subdevice *s);
20 void comedi_buf_map_get(struct comedi_buf_map *bm);
21 int comedi_buf_map_put(struct comedi_buf_map *bm);
22 struct comedi_buf_map *comedi_buf_map_from_subdev_get(
23 struct comedi_subdevice *s);
24 unsigned int comedi_buf_write_n_allocated(struct comedi_subdevice *s);
25 void comedi_device_cancel_all(struct comedi_device *dev);
26
27 extern unsigned int comedi_default_buf_size_kb;
28 extern unsigned int comedi_default_buf_maxsize_kb;
29
30 /* drivers.c */
31
32 extern struct comedi_driver *comedi_drivers;
33 extern struct mutex comedi_drivers_list_lock;
34
35 int insn_inval(struct comedi_device *, struct comedi_subdevice *,
36 struct comedi_insn *, unsigned int *);
37
38 void comedi_device_detach(struct comedi_device *);
39 int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
40
41 #ifdef CONFIG_PROC_FS
42
43 /* proc.c */
44
45 void comedi_proc_init(void);
46 void comedi_proc_cleanup(void);
47 #else
48 static inline void comedi_proc_init(void)
49 {
50 }
51
52 static inline void comedi_proc_cleanup(void)
53 {
54 }
55 #endif
56
57 #endif /* _COMEDI_INTERNAL_H */
This page took 0.043599 seconds and 5 git commands to generate.