diff --git a/src/libs/compat/freebsd11_network/compat.c b/src/libs/compat/freebsd11_network/compat.c index ad2c893523..a113e4fd28 100644 --- a/src/libs/compat/freebsd11_network/compat.c +++ b/src/libs/compat/freebsd11_network/compat.c @@ -316,6 +316,8 @@ device_set_driver(device_t dev, driver_t *driver) dev->methods.bus_print_child = (void *)mth->method; else if (!strcmp(mth->name, "bus_read_ivar")) dev->methods.bus_read_ivar = (void *)mth->method; + else if (!strcmp(mth->name, "bus_get_dma_tag")) + dev->methods.bus_get_dma_tag = (void *)mth->method; else panic("device_set_driver: method %s not found\n", mth->name); diff --git a/src/libs/compat/freebsd11_network/shared.h b/src/libs/compat/freebsd11_network/shared.h index a21de1c727..1d49edd469 100644 --- a/src/libs/compat/freebsd11_network/shared.h +++ b/src/libs/compat/freebsd11_network/shared.h @@ -9,6 +9,9 @@ #define SHARED_H_ +#include + + #define MAX_DEVICES 8 @@ -52,6 +55,7 @@ struct device { int (*bus_print_child)(device_t dev, device_t child); int (*bus_read_ivar)(device_t dev, device_t child __unused, int which, uintptr_t *result); + bus_dma_tag_t (*bus_get_dma_tag)(device_t dev); } methods; struct list_link link;