mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Simon Glass](/assets/img/avatar_default.png)
Add a simple x86 PCI driver which uses standard functions provided by the architecture. Signed-off-by: Simon Glass <sjg@chromium.org>
25 lines
392 B
C
25 lines
392 B
C
/*
|
|
* Copyright (c) 2015 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <pci.h>
|
|
|
|
static const struct dm_pci_ops x86_pci_ops = {
|
|
};
|
|
|
|
static const struct udevice_id x86_pci_ids[] = {
|
|
{ .compatible = "x86,pci" },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(pci_x86) = {
|
|
.name = "pci_x86",
|
|
.id = UCLASS_PCI,
|
|
.of_match = x86_pci_ids,
|
|
.ops = &x86_pci_ops,
|
|
};
|