On Wed, Apr 08, 2020 at 02:39:39PM +0200, Gerd Hoffmann wrote:
> > > +again:
> > > +switch (ptr[offset]) {
> > > +case 0: /* null name */
> > > +offset++;
> > > +*(dst++) = 0;
> > > +break;
> [ ... ]
> > > +case '^':
> > > +*(dst++) = '^';
> > > +
Add support for virtio-mmio to the vp_*() helper functions.
Both legacy and 1.0 virto-mmio versions are supported. They
are very simliar anyway, only the virtqueue initialization
is slightly different.
Signed-off-by: Gerd Hoffmann
---
src/hw/virtio-pci.c | 68 +++
Add new fields to struct virtio_lun_s for mmio support,
add mmio parameter to virtio_scsi_init_lun(), so both
pci and mmio devices can be handled.
Add and use bootprio_find_scsi_mmio_device() to figure
boot priority of devices connected to a virtio-mmio
scsi controller.
Finally add init_virtio_sc
In case a xsdt table is present (and located below 4G)
prefer it over rsdt.
Signed-off-by: Gerd Hoffmann
---
src/std/acpi.h | 11 +++
src/fw/biostables.c | 40 ++--
2 files changed, 41 insertions(+), 10 deletions(-)
diff --git a/src/std/acpi.h b/
Add and use bootprio_find_mmio_device() to figure
the boot priority of virtio-mmio block devices.
Add init_virtio_blk_mmio to initialize one
virtio-mmio block device.
Signed-off-by: Gerd Hoffmann
---
src/hw/virtio-blk.h | 1 +
src/util.h | 1 +
src/boot.c | 9 ++
src
Seach for virtio-mmio devices in the DSDT table,
register the devices found.
Signed-off-by: Gerd Hoffmann
---
src/hw/virtio-mmio.h | 1 +
src/fw/paravirt.c| 2 ++
src/hw/virtio-mmio.c | 20
3 files changed, 23 insertions(+)
diff --git a/src/hw/virtio-mmio.h b/src/hw/v
Create a list of devices found in the DSDT table. Add helper functions
to find devices, walk the list and figure device informations like mmio
ranges and irqs.
Signed-off-by: Gerd Hoffmann
---
Makefile | 2 +-
src/util.h | 11 +
src/fw/biostables.c | 9 +
src/fw/dsdt
Add virtio_mmio_setup_one() to setup virtio mmio devices. Add
vp_init_mmio() to initialize device struct. Because virtio-pci and
virtio-mmio are quite simliar we reuse the infrastructure we already
have for virtio-pci and just setup struct vp_cap for virtio-mmio.
Signed-off-by: Gerd Hoffmann
--
Hi,
This series adds virtio-mmio support and an acpi dsdt parser
(for device discovery) to seabios.
v2:
* various acpi parser tweaks.
* move parser to separate src file.
* reorganize virtio-mmio probing a bit.
take care,
Gerd
Gerd Hoffmann (9):
virtio-mmio: device probing and initializ
---
src/hw/virtio-mmio.c | 21 +++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/hw/virtio-mmio.c b/src/hw/virtio-mmio.c
index adb28f730592..dabef7b7e53a 100644
--- a/src/hw/virtio-mmio.c
+++ b/src/hw/virtio-mmio.c
@@ -11,6 +11,19 @@
void virtio_mmio_setup
Don't initialize the ps/2 keyboard in case the device is not
listed in the ACPi DSDT table.
Signed-off-by: Gerd Hoffmann
---
src/hw/ps2port.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/hw/ps2port.c b/src/hw/ps2port.c
index 2c334c06b7eb..c82521b42e16 100644
--- a/src/hw/ps2port.c
On Mon, Apr 06, 2020 at 07:26:07PM -0400, Kevin O'Connor wrote:
> On Fri, Apr 03, 2020 at 10:31:20AM +0200, Gerd Hoffmann wrote:
> > Don't initialize the ps/2 keyboard in case the device is not
> > listed in the ACPi DSDT table.
> >
> > Signed-off-by: Gerd Hoffmann
> > ---
> > src/hw/ps2port.c |
Hi,
> > +/
> > + * DSDT parser
> > + /
>
> I think this code is sufficiently large to demand it's own C file -
> for example src/fw/dsdt_parser.c .
Done.
> > +static
13 matches
Mail list logo