#endif /*CONFIG_OC_LINCAN_DETAILED_ERRORS*/
-/* CAN message over usb */
-struct usbcan_canmsg_t{
- __u8 chip_id;
- __u16 flags;
- __u8 id[4];
- __u8 length;
- __u8 data[8];
-};
-
/* Structure to hold all of our device specific stuff */
struct usbcan_usb {
struct usb_device *udev; /* the usb device for this device */
unsigned char *ctl_in_buffer; /* the buffer to receive data */
size_t bulk_in_size; /* the size of the receive buffer */
size_t ctl_in_size; /* the size of the receive buffer */
- __u8 ctl_in_endpointAddr; /* the address of the bulk in endpoint */
- __u8 ctl_out_endpointAddr; /* the address of the bulk in endpoint */
- __u8 bulk_in_endpointAddr; /* the address of the bulk in endpoint */
- __u8 bulk_out_endpointAddr; /* the address of the bulk out endpoint */
+ u8 ctl_in_endpointAddr; /* the address of the bulk in endpoint */
+ u8 ctl_out_endpointAddr; /* the address of the bulk in endpoint */
+ u8 bulk_in_endpointAddr; /* the address of the bulk in endpoint */
+ u8 bulk_out_endpointAddr; /* the address of the bulk out endpoint */
int errors; /* the last request tanked */
int open_count; /* count the number of openers */
spinlock_t err_lock; /* lock for errors */
struct mutex io_mutex; /* synchronize I/O with disconnect */
struct urb *rcv;
-/* uchar8_t rcv_msg[16];
- uchar8_t tx_msg[16];*/
- __u8 rcv_msg[16];
- __u8 tx_msg[16];
+ u8 rcv_msg[16];
+ u8 tx_msg[16];
kthread_t rcvthread; /* usb receive kernel thread */
struct candevice_t *candev;