mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: nb/intel/i945/gma.c: Homogenize code for PCI IDs.
BUG=None BRANCH=None TEST=None Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/17174 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Ic01565cb730c49a5fe77c8f4990276970964f101 Reviewed-on: https://chromium-review.googlesource.com/404983 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
1f8caf5caa
commit
9492aa3bb0
1 changed files with 13 additions and 3 deletions
|
@ -748,16 +748,26 @@ static struct device_operations gma_func1_ops = {
|
||||||
.ops_pci = &gma_pci_ops,
|
.ops_pci = &gma_pci_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short pci_device_ids[] = { 0x27a2, 0x27ae, 0x2772, 0 };
|
static const unsigned short i945_gma_func0_ids[] = {
|
||||||
|
0x2772, /* 82945G/GZ Integrated Graphics Controller */
|
||||||
|
0x27a2, /* Mobile 945GM/GMS Express Integrated Graphics Controller*/
|
||||||
|
0x27ae, /* Mobile 945GSE Express Integrated Graphics Controller */
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
|
static const unsigned short i945_gma_func1_ids[] = {
|
||||||
|
0x27a6, /* Mobile 945GM/GMS/GME Express Integrated Graphics Controller */
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver i945_gma_func0_driver __pci_driver = {
|
static const struct pci_driver i945_gma_func0_driver __pci_driver = {
|
||||||
.ops = &gma_func0_ops,
|
.ops = &gma_func0_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.devices = pci_device_ids,
|
.devices = i945_gma_func0_ids,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct pci_driver i945_gma_func1_driver __pci_driver = {
|
static const struct pci_driver i945_gma_func1_driver __pci_driver = {
|
||||||
.ops = &gma_func1_ops,
|
.ops = &gma_func1_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = 0x27a6,
|
.devices = i945_gma_func1_ids,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue