* Version lincan-0.3 17 Jun 2004
*/
+#ifndef MAIN_H
+#define MAIN_H
+
#include <malloc.h>
#include "./can.h"
#include "./ul_listbase.h"
#include "./can_sysless.h"
#include "./can_queue.h"
+#include "./errno.h"
#ifdef CAN_DEBUG
- #define DEBUGMSG(fmt,args...) can_printk(KERN_ERR "can.o (debug): " fmt,\
+ #define DEBUGMSG(fmt,args...) can_printk(KERN_ERR "USBCAN(debug): " fmt,\
##args)
#else
#define DEBUGMSG(fmt,args...)
#endif
-#define CANMSG(fmt,args...) can_printk(KERN_ERR "can.o: " fmt,##args)
+#define CANMSG(fmt,args...) can_printk(KERN_ERR "USBCAN: " fmt,##args)
extern can_spinlock_t canuser_manipulation_lock;
extern int processlocal;
extern struct canhardware_t *hardware_p;
-extern struct canchip_t *chips_p[MAX_TOT_CHIPS];
+//extern struct canchip_t *chips_p[MAX_TOT_CHIPS];
+struct canchip_t *chips_p[MAX_TOT_CHIPS];
extern struct msgobj_t *objects_p[MAX_TOT_MSGOBJS];
extern struct mem_addr *mem_head;
#ifdef CAN_WITH_RTL
extern int can_rtl_priority;
#endif /*CAN_WITH_RTL*/
+
+#endif /* MAIN_H */
+