summaryrefslogtreecommitdiff
path: root/src/soc/intel/snowridge/nis.c
blob: d716c3c9835a69610cae471356b62d77f4d1ce85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>

#include "ramstage.h"

static struct device_operations snr_nis_ops = {
	.read_resources = pciexp_pf_read_resources,
	.set_resources = pci_dev_set_resources,
	.enable_resources = pci_dev_enable_resources,
	.final = pci_dev_request_bus_master,
	.ops_pci = &pci_dev_ops_pci,
};

static const unsigned short snr_nis_ids[] = {
	PCI_DID_INTEL_SNR_NIS1890,
	PCI_DID_INTEL_SNR_NIS1891,
	PCI_DID_INTEL_SNR_NIS1892,
	PCI_DID_INTEL_SNR_NIS1895,
	0
};

static const struct pci_driver snr_nis_driver __pci_driver = {
	.ops = &snr_nis_ops,
	.vendor = PCI_VID_INTEL,
	.devices = snr_nis_ids
};