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[] = { |
| 24 | 0, |
| 25 | }; |
| 26 | |
| 27 | static const struct pci_driver graphics_driver __pci_driver = { |
| 28 | .ops = &graphics_ops, |
| 29 | .vendor = PCI_VENDOR_ID_ATI, |
| 30 | .devices = pci_device_ids, |
| 31 | }; |