2012-06-19 09:17:45 +00:00
|
|
|
#ifndef _COMEDI_INTERNAL_H
|
|
|
|
#define _COMEDI_INTERNAL_H
|
|
|
|
|
2012-06-19 09:17:46 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2010-05-03 22:38:37 +00:00
|
|
|
/*
|
2012-04-13 13:12:53 +00:00
|
|
|
* various internal comedi stuff
|
2010-05-03 22:38:37 +00:00
|
|
|
*/
|
2010-05-03 22:50:09 +00:00
|
|
|
int do_rangeinfo_ioctl(struct comedi_device *dev,
|
|
|
|
struct comedi_rangeinfo __user *arg);
|
2010-05-03 22:20:29 +00:00
|
|
|
int comedi_alloc_board_minor(struct device *hardware_device);
|
2010-05-03 22:24:14 +00:00
|
|
|
void comedi_free_board_minor(unsigned minor);
|
2012-03-30 16:14:58 +00:00
|
|
|
int comedi_find_board_minor(struct device *hardware_device);
|
2013-01-09 20:27:07 +00:00
|
|
|
|
2010-05-03 22:55:45 +00:00
|
|
|
int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
|
|
unsigned long new_size);
|
2013-01-09 20:27:07 +00:00
|
|
|
void comedi_buf_reset(struct comedi_async *async);
|
2013-01-09 20:32:18 +00:00
|
|
|
unsigned int comedi_buf_write_n_allocated(struct comedi_async *async);
|
2012-04-13 13:12:53 +00:00
|
|
|
|
|
|
|
extern unsigned int comedi_default_buf_size_kb;
|
|
|
|
extern unsigned int comedi_default_buf_maxsize_kb;
|
2012-06-19 09:17:46 +00:00
|
|
|
extern bool comedi_autoconfig;
|
2013-01-30 22:25:06 +00:00
|
|
|
|
|
|
|
/* drivers.c */
|
|
|
|
|
2012-06-19 09:17:46 +00:00
|
|
|
extern struct comedi_driver *comedi_drivers;
|
2012-06-19 09:17:45 +00:00
|
|
|
|
2013-01-30 22:25:06 +00:00
|
|
|
int insn_inval(struct comedi_device *, struct comedi_subdevice *,
|
|
|
|
struct comedi_insn *, unsigned int *);
|
|
|
|
|
|
|
|
void comedi_device_detach(struct comedi_device *);
|
|
|
|
int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
|
|
|
|
|
2013-01-30 22:25:31 +00:00
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
|
|
|
|
/* proc.c */
|
|
|
|
|
|
|
|
void comedi_proc_init(void);
|
|
|
|
void comedi_proc_cleanup(void);
|
|
|
|
#else
|
|
|
|
static inline void comedi_proc_init(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
static inline void comedi_proc_cleanup(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 09:17:45 +00:00
|
|
|
#endif /* _COMEDI_INTERNAL_H */
|