X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a4c9ead4b64bd4de307f375c2ff313a7a07a06e0..2a4663dd0b20d96d1ffe20993dd0c63ed2ca9f20:/lincan/src/sja1000p.c diff --git a/lincan/src/sja1000p.c b/lincan/src/sja1000p.c index d59b82b..dc15154 100644 --- a/lincan/src/sja1000p.c +++ b/lincan/src/sja1000p.c @@ -738,3 +738,19 @@ int sja1000p_register(struct chipspecops_t *chipspecops) chipspecops->irq_handler=sja1000p_irq_handler; return 0; } + +/** + * sja1000p_fill_chipspecops - fills chip specific operations + * @chip: pointer to chip representation structure + * + * The function fills chip specific operations for sja1000 (PeliCAN) chip. + * + * Return Value: returns negative number in the case of fail + */ +int sja1000p_fill_chipspecops(struct chip_t *chip) +{ + chip->chip_type="sja1000p"; + chip->max_objects=1; + sja1000p_register(chip->chipspecops); + return 0; +}