drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h

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

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h
Extension
.h
Size
44509 bytes
Lines
1556
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 _SVGA3D_TYPES_H_
#define _SVGA3D_TYPES_H_

#include "vm_basic_types.h"

#define SVGA3D_INVALID_ID ((uint32)-1)

#define SVGA3D_RESOURCE_TYPE_MIN 1
#define SVGA3D_RESOURCE_BUFFER 1
#define SVGA3D_RESOURCE_TEXTURE1D 2
#define SVGA3D_RESOURCE_TEXTURE2D 3
#define SVGA3D_RESOURCE_TEXTURE3D 4
#define SVGA3D_RESOURCE_TEXTURECUBE 5
#define SVGA3D_RESOURCE_TYPE_DX10_MAX 6
#define SVGA3D_RESOURCE_BUFFEREX 6
#define SVGA3D_RESOURCE_TYPE_MAX 7
typedef uint32 SVGA3dResourceType;

typedef uint8 SVGABool8;
typedef uint32 SVGA3dBool;
typedef uint32 SVGA3dColor;

typedef uint32 SVGA3dSurfaceId;

#pragma pack(push, 1)
typedef struct {
	uint32 numerator;
	uint32 denominator;
} SVGA3dFraction64;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct SVGA3dCopyRect {
	uint32 x;
	uint32 y;
	uint32 w;
	uint32 h;
	uint32 srcx;
	uint32 srcy;
} SVGA3dCopyRect;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct SVGA3dCopyBox {
	uint32 x;
	uint32 y;
	uint32 z;
	uint32 w;
	uint32 h;
	uint32 d;
	uint32 srcx;
	uint32 srcy;
	uint32 srcz;
} SVGA3dCopyBox;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct SVGA3dRect {
	uint32 x;
	uint32 y;
	uint32 w;
	uint32 h;
} SVGA3dRect;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct {
	uint32 x;
	uint32 y;
	uint32 z;
	uint32 w;
	uint32 h;
	uint32 d;
} SVGA3dBox;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct {
	int32 x;
	int32 y;
	int32 z;
	int32 w;
	int32 h;
	int32 d;
} SVGA3dSignedBox;
#pragma pack(pop)

#pragma pack(push, 1)
typedef struct {
	uint32 x;

Annotation

Implementation Notes