| 1 |
|
| 2 |
|
| 3 |
#include <acpi/acpigen.h> |
| 4 |
#include <device/device.h> |
| 5 |
#include <device/pci.h> |
| 6 |
#include <amdblocks/sata.h> |
| 7 |
|
| 8 |
static const char *sata_acpi_name(const struct device *dev) |
| 9 |
{ |
| 10 |
return "STCR"; |
| 11 |
} |
| 12 |
|
| 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, |
| 21 |
}; |