]> git.proxmox.com Git - mirror_qemu.git/commit - include/net/can_host.h
net/can: simple messages transport implementation for QEMU
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 27 Jan 2018 16:41:07 +0000 (17:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Feb 2018 10:44:13 +0000 (11:44 +0100)
commitd18957dbcc837d0420a2789da29e8dae976b9f1d
tree7427832e3e856bbbfa5dc1f779fbb2d36a4512d0
parent7a5235c9e679c58be41c7f0d2f4092ded8bd01f2
net/can: simple messages transport implementation for QEMU

The CanBusState state structure is created for each
emulated CAN channel. Individual clients/emulated
CAN interfaces or host interface connection registers
to the bus by CanBusClientState structure.

The CAN core is prepared to support connection to the
real host CAN bus network. The commit with such support
for Linux SocketCAN follows.

Implementation is as simple as possible.  There is no state to be
migrated, and messages prioritization and queuing are not considered
for now.  But it is intended to be extended when need arises.

Development repository and more documentation at

https://gitlab.fel.cvut.cz/canbus/qemu-canbus

The work is based on Jin Yang GSoC 2013 work funded
by Google and mentored in frame of RTEMS project GSoC
slot donated to QEMU.

Rewritten for QEMU-2.0+ versions and architecture cleanup
by Pavel Pisa (Czech Technical University in Prague).

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
default-configs/pci.mak
hw/Makefile.objs
include/net/can_emu.h [new file with mode: 0644]
include/net/can_host.h [new file with mode: 0644]
net/Makefile.objs
net/can/Makefile.objs [new file with mode: 0644]
net/can/can_core.c [new file with mode: 0644]
net/can/can_host.c [new file with mode: 0644]