coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hda.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/device.h>
4 #include <device/pci.h>
5 #include <device/pci_ids.h>
6 
7 #include "hudson.h"
8 
9 static void hda_init(struct device *dev)
10 {
11 }
12 
13 static struct device_operations hda_audio_ops = {
15  .set_resources = pci_dev_set_resources,
16  .enable_resources = pci_dev_enable_resources,
17  .init = hda_init,
18  .ops_pci = &pci_dev_ops_pci,
19 };
20 
21 static const struct pci_driver hdaaudio_driver __pci_driver = {
22  .ops = &hda_audio_ops,
23  .vendor = PCI_VID_AMD,
24  .device = PCI_DID_AMD_SB900_HDA,
25 };
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
#define PCI_DID_AMD_SB900_HDA
Definition: pci_ids.h:524
#define PCI_VID_AMD
Definition: pci_ids.h:496
static void hda_init(struct device *dev)
Definition: hda.c:9
static const struct pci_driver hdaaudio_driver __pci_driver
Definition: hda.c:21
static struct device_operations hda_audio_ops
Definition: hda.c:13
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107