diff options
Diffstat (limited to 'drivers/net/can')
| -rw-r--r-- | drivers/net/can/Kconfig | 60 | ||||
| -rw-r--r-- | drivers/net/can/dev.c | 6 | ||||
| -rw-r--r-- | drivers/net/can/sja1000/Kconfig | 47 | ||||
| -rw-r--r-- | drivers/net/can/usb/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/net/can/usb/Makefile | 2 |
5 files changed, 70 insertions, 55 deletions
diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig index df32c109b7ac..772f6d2489ce 100644 --- a/drivers/net/can/Kconfig +++ b/drivers/net/can/Kconfig | |||
| @@ -35,66 +35,16 @@ config CAN_CALC_BITTIMING | |||
| 35 | arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw". | 35 | arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw". |
| 36 | If unsure, say Y. | 36 | If unsure, say Y. |
| 37 | 37 | ||
| 38 | config CAN_SJA1000 | ||
| 39 | depends on CAN_DEV && HAS_IOMEM | ||
| 40 | tristate "Philips SJA1000" | ||
| 41 | ---help--- | ||
| 42 | Driver for the SJA1000 CAN controllers from Philips or NXP | ||
| 43 | |||
| 44 | config CAN_SJA1000_ISA | ||
| 45 | depends on CAN_SJA1000 && ISA | ||
| 46 | tristate "ISA Bus based legacy SJA1000 driver" | ||
| 47 | ---help--- | ||
| 48 | This driver adds legacy support for SJA1000 chips connected to | ||
| 49 | the ISA bus using I/O port, memory mapped or indirect access. | ||
| 50 | |||
| 51 | config CAN_SJA1000_PLATFORM | ||
| 52 | depends on CAN_SJA1000 | ||
| 53 | tristate "Generic Platform Bus based SJA1000 driver" | ||
| 54 | ---help--- | ||
| 55 | This driver adds support for the SJA1000 chips connected to | ||
| 56 | the "platform bus" (Linux abstraction for directly to the | ||
| 57 | processor attached devices). Which can be found on various | ||
| 58 | boards from Phytec (http://www.phytec.de) like the PCM027, | ||
| 59 | PCM038. | ||
| 60 | |||
| 61 | config CAN_SJA1000_OF_PLATFORM | ||
| 62 | depends on CAN_SJA1000 && PPC_OF | ||
| 63 | tristate "Generic OF Platform Bus based SJA1000 driver" | ||
| 64 | ---help--- | ||
| 65 | This driver adds support for the SJA1000 chips connected to | ||
| 66 | the OpenFirmware "platform bus" found on embedded systems with | ||
| 67 | OpenFirmware bindings, e.g. if you have a PowerPC based system | ||
| 68 | you may want to enable this option. | ||
| 69 | |||
| 70 | config CAN_EMS_PCI | ||
| 71 | tristate "EMS CPC-PCI, CPC-PCIe and CPC-104P Card" | ||
| 72 | depends on PCI && CAN_SJA1000 | ||
| 73 | ---help--- | ||
| 74 | This driver is for the one, two or four channel CPC-PCI, | ||
| 75 | CPC-PCIe and CPC-104P cards from EMS Dr. Thomas Wuensche | ||
| 76 | (http://www.ems-wuensche.de). | ||
| 77 | |||
| 78 | config CAN_EMS_USB | ||
| 79 | tristate "EMS CPC-USB/ARM7 CAN/USB interface" | ||
| 80 | depends on USB && CAN_DEV | ||
| 81 | ---help--- | ||
| 82 | This driver is for the one channel CPC-USB/ARM7 CAN/USB interface | ||
| 83 | from from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de). | ||
| 84 | |||
| 85 | config CAN_KVASER_PCI | ||
| 86 | tristate "Kvaser PCIcanx and Kvaser PCIcan PCI Cards" | ||
| 87 | depends on PCI && CAN_SJA1000 | ||
| 88 | ---help--- | ||
| 89 | This driver is for the the PCIcanx and PCIcan cards (1, 2 or | ||
| 90 | 4 channel) from Kvaser (http://www.kvaser.com). | ||
| 91 | |||
| 92 | config CAN_AT91 | 38 | config CAN_AT91 |
| 93 | tristate "Atmel AT91 onchip CAN controller" | 39 | tristate "Atmel AT91 onchip CAN controller" |
| 94 | depends on CAN && CAN_DEV && ARCH_AT91SAM9263 | 40 | depends on CAN_DEV && ARCH_AT91SAM9263 |
| 95 | ---help--- | 41 | ---help--- |
| 96 | This is a driver for the SoC CAN controller in Atmel's AT91SAM9263. | 42 | This is a driver for the SoC CAN controller in Atmel's AT91SAM9263. |
| 97 | 43 | ||
| 44 | source "drivers/net/can/sja1000/Kconfig" | ||
| 45 | |||
| 46 | source "drivers/net/can/usb/Kconfig" | ||
| 47 | |||
| 98 | config CAN_DEBUG_DEVICES | 48 | config CAN_DEBUG_DEVICES |
| 99 | bool "CAN devices debugging messages" | 49 | bool "CAN devices debugging messages" |
| 100 | depends on CAN | 50 | depends on CAN |
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 564e31c9fee4..2868fe842a41 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c | |||
| @@ -629,6 +629,11 @@ nla_put_failure: | |||
| 629 | return -EMSGSIZE; | 629 | return -EMSGSIZE; |
| 630 | } | 630 | } |
| 631 | 631 | ||
| 632 | static size_t can_get_xstats_size(const struct net_device *dev) | ||
| 633 | { | ||
| 634 | return sizeof(struct can_device_stats); | ||
| 635 | } | ||
| 636 | |||
| 632 | static int can_fill_xstats(struct sk_buff *skb, const struct net_device *dev) | 637 | static int can_fill_xstats(struct sk_buff *skb, const struct net_device *dev) |
| 633 | { | 638 | { |
| 634 | struct can_priv *priv = netdev_priv(dev); | 639 | struct can_priv *priv = netdev_priv(dev); |
| @@ -657,6 +662,7 @@ static struct rtnl_link_ops can_link_ops __read_mostly = { | |||
| 657 | .changelink = can_changelink, | 662 | .changelink = can_changelink, |
| 658 | .get_size = can_get_size, | 663 | .get_size = can_get_size, |
| 659 | .fill_info = can_fill_info, | 664 | .fill_info = can_fill_info, |
| 665 | .get_xstats_size = can_get_xstats_size, | ||
| 660 | .fill_xstats = can_fill_xstats, | 666 | .fill_xstats = can_fill_xstats, |
| 661 | }; | 667 | }; |
| 662 | 668 | ||
diff --git a/drivers/net/can/sja1000/Kconfig b/drivers/net/can/sja1000/Kconfig new file mode 100644 index 000000000000..4c674927f247 --- /dev/null +++ b/drivers/net/can/sja1000/Kconfig | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | menuconfig CAN_SJA1000 | ||
| 2 | tristate "Philips/NXP SJA1000 devices" | ||
| 3 | depends on CAN_DEV && HAS_IOMEM | ||
| 4 | |||
| 5 | if CAN_SJA1000 | ||
| 6 | |||
| 7 | config CAN_SJA1000_ISA | ||
| 8 | tristate "ISA Bus based legacy SJA1000 driver" | ||
| 9 | depends on ISA | ||
| 10 | ---help--- | ||
| 11 | This driver adds legacy support for SJA1000 chips connected to | ||
| 12 | the ISA bus using I/O port, memory mapped or indirect access. | ||
| 13 | |||
| 14 | config CAN_SJA1000_PLATFORM | ||
| 15 | tristate "Generic Platform Bus based SJA1000 driver" | ||
| 16 | ---help--- | ||
| 17 | This driver adds support for the SJA1000 chips connected to | ||
| 18 | the "platform bus" (Linux abstraction for directly to the | ||
| 19 | processor attached devices). Which can be found on various | ||
| 20 | boards from Phytec (http://www.phytec.de) like the PCM027, | ||
| 21 | PCM038. | ||
| 22 | |||
| 23 | config CAN_SJA1000_OF_PLATFORM | ||
| 24 | tristate "Generic OF Platform Bus based SJA1000 driver" | ||
| 25 | depends on PPC_OF | ||
| 26 | ---help--- | ||
| 27 | This driver adds support for the SJA1000 chips connected to | ||
| 28 | the OpenFirmware "platform bus" found on embedded systems with | ||
| 29 | OpenFirmware bindings, e.g. if you have a PowerPC based system | ||
| 30 | you may want to enable this option. | ||
| 31 | |||
| 32 | config CAN_EMS_PCI | ||
| 33 | tristate "EMS CPC-PCI, CPC-PCIe and CPC-104P Card" | ||
| 34 | depends on PCI | ||
| 35 | ---help--- | ||
| 36 | This driver is for the one, two or four channel CPC-PCI, | ||
| 37 | CPC-PCIe and CPC-104P cards from EMS Dr. Thomas Wuensche | ||
| 38 | (http://www.ems-wuensche.de). | ||
| 39 | |||
| 40 | config CAN_KVASER_PCI | ||
| 41 | tristate "Kvaser PCIcanx and Kvaser PCIcan PCI Cards" | ||
| 42 | depends on PCI | ||
| 43 | ---help--- | ||
| 44 | This driver is for the the PCIcanx and PCIcan cards (1, 2 or | ||
| 45 | 4 channel) from Kvaser (http://www.kvaser.com). | ||
| 46 | |||
| 47 | endif | ||
diff --git a/drivers/net/can/usb/Kconfig b/drivers/net/can/usb/Kconfig new file mode 100644 index 000000000000..bbc78e0b8a15 --- /dev/null +++ b/drivers/net/can/usb/Kconfig | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | menu "CAN USB interfaces" | ||
| 2 | depends on USB && CAN_DEV | ||
| 3 | |||
| 4 | config CAN_EMS_USB | ||
| 5 | tristate "EMS CPC-USB/ARM7 CAN/USB interface" | ||
| 6 | ---help--- | ||
| 7 | This driver is for the one channel CPC-USB/ARM7 CAN/USB interface | ||
| 8 | from from EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de). | ||
| 9 | |||
| 10 | endmenu | ||
diff --git a/drivers/net/can/usb/Makefile b/drivers/net/can/usb/Makefile index c3f75ba701b1..0afd51d4c7a5 100644 --- a/drivers/net/can/usb/Makefile +++ b/drivers/net/can/usb/Makefile | |||
| @@ -3,3 +3,5 @@ | |||
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | obj-$(CONFIG_CAN_EMS_USB) += ems_usb.o | 5 | obj-$(CONFIG_CAN_EMS_USB) += ems_usb.o |
| 6 | |||
| 7 | ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG | ||
