Debian Codegraph @

src/soc/intel/braswell/sata.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/pci_devs.h>
4 #include <soc/ramstage.h>
5 #include <soc/sata.h>
6 #include <device/device.h>
7 #include <device/pci.h>
8 #include <device/pci_ids.h>
9
10 #include "chip.h"
11
12 typedef struct soc_intel_braswell_config config_t;
13
14 static void sata_init(struct device *dev)
15 {
16 }
17
18 static void sata_enable(struct device *dev)
19 {
20 southcluster_enable_dev(dev);
21 }
22
23 static struct device_operations sata_ops = {
24 .read_resources = pci_dev_read_resources,
25 .set_resources = pci_dev_set_resources,
26 .enable_resources = pci_dev_enable_resources,
27 .init = sata_init,
28 .enable = sata_enable,
29 .ops_pci = &soc_pci_ops,
30 };
31
32 static const unsigned short pci_device_ids[] = {
33 AHCI1_DEVID, /* AHCI */
34 0,
35 };
36
37 static const struct pci_driver soc_sata __pci_driver = {
38 .ops = &sata_ops,
39 .vendor = PCI_VID_INTEL,
40 .devices = pci_device_ids,
41 };