Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/agp/agp_i810.c
| Show First 20 Lines • Show All 2,047 Lines • ▼ Show 20 Lines | agp_i915_chipset_flush_free_page(device_t dev) | ||||
| device_t vga; | device_t vga; | ||||
| sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
| vga = device_get_parent(dev); | vga = device_get_parent(dev); | ||||
| if (sc->sc_flush_page_res == NULL) | if (sc->sc_flush_page_res == NULL) | ||||
| return; | return; | ||||
| BUS_DEACTIVATE_RESOURCE(device_get_parent(vga), dev, | BUS_DEACTIVATE_RESOURCE(device_get_parent(vga), dev, | ||||
| sc->sc_flush_page_res); | sc->sc_flush_page_res); | ||||
| BUS_RELEASE_RESOURCE(device_get_parent(vga), dev, SYS_RES_MEMORY, | BUS_RELEASE_RESOURCE(device_get_parent(vga), dev, | ||||
| sc->sc_flush_page_rid, sc->sc_flush_page_res); | sc->sc_flush_page_res); | ||||
| } | } | ||||
| static int | static int | ||||
| agp_i915_chipset_flush_setup(device_t dev) | agp_i915_chipset_flush_setup(device_t dev) | ||||
| { | { | ||||
| struct agp_i810_softc *sc; | struct agp_i810_softc *sc; | ||||
| uint32_t temp; | uint32_t temp; | ||||
| int error; | int error; | ||||
| ▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines | |||||