Ian Abbott | 97ce84d | 2012-06-19 10:17:45 +0100 | [diff] [blame] | 1 | #ifndef _COMEDI_INTERNAL_H |
| 2 | #define _COMEDI_INTERNAL_H |
| 3 | |
Ian Abbott | f286766 | 2012-06-19 10:17:46 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Greg Kroah-Hartman | 2434358 | 2010-05-03 15:38:37 -0700 | [diff] [blame] | 6 | /* |
Ian Abbott | 4d7df82 | 2012-04-13 14:12:53 +0100 | [diff] [blame] | 7 | * various internal comedi stuff |
Greg Kroah-Hartman | 2434358 | 2010-05-03 15:38:37 -0700 | [diff] [blame] | 8 | */ |
Greg Kroah-Hartman | 3b6b25b | 2010-05-03 15:50:09 -0700 | [diff] [blame] | 9 | int do_rangeinfo_ioctl(struct comedi_device *dev, |
| 10 | struct comedi_rangeinfo __user *arg); |
Ian Abbott | 7638ffc | 2013-04-04 14:58:50 +0100 | [diff] [blame] | 11 | struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device); |
Ian Abbott | 3346b79 | 2013-04-04 14:58:47 +0100 | [diff] [blame] | 12 | void comedi_release_hardware_device(struct device *hardware_device); |
Ian Abbott | f65cc54 | 2013-02-01 10:20:30 +0000 | [diff] [blame] | 13 | int comedi_alloc_subdevice_minor(struct comedi_subdevice *s); |
Ian Abbott | e9ab1c2 | 2013-02-01 10:20:29 +0000 | [diff] [blame] | 14 | void comedi_free_subdevice_minor(struct comedi_subdevice *s); |
H Hartley Sweeten | 61c9fb0 | 2013-01-09 13:27:07 -0700 | [diff] [blame] | 15 | |
Greg Kroah-Hartman | 7029a87 | 2010-05-03 15:55:45 -0700 | [diff] [blame] | 16 | int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, |
| 17 | unsigned long new_size); |
H Hartley Sweeten | 61c9fb0 | 2013-01-09 13:27:07 -0700 | [diff] [blame] | 18 | void comedi_buf_reset(struct comedi_async *async); |
H Hartley Sweeten | 8bd650f | 2013-01-09 13:32:18 -0700 | [diff] [blame] | 19 | unsigned int comedi_buf_write_n_allocated(struct comedi_async *async); |
Ian Abbott | 4d7df82 | 2012-04-13 14:12:53 +0100 | [diff] [blame] | 20 | |
| 21 | extern unsigned int comedi_default_buf_size_kb; |
| 22 | extern unsigned int comedi_default_buf_maxsize_kb; |
H Hartley Sweeten | 39bd5e59 | 2013-01-30 15:25:06 -0700 | [diff] [blame] | 23 | |
| 24 | /* drivers.c */ |
| 25 | |
Ian Abbott | f286766 | 2012-06-19 10:17:46 +0100 | [diff] [blame] | 26 | extern struct comedi_driver *comedi_drivers; |
Ian Abbott | 97ce84d | 2012-06-19 10:17:45 +0100 | [diff] [blame] | 27 | |
H Hartley Sweeten | 39bd5e59 | 2013-01-30 15:25:06 -0700 | [diff] [blame] | 28 | int insn_inval(struct comedi_device *, struct comedi_subdevice *, |
| 29 | struct comedi_insn *, unsigned int *); |
| 30 | |
| 31 | void comedi_device_detach(struct comedi_device *); |
| 32 | int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *); |
| 33 | |
H Hartley Sweeten | 085494a | 2013-01-30 15:25:31 -0700 | [diff] [blame] | 34 | #ifdef CONFIG_PROC_FS |
| 35 | |
| 36 | /* proc.c */ |
| 37 | |
| 38 | void comedi_proc_init(void); |
| 39 | void comedi_proc_cleanup(void); |
| 40 | #else |
| 41 | static inline void comedi_proc_init(void) |
| 42 | { |
| 43 | } |
| 44 | static inline void comedi_proc_cleanup(void) |
| 45 | { |
| 46 | } |
| 47 | #endif |
| 48 | |
Ian Abbott | 97ce84d | 2012-06-19 10:17:45 +0100 | [diff] [blame] | 49 | #endif /* _COMEDI_INTERNAL_H */ |