freebsd11_network: add missing bus_get_dma_tag method for marvell_yukon.

This commit is contained in:
Jérôme Duval 2018-05-19 12:32:46 +02:00
parent 95ed3b4432
commit b54ad7b4f4
2 changed files with 6 additions and 0 deletions

View File

@ -316,6 +316,8 @@ device_set_driver(device_t dev, driver_t *driver)
dev->methods.bus_print_child = (void *)mth->method; dev->methods.bus_print_child = (void *)mth->method;
else if (!strcmp(mth->name, "bus_read_ivar")) else if (!strcmp(mth->name, "bus_read_ivar"))
dev->methods.bus_read_ivar = (void *)mth->method; 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 else
panic("device_set_driver: method %s not found\n", mth->name); panic("device_set_driver: method %s not found\n", mth->name);

View File

@ -9,6 +9,9 @@
#define SHARED_H_ #define SHARED_H_
#include <sys/bus.h>
#define MAX_DEVICES 8 #define MAX_DEVICES 8
@ -52,6 +55,7 @@ struct device {
int (*bus_print_child)(device_t dev, device_t child); int (*bus_print_child)(device_t dev, device_t child);
int (*bus_read_ivar)(device_t dev, device_t child __unused, int which, int (*bus_read_ivar)(device_t dev, device_t child __unused, int which,
uintptr_t *result); uintptr_t *result);
bus_dma_tag_t (*bus_get_dma_tag)(device_t dev);
} methods; } methods;
struct list_link link; struct list_link link;