Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vmd/vmd.c
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | case PCI_RES_BUS: | ||||
pcib_child_name(child)); | pcib_child_name(child)); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return (res); | return (res); | ||||
} | } | ||||
static int | static int | ||||
vmd_adjust_resource(device_t dev, device_t child, int type, | vmd_adjust_resource(device_t dev, device_t child, | ||||
struct resource *r, rman_res_t start, rman_res_t end) | struct resource *r, rman_res_t start, rman_res_t end) | ||||
{ | { | ||||
if (type == SYS_RES_IRQ) { | if (rman_get_type(r) == SYS_RES_IRQ) { | ||||
return (bus_generic_adjust_resource(dev, child, type, r, | return (bus_generic_adjust_resource(dev, child, r, start, end)); | ||||
start, end)); | |||||
} | } | ||||
return (bus_generic_rman_adjust_resource(dev, child, type, r, start, | return (bus_generic_rman_adjust_resource(dev, child, r, start, end)); | ||||
end)); | |||||
} | } | ||||
static int | static int | ||||
vmd_release_resource(device_t dev, device_t child, int type, int rid, | vmd_release_resource(device_t dev, device_t child, int type, int rid, | ||||
struct resource *r) | struct resource *r) | ||||
{ | { | ||||
if (type == SYS_RES_IRQ) { | if (type == SYS_RES_IRQ) { | ||||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |