1 #ifndef _PCI_ID_DRIVER_MAP_H_
2 #define _PCI_ID_DRIVER_MAP_H_
7 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
10 #if !defined(DRIVER_MAP_DRI2_ONLY) && !defined(DRIVER_MAP_GALLIUM_ONLY)
11 static const int i810_chip_ids
[] = {
12 #define CHIPSET(chip, desc, misc) chip,
13 #include "pci_ids/i810_pci_ids.h"
18 static const int i915_chip_ids
[] = {
19 #define CHIPSET(chip, desc, misc) chip,
20 #include "pci_ids/i915_pci_ids.h"
24 static const int i965_chip_ids
[] = {
25 #define CHIPSET(chip, desc, misc) chip,
26 #include "pci_ids/i965_pci_ids.h"
30 #ifndef DRIVER_MAP_GALLIUM_ONLY
31 static const int r100_chip_ids
[] = {
32 #define CHIPSET(chip, name, family) chip,
33 #include "pci_ids/radeon_pci_ids.h"
37 static const int r200_chip_ids
[] = {
38 #define CHIPSET(chip, name, family) chip,
39 #include "pci_ids/r200_pci_ids.h"
44 static const int r300_chip_ids
[] = {
45 #define CHIPSET(chip, name, family) chip,
46 #include "pci_ids/r300_pci_ids.h"
50 static const int r600_chip_ids
[] = {
51 #define CHIPSET(chip, name, family) chip,
52 #include "pci_ids/r600_pci_ids.h"
62 #if !defined(DRIVER_MAP_DRI2_ONLY) && !defined(DRIVER_MAP_GALLIUM_ONLY)
63 { 0x8086, "i810", i810_chip_ids
, ARRAY_SIZE(i810_chip_ids
) },
65 { 0x8086, "i915", i915_chip_ids
, ARRAY_SIZE(i915_chip_ids
) },
66 { 0x8086, "i965", i965_chip_ids
, ARRAY_SIZE(i965_chip_ids
) },
67 #ifndef DRIVER_MAP_GALLIUM_ONLY
68 { 0x1002, "radeon", r100_chip_ids
, ARRAY_SIZE(r100_chip_ids
) },
69 { 0x1002, "r200", r200_chip_ids
, ARRAY_SIZE(r200_chip_ids
) },
71 { 0x1002, "r300", r300_chip_ids
, ARRAY_SIZE(r300_chip_ids
) },
72 { 0x1002, "r600", r600_chip_ids
, ARRAY_SIZE(r600_chip_ids
) },
73 { 0x10de, "nouveau", NULL
, -1 },
74 { 0x0000, NULL
, NULL
, 0 },
77 #endif /* _PCI_ID_DRIVER_MAP_H_ */