From 5a2e8069265ebc6bcd1a2ed2b24223fe6fd13f24 Mon Sep 17 00:00:00 2001 From: Jan Kriz Date: Tue, 15 Jul 2008 12:19:02 +0200 Subject: [PATCH] Adding usbcan file structure --- lincan-0.3.3/config.omk-default | 3 ++- lincan-0.3.3/include/usbcan.h | 0 lincan-0.3.3/src/boardlist.c | 4 ++++ lincan-0.3.3/src/usbcan.c | 0 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 lincan-0.3.3/include/usbcan.h create mode 100644 lincan-0.3.3/src/usbcan.c diff --git a/lincan-0.3.3/config.omk-default b/lincan-0.3.3/config.omk-default index 52a1c9b..ae93a43 100644 --- a/lincan-0.3.3/config.omk-default +++ b/lincan-0.3.3/config.omk-default @@ -36,7 +36,8 @@ CONFIG_OC_LINCAN_CARD_ns_dev_can=n CONFIG_OC_LINCAN_CARD_ipci165=n CONFIG_OC_LINCAN_CARD_pimx1=n CONFIG_OC_LINCAN_CARD_tscan1=n +CONFIG_OC_LINCAN_CARD_usbcan=y # Config for utils #CONFIG_OC_LINCAN=x #CONFIG_OC_LINCANRTL=x -# Config for +# Config for diff --git a/lincan-0.3.3/include/usbcan.h b/lincan-0.3.3/include/usbcan.h new file mode 100644 index 0000000..e69de29 diff --git a/lincan-0.3.3/src/boardlist.c b/lincan-0.3.3/src/boardlist.c index 7c848d4..46d6063 100644 --- a/lincan-0.3.3/src/boardlist.c +++ b/lincan-0.3.3/src/boardlist.c @@ -44,6 +44,7 @@ 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); const struct boardtype_t can_boardtypes[]={ #ifdef CONFIG_OC_LINCAN_CARD_template @@ -147,6 +148,9 @@ const struct boardtype_t can_boardtypes[]={ #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_usbcan) + {"nsicanpci", usbcan_register, 0}, #endif {NULL} }; diff --git a/lincan-0.3.3/src/usbcan.c b/lincan-0.3.3/src/usbcan.c new file mode 100644 index 0000000..e69de29 -- 2.39.2