template_init_hw_data

Name

template_init_hw_data --  Initialize hardware cards

Synopsis

int template_init_hw_data (struct candevice_t * candev);

Arguments

candev

Pointer to candevice/board structure

Description

The function template_init_hw_data is used to initialize the hardware structure containing information about the installed CAN-board. RESET_ADDR represents the io-address of the hardware reset register. NR_82527 represents the number of Intel 82527 chips on the board. NR_SJA1000 represents the number of Philips sja1000 chips on the board. The flags entry can currently only be PROGRAMMABLE_IRQ to indicate that the hardware uses programmable interrupts.

Return Value

The function always returns zero

File

src/template.c