2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; version 2 of the License.
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
13 #ifndef _DEVICE_DEVICE_H
14 #define _DEVICE_DEVICE_H
18 typedef struct pci_dev
*pci_devfn_t
;
20 #define pci_read_config8 pci_read_byte
21 #define pci_read_config16 pci_read_word
22 #define pci_read_config32 pci_read_long
24 #define PCI_CAP_ID_EHCI_DEBUG PCI_CAP_ID_DBG
26 extern struct pci_access
*pci_access
;
27 #define PCI_DEV(b, d, f) pci_get_dev(pci_access, 0, b, d, f)