* Rewritten for new CAN queues by Pavel Pisa - OCERA team member
* email:pisa@cmp.felk.cvut.cz
* This software is released under the GPL-License.
* Rewritten for new CAN queues by Pavel Pisa - OCERA team member
* email:pisa@cmp.felk.cvut.cz
* This software is released under the GPL-License.
* %CHIP_SEGMENTED .. access to the chip is segmented (mainly for i82527 chips)
* @clock: chip base clock frequency in Hz
* @baudrate: selected chip baudrate in Hz
* %CHIP_SEGMENTED .. access to the chip is segmented (mainly for i82527 chips)
* @clock: chip base clock frequency in Hz
* @baudrate: selected chip baudrate in Hz
* @sja_cdr_reg: SJA specific register -
* holds hardware specific options for the Clock Divider
* register. Options defined in the sja1000.h file:
* @sja_cdr_reg: SJA specific register -
* holds hardware specific options for the Clock Divider
* register. Options defined in the sja1000.h file:
unsigned short sja_cdr_reg; /* sja1000 only! */
unsigned short sja_ocr_reg; /* sja1000 only! */
unsigned short int_cpu_reg; /* intel 82527 only! */
unsigned short sja_cdr_reg; /* sja1000 only! */
unsigned short sja_ocr_reg; /* sja1000 only! */
unsigned short int_cpu_reg; /* intel 82527 only! */
* %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
* %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
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);
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);
* @remote_request: configures message object and asks for RTR message
* @check_tx_stat: checks state of transmission engine
* @wakeup_tx: wakeup TX processing
* @remote_request: configures message object and asks for RTR message
* @check_tx_stat: checks state of transmission engine
* @wakeup_tx: wakeup TX processing
* @enable_configuration: enable chip configuration mode
* @disable_configuration: disable chip configuration mode
* @set_btregs: configures bitrate registers
* @enable_configuration: enable chip configuration mode
* @disable_configuration: disable chip configuration mode
* @set_btregs: configures bitrate registers
int (*remote_request)(struct chip_t *chip, struct msgobj_t *obj);
int (*check_tx_stat)(struct chip_t *chip);
int (*wakeup_tx)(struct chip_t *chip, struct msgobj_t *obj);
int (*remote_request)(struct chip_t *chip, struct msgobj_t *obj);
int (*check_tx_stat)(struct chip_t *chip);
int (*wakeup_tx)(struct chip_t *chip, struct msgobj_t *obj);
int (*enable_configuration)(struct chip_t *chip);
int (*disable_configuration)(struct chip_t *chip);
int (*set_btregs)(struct chip_t *chip, unsigned short btr0,
int (*enable_configuration)(struct chip_t *chip);
int (*disable_configuration)(struct chip_t *chip);
int (*set_btregs)(struct chip_t *chip, unsigned short btr0,