freebsd11_network: add missing bus_get_dma_tag method for marvell_yukon.
This commit is contained in:
parent
95ed3b4432
commit
b54ad7b4f4
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user