pci_x86.c 489 B

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