X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/cc1811f284f00d214e198cb20b466d261201385b..831ccb1f14f7472962fc2d185f32e18105209bd7:/lincan/src/boardlist.c diff --git a/lincan/src/boardlist.c b/lincan/src/boardlist.c index f85dcb6..0c2696a 100644 --- a/lincan/src/boardlist.c +++ b/lincan/src/boardlist.c @@ -3,33 +3,24 @@ * Written for new CAN driver version by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ #include "../include/can.h" #include "../include/can_sysdep.h" #include "../include/main.h" -#include "supported_cards.h" - -#include "../include/pip.h" -#include "../include/pccan.h" -#include "../include/smartcan.h" -#include "../include/pc-i03.h" -#include "../include/pcm3680.h" -#include "../include/m437.h" -#include "../include/template.h" -#include "../include/i82527.h" -#include "../include/aim104.h" -#include "../include/pcccan.h" - extern int template_register(struct hwspecops_t *hwspecops); -extern int pip5_register(struct hwspecops_t *hwspecops); -extern int pip6_register(struct hwspecops_t *hwspecops); +extern int virtual_register(struct hwspecops_t *hwspecops); +extern int oscar_register(struct hwspecops_t *hwspecops); +extern int pip_register(struct hwspecops_t *hwspecops); +extern int m437_register(struct hwspecops_t *hwspecops); extern int smartcan_register(struct hwspecops_t *hwspecops); extern int pccanf_register(struct hwspecops_t *hwspecops); extern int pccand_register(struct hwspecops_t *hwspecops); extern int pccanq_register(struct hwspecops_t *hwspecops); +extern int kv_pcican_register(struct hwspecops_t *hwspecops); +extern int ems_cpcpci_register(struct hwspecops_t *hwspecops); extern int nsi_register(struct hwspecops_t *hwspecops); extern int cc104_register(struct hwspecops_t *hwspecops); extern int pci03_register(struct hwspecops_t *hwspecops); @@ -39,57 +30,143 @@ extern int pcccan_register(struct hwspecops_t *hwspecops); extern int ssv_register(struct hwspecops_t *hwspecops); extern int bfadcan_register(struct hwspecops_t *hwspecops); extern int pikronisa_register(struct hwspecops_t *hwspecops); -extern int virtual_register(struct hwspecops_t *hwspecops); +extern int gensja1000io_register(struct hwspecops_t *hwspecops); +extern int pimx1_register(struct hwspecops_t *hwspecops); +extern int msmcan_register(struct hwspecops_t *hwspecops); +extern int unican_register(struct hwspecops_t *hwspecops); +extern int unican_pci_register(struct hwspecops_t *hwspecops); +extern int unican_vme_register(struct hwspecops_t *hwspecops); +extern int ipci165_register(struct hwspecops_t *hwspecops); +extern int pcan_dongle_register(struct hwspecops_t *hwspecops); +extern int eb8245_register(struct hwspecops_t *hwspecops); +extern int adlink7841_register(struct hwspecops_t *hwspecops); +extern int tscan1_register(struct hwspecops_t *hwspecops); +extern int ts7kv_register(struct hwspecops_t *hwspecops); +extern int ns_dev_register(struct hwspecops_t *hwspecops); +extern int hms30c7202_register(struct hwspecops_t *hwspecops); +extern int nsi_canpci_register(struct hwspecops_t *hwspecops); +extern int usbcan_register(struct hwspecops_t *hwspecops); +extern int pcan_pci_register(struct hwspecops_t *hwspecops); +extern int esdpci200_register(struct hwspecops_t *hwspecops); +extern int sh7760_register(struct hwspecops_t *hwspecops); const struct boardtype_t can_boardtypes[]={ - #ifdef ENABLE_CARD_template + #ifdef CONFIG_OC_LINCAN_CARD_template {"template", template_register, 1}, #endif - #ifdef ENABLE_CARD_template + #ifdef CONFIG_OC_LINCAN_CARD_virtual {"virtual", virtual_register, 0}, #endif - #ifdef ENABLE_CARD_pip - {"pip5", pip5_register, 1}, - {"pip6", pip6_register, 1}, + #ifdef CONFIG_OC_LINCAN_CARD_oscar + {"oscar", oscar_register, 1}, #endif - #ifdef ENABLE_CARD_smartcan + #ifdef CONFIG_OC_LINCAN_CARD_pip + {"pip5", pip_register, 1}, + {"pip6", pip_register, 1}, + {"pip7", pip_register, 1}, + {"pip8", pip_register, 1}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_smartcan {"smartcan", smartcan_register, 1}, #endif - #ifdef ENABLE_CARD_nsi + #ifdef CONFIG_OC_LINCAN_CARD_nsi {"nsican", nsi_register, 1}, #endif - #ifdef ENABLE_CARD_cc_can104 + #ifdef CONFIG_OC_LINCAN_CARD_cc_can104 {"cc104", cc104_register, 1}, #endif - #ifdef ENABLE_CARD_aim104 + #ifdef CONFIG_OC_LINCAN_CARD_aim104 {"aim104", aim104_register, 1}, #endif - #ifdef ENABLE_CARD_pc_i03 + #ifdef CONFIG_OC_LINCAN_CARD_pc_i03 {"pc-i03", pci03_register, 1}, #endif - #ifdef ENABLE_CARD_pcm3680 + #ifdef CONFIG_OC_LINCAN_CARD_pcm3680 {"pcm3680", pcm3680_register, 2}, #endif - #ifdef ENABLE_CARD_pccan + #ifdef CONFIG_OC_LINCAN_CARD_pccan {"pccan-f", pccanf_register, 1}, {"pccan-s", pccanf_register, 1}, {"pccan-d", pccand_register, 2}, {"pccan-q", pccanq_register, 4}, #endif - #ifdef ENABLE_CARD_m437 + #if defined(CONFIG_OC_LINCAN_CARD_kv_pcican)&&defined(CAN_ENABLE_PCI_SUPPORT) + {"pcican-s", kv_pcican_register, 0}, + {"pcican-d", kv_pcican_register, 0}, + {"pcican-q", kv_pcican_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_ems_cpcpci)&&defined(CAN_ENABLE_PCI_SUPPORT) + {"ems_cpcpci", ems_cpcpci_register, 0}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_m437 {"m437", m437_register, 1}, #endif - #ifdef ENABLE_CARD_pcccan + #ifdef CONFIG_OC_LINCAN_CARD_pcccan {"pcccan", pcccan_register, 1}, #endif - #ifdef ENABLE_CARD_ssv + #ifdef CONFIG_OC_LINCAN_CARD_ssv {"ssv", ssv_register, 2}, #endif - #ifdef ENABLE_CARD_bfadcan + #ifdef CONFIG_OC_LINCAN_CARD_bfadcan {"bfadcan", bfadcan_register, 1}, #endif - #ifdef ENABLE_CARD_pikronisa + #ifdef CONFIG_OC_LINCAN_CARD_pikronisa {"pikronisa", pikronisa_register, 1}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_gensja1000io + {"gensja1000io", gensja1000io_register, 1}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_pimx1 + {"pimx1", pimx1_register, 0}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_msmcan + {"msmcan", msmcan_register, 1}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_unican + {"unican", unican_register, 1}, + #endif + #ifdef CONFIG_OC_LINCAN_CARD_ipci165 + {"ipci165", ipci165_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_unican)&&defined(CAN_ENABLE_PCI_SUPPORT) + {"unican-pci", unican_pci_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_unican)&&defined(CAN_ENABLE_VME_SUPPORT) + {"unican-vme", unican_vme_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_pcan_dongle) + {"pcan_dongle", pcan_dongle_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_eb8245) + {"eb8245", eb8245_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_adlink7841) + {"adlink7841", adlink7841_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_esdpci200) + {"esdpci200", esdpci200_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_tscan1) + {"tscan1", tscan1_register, 1}, + {"ts7kv", ts7kv_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_ns_dev_can) + {"ns_dev", ns_dev_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_sh7760) + {"sh7760", sh7760_register, 2}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_hms30c7202_can) + {"hms30c7202", hms30c7202_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_nsi_canpci)&&defined(CAN_ENABLE_PCI_SUPPORT) + {"nsicanpci", nsi_canpci_register, 1}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_pcan_pci)&&defined(CAN_ENABLE_PCI_SUPPORT) + {"pcan_pci", pcan_pci_register, 0}, + #endif + #if defined(CONFIG_OC_LINCAN_CARD_usbcan) + {"usbcan", usbcan_register, 0}, #endif {NULL} };