From ca0986f8db14d448065898cec6d9dac67075488f Mon Sep 17 00:00:00 2001 From: wentasah Date: Tue, 27 Apr 2004 16:55:49 +0000 Subject: [PATCH] VME support moved to a separate file --- lincan/src/unican.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) 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*/ -- 2.39.2