zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2010 Advanced Micro Devices, Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 14 | */ |
| 15 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 16 | #include <device/device.h> |
| 17 | #include <device/pci.h> |
| 18 | #include <device/pci_ids.h> |
| 19 | #include <device/pci_ops.h> |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 20 | |
Elyes HAOUAS | bf0970e | 2019-03-21 11:10:03 +0100 | [diff] [blame^] | 21 | #include "hudson.h" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 22 | |
| 23 | static void hda_init(struct device *dev) |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | static struct pci_operations lops_pci = { |
| 28 | .set_subsystem = pci_dev_set_subsystem, |
| 29 | }; |
| 30 | |
| 31 | static struct device_operations hda_audio_ops = { |
| 32 | .read_resources = pci_dev_read_resources, |
| 33 | .set_resources = pci_dev_set_resources, |
| 34 | .enable_resources = pci_dev_enable_resources, |
| 35 | .init = hda_init, |
| 36 | .scan_bus = 0, |
| 37 | .ops_pci = &lops_pci, |
| 38 | }; |
| 39 | |
| 40 | static const struct pci_driver hdaaudio_driver __pci_driver = { |
| 41 | .ops = &hda_audio_ops, |
| 42 | .vendor = PCI_VENDOR_ID_AMD, |
Kyösti Mälkki | 9d9a552 | 2016-11-19 22:14:59 +0200 | [diff] [blame] | 43 | .device = PCI_DEVICE_ID_AMD_SB900_HDA, |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 44 | }; |