]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
VME support moved to a separate file
authorwentasah <wentasah>
Tue, 27 Apr 2004 16:55:49 +0000 (16:55 +0000)
committerwentasah <wentasah>
Tue, 27 Apr 2004 16:55:49 +0000 (16:55 +0000)
lincan/src/unican.c

index 2347a675f99dd7b0b78acd8a1716ba73a5b27011..488d8e16257117d4c5c68cd8992febc085a922b6 100644 (file)
@@ -941,26 +941,6 @@ int unican_pci_register(struct hwspecops_t *hwspecops)
 
 #ifdef CAN_ENABLE_VME_SUPPORT
 
 
 #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*/
 
 #endif /*CAN_ENABLE_VME_SUPPORT*/