pci_x86.c 486 B

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