• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 
4 #ifndef _DEVICE_DEVICE_H
5 #define _DEVICE_DEVICE_H
6 
7 #include <pci/pci.h>
8 
9 typedef struct pci_dev *pci_devfn_t;
10 
11 #define pci_read_config8 pci_read_byte
12 #define pci_read_config16 pci_read_word
13 #define pci_read_config32 pci_read_long
14 
15 #define PCI_CAP_ID_EHCI_DEBUG PCI_CAP_ID_DBG
16 
17 extern struct pci_access *pci_access;
18 #define PCI_DEV(b, d, f) pci_get_dev(pci_access, 0, b, d, f)
19 
20 #endif
21