search for: mmio_writel

Displaying 2 results from an estimated 2 matches for "mmio_writel".

Did you mean: mmio_write
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
...irtio_readw(a) mmio_ops->mmio_readl((a)) > +#define virtio_readl(a) mmio_ops->mmio_readl((a)) > +#define virtio_writeb(val, a) mmio_ops->mmio_writeb((val), (a)) > +#define virtio_writew(val, a) mmio_ops->mmio_writew((val), (a)) > +#define virtio_writel(val, a) mmio_ops->mmio_writel((val), (a)) How exactly are these ops hooked up? I'm envisaging something like: ops = spec_compliant_ops; [...] if (firmware_says_hypervisor_is_buggy()) ops = magic_qcom_ops; am I wrong? > +int register_virtio_mmio_ops(struct virtio_mmio_ops *ops) > +{ > + pr_info("Regist...
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
...(a)) > > > +#define virtio_readl(a) mmio_ops->mmio_readl((a)) > > > +#define virtio_writeb(val, a) mmio_ops->mmio_writeb((val), (a)) > > > +#define virtio_writew(val, a) mmio_ops->mmio_writew((val), (a)) > > > +#define virtio_writel(val, a) mmio_ops->mmio_writel((val), (a)) > > > > How exactly are these ops hooked up? I'm envisaging something like: > > > > ops = spec_compliant_ops; > > [...] > > if (firmware_says_hypervisor_is_buggy()) > > ops = magic_qcom_ops; > > > > am I wrong? > >...