]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/main.h
Definition of VME support symbol was moved here from can_sysdep.h
[lincan.git] / lincan / include / main.h
index 78eace8ee71d4f02bfa2b22472025e72f5867d40..2893ef7fa227b7f46a5121b6748402768828d970 100644 (file)
 #include "./can_queue.h"
 #include "lincan_config.h"
 
 #include "./can_queue.h"
 #include "lincan_config.h"
 
+#ifdef CONFIG_OC_LINCANVME
+#define CAN_ENABLE_VME_SUPPORT
+#endif
+
 #ifdef CAN_DEBUG
        #define DEBUGMSG(fmt,args...) can_printk(KERN_ERR "can.o (debug): " fmt,\
        ##args)
 #ifdef CAN_DEBUG
        #define DEBUGMSG(fmt,args...) can_printk(KERN_ERR "can.o (debug): " fmt,\
        ##args)
@@ -88,6 +92,7 @@ struct candevice_t {
        struct canhardware_t *hosthardware_p;
        
        union {
        struct canhardware_t *hosthardware_p;
        
        union {
+               void *anydev;
            #ifdef CAN_ENABLE_PCI_SUPPORT
                struct pci_dev *pcidev;
            #endif /*CAN_ENABLE_PCI_SUPPORT*/
            #ifdef CAN_ENABLE_PCI_SUPPORT
                struct pci_dev *pcidev;
            #endif /*CAN_ENABLE_PCI_SUPPORT*/
@@ -474,6 +479,8 @@ struct boardtype_t {
 
 const struct boardtype_t* boardtype_find(const char *str);
 
 
 const struct boardtype_t* boardtype_find(const char *str);
 
+int can_check_dev_taken(void *anydev);
+
 #ifdef CAN_WITH_RTL
 extern int can_rtl_priority;
 #endif /*CAN_WITH_RTL*/
 #ifdef CAN_WITH_RTL
 extern int can_rtl_priority;
 #endif /*CAN_WITH_RTL*/