From: ppisa Date: Wed, 15 Jun 2005 11:45:00 +0000 (+0200) Subject: Merge: Added ipci165_attach_to_chip and ipci165_release_chip, which are mandatory X-Git-Tag: CLT_COMM_CAN_usb_can1_kriz_bp~53 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/cb5e6d2ab11223f43f89f7d671792ee42acf6227?hp=9fd9dae9ad27311f99b9039782c1bd3998ccdf70 Merge: Added ipci165_attach_to_chip and ipci165_release_chip, which are mandatory Merge commit 'remotes/sf-ocera-lincan/master' --- diff --git a/lincan/src/ipci165.c b/lincan/src/ipci165.c index 3dbbcb3..debe2c4 100644 --- a/lincan/src/ipci165.c +++ b/lincan/src/ipci165.c @@ -967,6 +967,32 @@ void ipci165_do_tx_timeout(unsigned long data) DEBUGMSG ("ipci165_do_tx_timeout: finished\n"); } +/** + * ipci165_attach_to_chip: - attaches to the chip, setups registers and state + * @chip: pointer to chip state structure + * + * Return Value: negative value reports error. + * File: src/ipci165.c + */ +int ipci165_attach_to_chip(struct canchip_t *chip) +{ + return 0; +} + +/** + * ipci165_release_chip: - called before chip structure removal if %CHIP_ATTACHED is set + * @chip: pointer to chip state structure + * + * Return Value: negative value reports error. + * File: src/ipci165.c + */ +int ipci165_release_chip(struct canchip_t *chip) +{ + ipci165_stop_chip(chip); + /* disable interrupts in the hardware, etc. */ + return 0; +} + /* * * iPC-I 165/PCI Board Functionality * * */ /** @@ -1419,6 +1445,8 @@ int ipci165_init_chip_data(struct candevice_t *candev, int chipnr) chip->chip_data = chip_data; CANMSG("initializing ipci165 chip operations\n"); + chip->chipspecops->attach_to_chip=ipci165_attach_to_chip; + chip->chipspecops->release_chip=ipci165_release_chip; chip->chipspecops->chip_config=ipci165_chip_config; chip->chipspecops->baud_rate=ipci165_baud_rate; chip->chipspecops->set_btregs=ipci165_set_btregs;