Make siis(4) and mvs(4) send bus_get_dma_tag() requests to parent buses
passing real bus' child pointers instead of grandchilds. Requested by: kib
This commit is contained in:
parent
706d408512
commit
ca11419237
@ -488,6 +488,13 @@ mvs_child_location_str(device_t dev, device_t child, char *buf,
|
||||
return (0);
|
||||
}
|
||||
|
||||
static bus_dma_tag_t
|
||||
mvs_get_dma_tag(device_t bus, device_t child)
|
||||
{
|
||||
|
||||
return (bus_get_dma_tag(bus));
|
||||
}
|
||||
|
||||
static device_method_t mvs_methods[] = {
|
||||
DEVMETHOD(device_probe, mvs_probe),
|
||||
DEVMETHOD(device_attach, mvs_attach),
|
||||
@ -500,6 +507,7 @@ static device_method_t mvs_methods[] = {
|
||||
DEVMETHOD(bus_setup_intr, mvs_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr,mvs_teardown_intr),
|
||||
DEVMETHOD(bus_child_location_str, mvs_child_location_str),
|
||||
DEVMETHOD(bus_get_dma_tag, mvs_get_dma_tag),
|
||||
DEVMETHOD(mvs_edma, mvs_edma),
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
@ -430,6 +430,13 @@ mvs_child_location_str(device_t dev, device_t child, char *buf,
|
||||
return (0);
|
||||
}
|
||||
|
||||
static bus_dma_tag_t
|
||||
mvs_get_dma_tag(device_t bus, device_t child)
|
||||
{
|
||||
|
||||
return (bus_get_dma_tag(bus));
|
||||
}
|
||||
|
||||
static device_method_t mvs_methods[] = {
|
||||
DEVMETHOD(device_probe, mvs_probe),
|
||||
DEVMETHOD(device_attach, mvs_attach),
|
||||
@ -441,8 +448,9 @@ static device_method_t mvs_methods[] = {
|
||||
DEVMETHOD(bus_release_resource, mvs_release_resource),
|
||||
DEVMETHOD(bus_setup_intr, mvs_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr,mvs_teardown_intr),
|
||||
DEVMETHOD(mvs_edma, mvs_edma),
|
||||
DEVMETHOD(bus_child_location_str, mvs_child_location_str),
|
||||
DEVMETHOD(bus_get_dma_tag, mvs_get_dma_tag),
|
||||
DEVMETHOD(mvs_edma, mvs_edma),
|
||||
{ 0, 0 }
|
||||
};
|
||||
static driver_t mvs_driver = {
|
||||
|
@ -414,6 +414,13 @@ siis_child_location_str(device_t dev, device_t child, char *buf,
|
||||
return (0);
|
||||
}
|
||||
|
||||
static bus_dma_tag_t
|
||||
siis_get_dma_tag(device_t bus, device_t child)
|
||||
{
|
||||
|
||||
return (bus_get_dma_tag(bus));
|
||||
}
|
||||
|
||||
devclass_t siis_devclass;
|
||||
static device_method_t siis_methods[] = {
|
||||
DEVMETHOD(device_probe, siis_probe),
|
||||
@ -427,6 +434,7 @@ static device_method_t siis_methods[] = {
|
||||
DEVMETHOD(bus_setup_intr, siis_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr,siis_teardown_intr),
|
||||
DEVMETHOD(bus_child_location_str, siis_child_location_str),
|
||||
DEVMETHOD(bus_get_dma_tag, siis_get_dma_tag),
|
||||
{ 0, 0 }
|
||||
};
|
||||
static driver_t siis_driver = {
|
||||
|
Loading…
Reference in New Issue
Block a user