blob: 6d40f7c7575e7a04b5f5ae1ed9dbd12400bbe452 [file] [log] [blame]
Furquan Shaikhc82aabc2020-04-23 13:59:00 -07001/* 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
7static const char *graphics_acpi_name(const struct device *dev)
8{
9 return "IGFX";
10}
11
12static 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
23static const unsigned short pci_device_ids[] = {
24 0,
25};
26
27static const struct pci_driver graphics_driver __pci_driver = {
28 .ops = &graphics_ops,
29 .vendor = PCI_VENDOR_ID_ATI,
30 .devices = pci_device_ids,
31};