search for: bus_virtual

Displaying 20 results from an estimated 34 matches for "bus_virtual".

2015 Mar 20
2
[PATCH 1/1] Add virtio-input driver.
...ich is what you already do by not assigning it. >> > + vi->idev->name = vi->name; >> > + vi->idev->phys = vi->phys; >> >> Can you set vi->idev->uniq to the virtio-bus path? >> >> > + vi->idev->id.bustype = BUS_VIRTUAL; >> > + vi->idev->id.vendor = 0x0001; >> > + vi->idev->id.product = 0x0001; >> > + vi->idev->id.version = 0x0100; >> >> Please don't hardcode those. All user-space based interaction with >> input-devices relies on...
2015 Mar 20
2
[PATCH 1/1] Add virtio-input driver.
...ich is what you already do by not assigning it. >> > + vi->idev->name = vi->name; >> > + vi->idev->phys = vi->phys; >> >> Can you set vi->idev->uniq to the virtio-bus path? >> >> > + vi->idev->id.bustype = BUS_VIRTUAL; >> > + vi->idev->id.vendor = 0x0001; >> > + vi->idev->id.product = 0x0001; >> > + vi->idev->id.version = 0x0100; >> >> Please don't hardcode those. All user-space based interaction with >> input-devices relies on...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...the resolution is either not known or not fixed? Just leave it zero? > > + vi->idev->name = vi->name; > > + vi->idev->phys = vi->phys; > > Can you set vi->idev->uniq to the virtio-bus path? > > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + vi->idev->id.vendor = 0x0001; > > + vi->idev->id.product = 0x0001; > > + vi->idev->id.version = 0x0100; > > Please don't hardcode those. All user-space based interaction with > input-devices relies on those IDs. Can we retr...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...the resolution is either not known or not fixed? Just leave it zero? > > + vi->idev->name = vi->name; > > + vi->idev->phys = vi->phys; > > Can you set vi->idev->uniq to the virtio-bus path? > > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + vi->idev->id.vendor = 0x0001; > > + vi->idev->id.product = 0x0001; > > + vi->idev->id.version = 0x0100; > > Please don't hardcode those. All user-space based interaction with > input-devices relies on those IDs. Can we retr...
2020 Aug 05
1
[PATCH v3 30/38] virtio_input: convert to LE accessors
...;vi->idev->id.vendor); + virtio_cread_le(vi->vdev, struct virtio_input_config, + u.ids.product, &vi->idev->id.product); + virtio_cread_le(vi->vdev, struct virtio_input_config, + u.ids.version, &vi->idev->id.version); } else { vi->idev->id.bustype = BUS_VIRTUAL; } -- MST
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
...v->propbit, INPUT_PROP_CNT); > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); > + if (size) > + set_bit(EV_REP, vi->idev->evbit); > + > + vi->idev->name = vi->name; > + vi->idev->phys = vi->phys; > + vi->idev->id.bustype = BUS_VIRTUAL; > + vi->idev->id.vendor = 0x0001; > + vi->idev->id.product = 0x0001; > + vi->idev->id.version = 0x0100; Add comments explaining why these #s make sense? > + vi->idev->dev.parent = &vdev->dev; > + vi->idev->dev.groups = dev_attr_groups; > +...
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
...v->propbit, INPUT_PROP_CNT); > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); > + if (size) > + set_bit(EV_REP, vi->idev->evbit); > + > + vi->idev->name = vi->name; > + vi->idev->phys = vi->phys; > + vi->idev->id.bustype = BUS_VIRTUAL; > + vi->idev->id.vendor = 0x0001; > + vi->idev->id.product = 0x0001; > + vi->idev->id.version = 0x0100; Add comments explaining why these #s make sense? > + vi->idev->dev.parent = &vdev->dev; > + vi->idev->dev.groups = dev_attr_groups; > +...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...relatively large and because of that I want it be 1.0 on the host (qemu) side to not allocate large portions of I/O address space for the legacy virtio pci bar. > > + vi->idev->name = vi->name; > > + vi->idev->phys = vi->phys; > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + vi->idev->id.vendor = 0x0001; > > + vi->idev->id.product = 0x0001; > > + vi->idev->id.version = 0x0100; > > Add comments explaining why these #s make sense? See other subthread, will be changed to be host-provided (like name). > > + err = i...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...relatively large and because of that I want it be 1.0 on the host (qemu) side to not allocate large portions of I/O address space for the legacy virtio pci bar. > > + vi->idev->name = vi->name; > > + vi->idev->phys = vi->phys; > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + vi->idev->id.vendor = 0x0001; > > + vi->idev->id.product = 0x0001; > > + vi->idev->id.version = 0x0100; > > Add comments explaining why these #s make sense? See other subthread, will be changed to be host-provided (like name). > > + err = i...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...EV_REP); > + if (size) > + set_bit(EV_REP, vi->idev->evbit); > + > + vi->idev->name = vi->name; > + vi->idev->phys = vi->phys; Can you set vi->idev->uniq to the virtio-bus path? > + vi->idev->id.bustype = BUS_VIRTUAL; > + vi->idev->id.vendor = 0x0001; > + vi->idev->id.product = 0x0001; > + vi->idev->id.version = 0x0100; Please don't hardcode those. All user-space based interaction with input-devices relies on those IDs. Can we retrieve it from the host just lik...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...EV_REP); > + if (size) > + set_bit(EV_REP, vi->idev->evbit); > + > + vi->idev->name = vi->name; > + vi->idev->phys = vi->phys; Can you set vi->idev->uniq to the virtio-bus path? > + vi->idev->id.bustype = BUS_VIRTUAL; > + vi->idev->id.vendor = 0x0001; > + vi->idev->id.product = 0x0001; > + vi->idev->id.version = 0x0100; Please don't hardcode those. All user-space based interaction with input-devices relies on those IDs. Can we retrieve it from the host just lik...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...re doing leXXX everywhere, that's VERSION_1 dependency. virtio_cread will do byteswaps differently without VERSION_1. Just don't go there. > > > + vi->idev->name = vi->name; > > > + vi->idev->phys = vi->phys; > > > + vi->idev->id.bustype = BUS_VIRTUAL; > > > + vi->idev->id.vendor = 0x0001; > > > + vi->idev->id.product = 0x0001; > > > + vi->idev->id.version = 0x0100; > > > > Add comments explaining why these #s make sense? > > See other subthread, will be changed to be host-provide...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...re doing leXXX everywhere, that's VERSION_1 dependency. virtio_cread will do byteswaps differently without VERSION_1. Just don't go there. > > > + vi->idev->name = vi->name; > > > + vi->idev->phys = vi->phys; > > > + vi->idev->id.bustype = BUS_VIRTUAL; > > > + vi->idev->id.vendor = 0x0001; > > > + vi->idev->id.product = 0x0001; > > > + vi->idev->id.version = 0x0100; > > > > Add comments explaining why these #s make sense? > > See other subthread, will be changed to be host-provide...
2015 Mar 19
5
[PATCH 0/1] Add virtio-input driver.
Hi, This patch adds a virtio driver for input devices. Specification: https://www.kraxel.org/cgit/virtio-spec/log/?h=virtio-input https://www.kraxel.org/virtio/virtio-v1.0-csprd03-virtio-input.html#x1-2640007 Qemu patches; https://lists.gnu.org/archive/html/qemu-devel/2015-03/threads.html#03973 Gerd Hoffmann (1): Add virtio-input driver. drivers/virtio/Kconfig | 10 ++
2015 Mar 19
5
[PATCH 0/1] Add virtio-input driver.
Hi, This patch adds a virtio driver for input devices. Specification: https://www.kraxel.org/cgit/virtio-spec/log/?h=virtio-input https://www.kraxel.org/virtio/virtio-v1.0-csprd03-virtio-input.html#x1-2640007 Qemu patches; https://lists.gnu.org/archive/html/qemu-devel/2015-03/threads.html#03973 Gerd Hoffmann (1): Add virtio-input driver. drivers/virtio/Kconfig | 10 ++
2020 Aug 06
0
[vhost:vhost 32/65] drivers/virtio/virtio_input.c:247:3: warning: comparison of distinct pointer types ('typeof (_Generic((virtio_cread_v), __u8: (virtio_cread_v), __le16: (__builtin_constant_p((__u16)((__u16)(__le16)(virtio_cread_v)))
...virtio_cread_le(vi->vdev, struct virtio_input_config, 252 u.ids.product, &vi->idev->id.product); 253 virtio_cread_le(vi->vdev, struct virtio_input_config, 254 u.ids.version, &vi->idev->id.version); 255 } else { 256 vi->idev->id.bustype = BUS_VIRTUAL; 257 } 258 259 virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_PROP_BITS, 0, 260 vi->idev->propbit, INPUT_PROP_CNT); 261 size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); 262 if (size) 263 __set_bit(EV_REP, vi->idev->evbit); 264 265 vi-...
2015 Mar 24
2
[PATCH v3] Add virtio-input driver.
...vdev, struct virtio_input_config, > > + u.ids.product, &vi->idev->id.product); > > + virtio_cread(vi->vdev, struct virtio_input_config, > > + u.ids.version, &vi->idev->id.version); > > + } else { > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + } > > + > > + virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_PROP_BITS, 0, > > + vi->idev->propbit, INPUT_PROP_CNT); > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); > > + if (size) > > + __set_bit(EV_REP, vi->idev-&gt...
2015 Mar 24
2
[PATCH v3] Add virtio-input driver.
...vdev, struct virtio_input_config, > > + u.ids.product, &vi->idev->id.product); > > + virtio_cread(vi->vdev, struct virtio_input_config, > > + u.ids.version, &vi->idev->id.version); > > + } else { > > + vi->idev->id.bustype = BUS_VIRTUAL; > > + } > > + > > + virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_PROP_BITS, 0, > > + vi->idev->propbit, INPUT_PROP_CNT); > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); > > + if (size) > > + __set_bit(EV_REP, vi->idev-&gt...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...CFG_PROP_BITS, 0, + vi->idev->propbit, INPUT_PROP_CNT); + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); + if (size) + set_bit(EV_REP, vi->idev->evbit); + + vi->idev->name = vi->name; + vi->idev->phys = vi->phys; + vi->idev->id.bustype = BUS_VIRTUAL; + vi->idev->id.vendor = 0x0001; + vi->idev->id.product = 0x0001; + vi->idev->id.version = 0x0100; + vi->idev->dev.parent = &vdev->dev; + vi->idev->dev.groups = dev_attr_groups; + vi->idev->event = virtinput_status; + + /* device -> kernel */ + virtinp...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...CFG_PROP_BITS, 0, + vi->idev->propbit, INPUT_PROP_CNT); + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP); + if (size) + set_bit(EV_REP, vi->idev->evbit); + + vi->idev->name = vi->name; + vi->idev->phys = vi->phys; + vi->idev->id.bustype = BUS_VIRTUAL; + vi->idev->id.vendor = 0x0001; + vi->idev->id.product = 0x0001; + vi->idev->id.version = 0x0100; + vi->idev->dev.parent = &vdev->dev; + vi->idev->dev.groups = dev_attr_groups; + vi->idev->event = virtinput_status; + + /* device -> kernel */ + virtinp...