drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.h
Extension
.h
Size
2006 bytes
Lines
51
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _VMWGFX_DEVCAPS_H_
#define _VMWGFX_DEVCAPS_H_

#include "vmwgfx_drv.h"

#include "device_include/svga_reg.h"

int vmw_devcaps_create(struct vmw_private *vmw);
void vmw_devcaps_destroy(struct vmw_private *vmw);
uint32_t vmw_devcaps_size(const struct vmw_private *vmw, bool gb_aware);
int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware,
		     void *dst, uint32_t dst_size);

static inline uint32_t vmw_devcap_get(struct vmw_private *vmw,
				      uint32_t devcap)
{
	bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
	if (gb_objects)
		return vmw->devcaps[devcap];
	return 0;
}

#endif

Annotation

Implementation Notes