blob: 06384c7bc349929e99c8fd1aa9a14b41fdf99eb2 [file] [log] [blame]
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * * Copyright (C) 2016 Google Inc.
5 * * Copyright (C) 2017 Intel Corporation.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <device/device.h>
18#include <device/pci.h>
19#include <device/pci_ids.h>
20
21static struct device_operations dsp_dev_ops = {
22 .read_resources = &pci_dev_read_resources,
23 .set_resources = &pci_dev_set_resources,
24 .enable_resources = &pci_dev_enable_resources,
25 .scan_bus = &scan_static_bus,
26};
27
28static const unsigned short pci_device_ids[] = {
29 PCI_DEVICE_ID_INTEL_APL_AUDIO,
30 PCI_DEVICE_ID_INTEL_CNL_AUDIO,
31 PCI_DEVICE_ID_INTEL_GLK_AUDIO,
32 0,
33};
34
35static const struct pci_driver dsp_driver __pci_driver = {
36 .ops = &dsp_dev_ops,
37 .vendor = PCI_VENDOR_ID_INTEL,
38 .devices = pci_device_ids,
39};