2 * Copyright (c) 2001,2002,2003 SiByte, Inc. All rights reserved.
5 #ifndef _PCI_MACHDEP_H_
6 #define _PCI_MACHDEP_H_
9 * Machine-specific definitions for PCI autoconfiguration.
11 * See the comments in pci_machdep.c for more explanation.
14 #include "lib_types.h"
17 * Address types, as integers.
19 typedef uint32_t pci_addr_t
;
20 typedef uint64_t phys_addr_t
; /* ZBbus physical addresses. */
23 * Root of the bus hierarchy, one per host bridge.
25 typedef struct pciroot_s
*pciroot_t
;
30 * Configuration tag; created from a {bus,device,function} triplet by
31 * pci_make_tag(), and passed to pci_conf_read() and pci_conf_write().
33 typedef uint32_t pcitag_t
;
36 * Type of a value read from or written to a configuration register.
39 typedef uint32_t pcireg_t
;
42 * The number of rooted bus trees to be configured (i.e., host bridges
43 * with independent address spaces).
45 #define PCI_HOST_PORTS 1
46 #define PCI_PORTMAX 0x00
48 #endif /* _PCI_MACHDEP_H_ */