allow dwqe.c to build on architectures that do not have machine/fdt.h
authorstsp <stsp@openbsd.org>
Mon, 9 Oct 2023 14:25:00 +0000 (14:25 +0000)
committerstsp <stsp@openbsd.org>
Mon, 9 Oct 2023 14:25:00 +0000 (14:25 +0000)
commit41e44c553d835e31b2c334ef4461b58feb973f14
treed8a48c76a11f01c46e6d8c16c58bb7d783eed101
parentab16e3cc17d3de97f67c8c585ce46cce1fbf41a3
allow dwqe.c to build on architectures that do not have machine/fdt.h

Move struct if_device to a new fdt-specific softc struct, along with
the gmac_id field which is only used by if_dwqe_fdt.c at present.
This avoids the need to include any fdt header files in dwqe.c.

ok kettenis@
sys/dev/fdt/if_dwqe_fdt.c
sys/dev/ic/dwqe.c
sys/dev/ic/dwqevar.h