Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 2 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 6 | |
Elyes HAOUAS | bf0970e | 2019-03-21 11:10:03 +0100 | [diff] [blame] | 7 | #include "hudson.h" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 8 | |
| 9 | static void hda_init(struct device *dev) |
| 10 | { |
| 11 | } |
| 12 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 13 | static struct device_operations hda_audio_ops = { |
| 14 | .read_resources = pci_dev_read_resources, |
| 15 | .set_resources = pci_dev_set_resources, |
| 16 | .enable_resources = pci_dev_enable_resources, |
| 17 | .init = hda_init, |
Angel Pons | 1fc0edd | 2020-05-31 00:03:28 +0200 | [diff] [blame] | 18 | .ops_pci = &pci_dev_ops_pci, |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | static const struct pci_driver hdaaudio_driver __pci_driver = { |
| 22 | .ops = &hda_audio_ops, |
Felix Singer | 43b7f41 | 2022-03-07 04:34:52 +0100 | [diff] [blame] | 23 | .vendor = PCI_VID_AMD, |
| 24 | .device = PCI_DID_AMD_SB900_HDA, |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 25 | }; |