Furquan Shaikh | c82aabc | 2020-04-23 13:59:00 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* This file is part of the coreboot project. */ |
| 3 | |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
| 6 | |
| 7 | static const char *graphics_acpi_name(const struct device *dev) |
| 8 | { |
| 9 | return "IGFX"; |
| 10 | } |
| 11 | |
| 12 | static const struct device_operations graphics_ops = { |
| 13 | .read_resources = pci_dev_read_resources, |
| 14 | .set_resources = pci_dev_set_resources, |
| 15 | .enable_resources = pci_dev_enable_resources, |
| 16 | .init = pci_dev_init, |
| 17 | .ops_pci = &pci_dev_ops_pci, |
| 18 | .write_acpi_tables = pci_rom_write_acpi_tables, |
| 19 | .acpi_fill_ssdt = pci_rom_ssdt, |
| 20 | .acpi_name = graphics_acpi_name, |
| 21 | }; |
| 22 | |
| 23 | static const unsigned short pci_device_ids[] = { |
Furquan Shaikh | 9e1a49c | 2020-04-23 14:01:12 -0700 | [diff] [blame^] | 24 | PCI_DEVICE_ID_AMD_FAM17H_GPU, |
Furquan Shaikh | c82aabc | 2020-04-23 13:59:00 -0700 | [diff] [blame] | 25 | 0, |
| 26 | }; |
| 27 | |
| 28 | static const struct pci_driver graphics_driver __pci_driver = { |
| 29 | .ops = &graphics_ops, |
| 30 | .vendor = PCI_VENDOR_ID_ATI, |
| 31 | .devices = pci_device_ids, |
| 32 | }; |