#endif
+extern comedi_driver *comedi_drivers;
+
#ifdef LINUX_V20
int comedi_read_procmem(char *buf,char **start,off_t offset,int len,int unused)
#else
int i;
int devices_q=0;
int l=0;
+ comedi_driver *driv;
l+=sprintf(buf+l,
"comedi version " COMEDI_RELEASE "\n"
l+=sprintf(buf+l,"no devices\n");
}
+ for(driv=comedi_drivers;driv;driv=driv->next){
+ l += sprintf(buf+l,"%s:\n",driv->driver_name);
+ for(i=0;i<driv->num_names;i++){
+ l+=sprintf(buf+l," %s\n",
+ *(char **)(driv->board_name+i*driv->offset));
+ }
+ if(!driv->num_names){
+ l+=sprintf(buf+l," %s\n",driv->driver_name);
+ }
+ }
+
return l;
}