From: wentasah Date: Tue, 27 Apr 2004 16:55:49 +0000 (+0000) Subject: VME support moved to a separate file X-Git-Tag: CLT_COMM_CAN-lincan-0_2_2~9 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/ca0986f8db14d448065898cec6d9dac67075488f?hp=1ed72e10a8f0ac29b2595aaa516b7c0c838a1462 VME support moved to a separate file --- diff --git a/lincan/src/unican.c b/lincan/src/unican.c index 2347a67..488d8e1 100644 --- a/lincan/src/unican.c +++ b/lincan/src/unican.c @@ -941,26 +941,6 @@ int unican_pci_register(struct hwspecops_t *hwspecops) #ifdef CAN_ENABLE_VME_SUPPORT -int unican_vme_reset(struct candevice_t *candev) -{ - struct chip_t *chip = candev->chip[0]; - unican_writew(chip->chip_irq,chip->chip_base_addr+CL2_VME_INT_VECTOR); - return unican_reset(candev); -} - - -int unican_vme_register(struct hwspecops_t *hwspecops) -{ - hwspecops->request_io = unican_request_io; - hwspecops->release_io = unican_release_io; - hwspecops->reset = unican_vme_reset; - hwspecops->init_hw_data = unican_init_hw_data; - hwspecops->init_chip_data = unican_init_chip_data; - hwspecops->init_obj_data = unican_init_obj_data; - hwspecops->write_register = NULL; - hwspecops->read_register = NULL; - hwspecops->program_irq = unican_program_irq; - return 0; -} +#include "unican_vme.c" #endif /*CAN_ENABLE_VME_SUPPORT*/