Lines Matching +full:non +full:- +full:descriptive
1 // SPDX-License-Identifier: MIT
21 * graphics drivers, such as EFI-GOP or VESA, early during the boot process.
23 * hardware-specific driver. To take over the device, the dedicated driver
25 * ownership of framebuffer memory and hand-over between drivers.
32 * .. code-block:: c
42 * return -ENODEV;
43 * base = mem->start;
61 * The given example reads the platform device's I/O-memory range from the
82 * .. code-block:: c
91 * return -ENODEV;
92 * base = mem->start;
107 * // Hot-unplug the device
153 bool detached = !ap->dev;
159 list_del(&ap->lh);
175 if (overlap(base, end, ap->base, ap->base + ap->size)) {
177 return -EBUSY;
184 return -ENOMEM;
187 ap->dev = dev;
188 ap->base = base;
189 ap->size = size;
190 ap->detach = detach;
191 INIT_LIST_HEAD(&ap->lh);
193 list_add(&ap->lh, &apertures);
206 * to do for firmware-based fb drivers, such as EFI, VESA or VGA. After
210 * For non-platform devices, a new callback would be required.
220 * devm_aperture_acquire_for_platform_device - Acquires ownership of an aperture
243 return devm_aperture_acquire(&pdev->dev, base, size, aperture_detach_platform_device);
256 struct device *dev = ap->dev;
261 if (!overlap(base, end, ap->base, ap->base + ap->size))
264 ap->dev = NULL; /* detach from device */
265 list_del(&ap->lh);
267 ap->detach(dev);
274 * aperture_remove_conflicting_devices - remove devices in the given range
277 * @name: a descriptive name of the requesting driver
307 * __aperture_remove_legacy_vga_devices - remove legacy VGA devices of a PCI devices
311 * framebuffer or a console. This is useful if you have a VGA-compatible
312 * PCI graphics device with framebuffers in non-BAR locations. Drivers
342 * aperture_remove_conflicting_pci_devices - remove existing framebuffers for PCI devices
344 * @name: a descriptive name of the requesting driver