]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
a219daea SG |
2 | /* |
3 | * Copyright (c) 2015 Google, Inc | |
a219daea SG |
4 | */ |
5 | ||
6 | #include <common.h> | |
7 | #include <dm.h> | |
8 | #include <pci.h> | |
945cae79 | 9 | #include <asm/pci.h> |
a219daea | 10 | |
945cae79 SG |
11 | static const struct dm_pci_ops pci_x86_ops = { |
12 | .read_config = pci_x86_read_config, | |
13 | .write_config = pci_x86_write_config, | |
a219daea SG |
14 | }; |
15 | ||
945cae79 SG |
16 | static const struct udevice_id pci_x86_ids[] = { |
17 | { .compatible = "pci-x86" }, | |
a219daea SG |
18 | { } |
19 | }; | |
20 | ||
21 | U_BOOT_DRIVER(pci_x86) = { | |
22 | .name = "pci_x86", | |
23 | .id = UCLASS_PCI, | |
945cae79 SG |
24 | .of_match = pci_x86_ids, |
25 | .ops = &pci_x86_ops, | |
a219daea | 26 | }; |