#include "./constants.h"
#include "./can_sysdep.h"
#include "./can_queue.h"
-#include "lincan_config.h"
#ifdef CAN_DEBUG
#define DEBUGMSG(fmt,args...) can_printk(KERN_ERR "can.o (debug): " fmt,\
long clock; /* Chip clock in Hz */
long baudrate;
- void (*write_register)(unsigned char data,unsigned long address);
+ void (*write_register)(unsigned data,unsigned long address);
unsigned (*read_register)(unsigned long address);
void *chip_data;
* %MSGOBJ_TX_REQUEST .. the message object requests TX activation
* %MSGOBJ_TX_LOCK .. some IRQ routine or callback on some CPU
* is running inside TX activation processing code
+ * @rx_preconfig_id: place to store RX message identifier for some chip types
+ * that reuse same object for TX
*/
struct msgobj_t {
unsigned long obj_base_addr;
struct canmsg_t rx_msg;
struct chip_t *hostchip;
+
+ unsigned long rx_preconfig_id;
atomic_t obj_used;
struct list_head obj_users;
int (*init_chip_data)(struct candevice_t *candev, int chipnr);
int (*init_obj_data)(struct chip_t *chip, int objnr);
int (*program_irq)(struct candevice_t *candev);
- void (*write_register)(unsigned char data,unsigned long address);
+ void (*write_register)(unsigned data,unsigned long address);
unsigned (*read_register)(unsigned long address);
};