XenevaOS
Loading...
Searching...
No Matches
Macros
drm_module.h File Reference
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <drm/drm_drv.h>
Include dependency graph for drm_module.h:

Go to the source code of this file.

Macros

#define drm_module_pci_driver(__pci_drv)    module_driver(__pci_drv, drm_pci_register_driver, pci_unregister_driver)
 
#define drm_module_pci_driver_if_modeset(__pci_drv, __modeset)
 
#define drm_module_platform_driver(__platform_drv)
 

Macro Definition Documentation

◆ drm_module_pci_driver

#define drm_module_pci_driver (   __pci_drv)     module_driver(__pci_drv, drm_pci_register_driver, pci_unregister_driver)

drm_module_pci_driver - Register a DRM driver for PCI-based devices @__pci_drv: the PCI driver structure

Registers a DRM driver for devices on the PCI bus. The helper macro behaves like module_pci_driver() but tests the state of drm_firmware_drivers_only(). For more complex module initialization, use module_init() and module_exit() directly.

Each module may only use this macro once. Calling it replaces module_init() and module_exit().

◆ drm_module_pci_driver_if_modeset

#define drm_module_pci_driver_if_modeset (   __pci_drv,
  __modeset 
)
Value:
module_driver(__pci_drv, drm_pci_register_driver_if_modeset, \
drm_pci_unregister_driver_if_modeset, __modeset)
#define module_driver(__driver, __register, __unregister,...)
Definition module.h:62

drm_module_pci_driver_if_modeset - Register a DRM driver for PCI-based devices @__pci_drv: the PCI driver structure @__modeset: an additional parameter that disables the driver

This macro is deprecated and only provided for existing drivers. For new drivers, use drm_module_pci_driver().

Registers a DRM driver for devices on the PCI bus. The helper macro behaves like drm_module_pci_driver() with an additional driver-specific flag. If __modeset is 0, the driver has been disabled, if __modeset is -1 the driver state depends on the global DRM state. For all other values, the PCI driver has been enabled. The default should be -1.

◆ drm_module_platform_driver

#define drm_module_platform_driver (   __platform_drv)
Value:
module_driver(__platform_drv, drm_platform_driver_register, \
void platform_driver_unregister(struct platform_driver *drv)

drm_module_platform_driver - Register a DRM driver for platform devices @__platform_drv: the platform driver structure

Registers a DRM driver for devices on the platform bus. The helper macro behaves like module_platform_driver() but tests the state of drm_firmware_drivers_only(). For more complex module initialization, use module_init() and module_exit() directly.

Each module may only use this macro once. Calling it replaces module_init() and module_exit().