EXPORT_SYMBOL(di_unpack);
EXPORT_SYMBOL(comedi_eobuf);
EXPORT_SYMBOL(comedi_eos);
+#ifdef CONFIG_COMEDI_RT
+EXPORT_SYMBOL(comedi_change_irq_flags);
+EXPORT_SYMBOL(comedi_free_irq);
+EXPORT_SYMBOL(comedi_request_irq);
+#endif
/* for kcomedilib */
EXPORT_SYMBOL(comedi_devices);
+#if 0
/* rt_printk() section */
#define BUF_LEN (16384)
return len;
}
-
-void rt_printk_interrupt(int irq,void *junk,struct pt_regs *regs)
-{
- int tmp;
-
- for(;;){
- tmp=buf_front;
- if(buf_back>tmp){
- printk("%.*s",BUF_LEN-buf_back,rt_printk_buf+buf_back);
- buf_back=0;
- }
- if(buf_back==tmp)break;
- printk("%.*s",tmp-buf_back,rt_printk_buf+buf_back);
- buf_back=tmp;
- }
-}
-
void rt_printk_cleanup(void)
{
free_irq(rt_printk_irq,NULL);
return 0;
}
+void rt_printk_interrupt(int irq,void *junk,struct pt_regs *regs)
+{
+ int tmp;
+
+ for(;;){
+ tmp=buf_front;
+ if(buf_back>tmp){
+ printk("%.*s",BUF_LEN-buf_back,rt_printk_buf+buf_back);
+ buf_back=0;
+ }
+ if(buf_back==tmp)break;
+ printk("%.*s",tmp-buf_back,rt_printk_buf+buf_back);
+ buf_back=tmp;
+ }
+}
+#endif
+
#if 0
#endif
-static struct comedi_irq_struct rtl_irq_struct;
-
-struct comedi_irq_struct * get_irq_struct(unsigned int irq)
-{
- return &rtl_irq_struct;
-}
-
static unsigned int handle_rtl_irq(unsigned int irq,struct pt_regs *regs)
{
struct comedi_irq_struct *it;
void comedi_rtl_init(void)
{
- rt_printk_init();
+ //rt_printk_init();
//rtl_register_chardev(COMEDI_MAJOR,"comedi",&comedi_rtl_fops);
}
void comedi_rtl_cleanup(void)
{
- rt_printk_cleanup();
+ //rt_printk_cleanup();
//rtl_unregister_chardev(COMEDI_MAJOR);
}