| 1 |
|
| 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 const unsigned short pci_device_ids[] = { |
| 10 |
PCI_DID_AMD_SB900_HDA, |
| 11 |
PCI_DID_AMD_CZ_HDA, |
| 12 |
0 |
| 13 |
}; |
| 14 |
|
| 15 |
static void hda_init(struct device *dev) |
| 16 |
{ |
| 17 |
} |
| 18 |
|
| 19 |
static 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, |
| 24 |
.ops_pci = &pci_dev_ops_pci, |
| 25 |
}; |
| 26 |
|
| 27 |
static const struct pci_driver hdaaudio_driver __pci_driver = { |
| 28 |
.ops = &hda_audio_ops, |
| 29 |
.vendor = PCI_VID_AMD, |
| 30 |
.devices = pci_device_ids, |
| 31 |
}; |