blob: 196c5acb265eeb5d3364b5619759899bc756ccad [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03002
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03003#include <device/device.h>
4#include <device/pci.h>
5#include <device/pci_ids.h>
Elyes HAOUASbf0970e2019-03-21 11:10:03 +01006
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03007#include "hudson.h"
8
WANG Siyuanf2dfef02015-05-20 14:41:01 +08009static const unsigned short pci_device_ids[] = {
Felix Singer43b7f412022-03-07 04:34:52 +010010 PCI_DID_AMD_SB900_HDA,
11 PCI_DID_AMD_CZ_HDA,
WANG Siyuanf2dfef02015-05-20 14:41:01 +080012 0
13};
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030014
15static void hda_init(struct device *dev)
16{
17}
18
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030019static struct device_operations hda_audio_ops = {
20 .read_resources = pci_dev_read_resources,
21 .set_resources = pci_dev_set_resources,
22 .enable_resources = pci_dev_enable_resources,
23 .init = hda_init,
Angel Pons1fc0edd2020-05-31 00:03:28 +020024 .ops_pci = &pci_dev_ops_pci,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030025};
26
27static const struct pci_driver hdaaudio_driver __pci_driver = {
28 .ops = &hda_audio_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010029 .vendor = PCI_VID_AMD,
WANG Siyuanf2dfef02015-05-20 14:41:01 +080030 .devices = pci_device_ids,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030031};