X-Git-Url: https://rtime.felk.cvut.cz/gitweb/can-usb1.git/blobdiff_plain/3ee7a48ebcfbc57877be8fa5c19977ebdd769bff..41bca632426d921ab277d69f2531c3bda78ca755:/lincan-0.3.3/include/usbcan.h diff --git a/lincan-0.3.3/include/usbcan.h b/lincan-0.3.3/include/usbcan.h index 80566cd..df32174 100644 --- a/lincan-0.3.3/include/usbcan.h +++ b/lincan-0.3.3/include/usbcan.h @@ -16,6 +16,8 @@ #include #include +#include "../include/kthread.h" + /* our private defines. if this grows any larger, use your own .h file */ #define MAX_TRANSFER (PAGE_SIZE - 512) /* MAX_TRANSFER is chosen so that the VM is not stressed by @@ -61,13 +63,11 @@ int usbcan_send_msg(struct canchip_t *chip, struct msgobj_t *obj, int usbcan_fill_chipspecops(struct canchip_t *chip); int usbcan_irq_handler(int irq, struct canchip_t *chip); -void usbcan_read_kthread(kthread_t *kthread); -int usbcan_chip_queue_status(struct canchip_t *chip); - int usbcan_init(void); void usbcan_exit(void); -static int usbcan_probe(struct usb_interface *interface, const struct usb_device_id *id); -static void usbcan_disconnect(struct usb_interface *interface); + +void usbcan_read_kthread(kthread_t *kthread); +int usbcan_chip_queue_status(struct canchip_t *chip); #ifdef CONFIG_OC_LINCAN_DETAILED_ERRORS @@ -168,21 +168,8 @@ struct usbcan_usb { #define USBCAN_VENDOR_CHECK_TX_STAT (4) #define USBCAN_VENDOR_START_CHIP (5) #define USBCAN_VENDOR_STOP_CHIP (6) - -/* table of devices that work with this driver */ -static struct usb_device_id usbcan_table [] = { - { USB_DEVICE(USBCAN_VENDOR_ID, USBCAN_PRODUCT_ID) }, - { } /* Terminating entry */ -}; -MODULE_DEVICE_TABLE(usb, usbcan_table); - -static struct usb_driver usbcan_driver = { - .name = "usbcan", - .id_table = usbcan_table, - .probe = usbcan_probe, - .disconnect = usbcan_disconnect, -}; - +#define USBCAN_VENDOR_EXT_MASK_SET (7) +#define USBCAN_VENDOR_EXT_MASK_STATUS (8) #endif /*USBCAN_H*/