1#undef NDEBUG
2
3#include <stdint.h>
4#include <assert.h>
5
6#include "intel_device_info.h"
7#include "intel_device_info_test.h"
8
9int
10main(int argc, char *argv[])
11{
12   struct {
13      uint32_t pci_id;
14      const char *name;
15   } chipsets[] = {
16#undef CHIPSET
17#define CHIPSET(id, family, family_str, str_name) { .pci_id = id, .name = str_name, },
18#include "pci_ids/iris_pci_ids.h"
19#include "pci_ids/crocus_pci_ids.h"
20   };
21
22   for (uint32_t i = 0; i < ARRAY_SIZE(chipsets); i++) {
23      struct intel_device_info devinfo = { 0, };
24
25      assert(intel_get_device_info_from_pci_id(chipsets[i].pci_id, &devinfo));
26
27      verify_device_info(&devinfo);
28   }
29
30   return 0;
31}
32