]> Git Repo - J-u-boot.git/blame - drivers/pci/pci_x86.c
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / drivers / pci / pci_x86.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
a219daea
SG
2/*
3 * Copyright (c) 2015 Google, Inc
a219daea
SG
4 */
5
a219daea
SG
6#include <dm.h>
7#include <pci.h>
945cae79 8#include <asm/pci.h>
a219daea 9
c4e72c4a
SG
10static int _pci_x86_read_config(const struct udevice *bus, pci_dev_t bdf,
11 uint offset, ulong *valuep,
12 enum pci_size_t size)
a827ba91
SG
13{
14 return pci_x86_read_config(bdf, offset, valuep, size);
15}
16
17static int _pci_x86_write_config(struct udevice *bus, pci_dev_t bdf,
18 uint offset, ulong value, enum pci_size_t size)
19{
20 return pci_x86_write_config(bdf, offset, value, size);
21}
22
945cae79 23static const struct dm_pci_ops pci_x86_ops = {
a827ba91
SG
24 .read_config = _pci_x86_read_config,
25 .write_config = _pci_x86_write_config,
a219daea
SG
26};
27
945cae79
SG
28static const struct udevice_id pci_x86_ids[] = {
29 { .compatible = "pci-x86" },
a219daea
SG
30 { }
31};
32
33U_BOOT_DRIVER(pci_x86) = {
34 .name = "pci_x86",
35 .id = UCLASS_PCI,
945cae79
SG
36 .of_match = pci_x86_ids,
37 .ops = &pci_x86_ops,
a219daea 38};
This page took 0.392799 seconds and 5 git commands to generate.