Name
template_init_obj_data -- Initialize message buffers
Synopsis
int template_init_obj_data
(struct chip_t * chip, int objnr);
Arguments
- chip
Pointer to chip specific structure
- objnr
Number of the message buffer
Description
The function template_init_obj_data is used to initialize the hardware
structure containing information about the different message objects on the
CAN chip. In case of the sja1000 there's only one message object but on the
i82527 chip there are 15.
The code below is for a i82527 chip and initializes the object base addresses
The entry obj_base_addr represents the first memory address of the message
object. In case of the sja1000 obj_base_addr is taken the same as the chips
base address.
Unless the hardware uses a segmented memory map, flags can be set zero.
Return Value
The function always returns zero