drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c
Extension
.c
Size
54021 bytes
Lines
1725
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

struct nvkm_device_pci_device {
	u16 device;
	const char *name;
	const struct nvkm_device_pci_vendor *vendor;
};

struct nvkm_device_pci_vendor {
	u16 vendor;
	u16 device;
	const char *name;
	const struct nvkm_device_quirk quirk;
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0189[] = {
	/* Apple iMac G4 NV18 */
	{ 0x10de, 0x0010, NULL, { .tv_gpio = 4 } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_01f0[] = {
	/* MSI nForce2 IGP */
	{ 0x1462, 0x5710, NULL, { .tv_pin_mask = 0xc } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0322[] = {
	/* Zotac FX5200 */
	{ 0x19da, 0x1035, NULL, { .tv_pin_mask = 0xc } },
	{ 0x19da, 0x2035, NULL, { .tv_pin_mask = 0xc } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_05e7[] = {
	{ 0x10de, 0x0595, "Tesla T10 Processor" },
	{ 0x10de, 0x068f, "Tesla T10 Processor" },
	{ 0x10de, 0x0697, "Tesla M1060" },
	{ 0x10de, 0x0714, "Tesla M1060" },
	{ 0x10de, 0x0743, "Tesla M1060" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0609[] = {
	{ 0x106b, 0x00a7, "GeForce 8800 GS" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_062e[] = {
	{ 0x106b, 0x0605, "GeForce GT 130" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0649[] = {
	{ 0x1043, 0x202d, "GeForce GT 220M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0652[] = {
	{ 0x152d, 0x0850, "GeForce GT 240M LE" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0654[] = {
	{ 0x1043, 0x14a2, "GeForce GT 320M" },
	{ 0x1043, 0x14d2, "GeForce GT 320M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0655[] = {
	{ 0x106b, 0x0633, "GeForce GT 120" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0656[] = {
	{ 0x106b, 0x0693, "GeForce GT 120" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06d1[] = {

Annotation

Implementation Notes