1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpigen.h>
4 #include <device/device.h>
5 #include <device/pci.h>
6 #include <amdblocks/sata.h>
8 static const char *sata_acpi_name(const struct device
*dev
)
13 struct device_operations amd_sata_ops
= {
14 .read_resources
= pci_dev_read_resources
,
15 .set_resources
= pci_dev_set_resources
,
16 .enable_resources
= pci_dev_enable_resources
,
17 .init
= soc_enable_sata_features
,
18 .ops_pci
= &pci_dev_ops_pci
,
19 .acpi_name
= sata_acpi_name
,
20 .acpi_fill_ssdt
= acpi_device_write_pci_dev
,