diff options
author | root <root@lamia.panaceas.james.local> | 2015-12-19 13:13:57 +0000 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2015-12-19 14:18:03 +0000 |
commit | 1a2238d1bddc823df06f67312d96ccf9de2893cc (patch) | |
tree | c58a3944d674a667f133ea5a730f5037e57d3d2e /cfe/cfe/pci/pci_machdep.h | |
download | bootloader-1a2238d1bddc823df06f67312d96ccf9de2893cc.tar.gz bootloader-1a2238d1bddc823df06f67312d96ccf9de2893cc.tar.bz2 bootloader-1a2238d1bddc823df06f67312d96ccf9de2893cc.zip |
CFE from danitool [without hostTools dir]: https://mega.nz/#!mwZyFK7a!CPT3BKC8dEw29kubtdYxhB91G9vIIismTkgzQ3iUy3k
Diffstat (limited to 'cfe/cfe/pci/pci_machdep.h')
-rw-r--r-- | cfe/cfe/pci/pci_machdep.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cfe/cfe/pci/pci_machdep.h b/cfe/cfe/pci/pci_machdep.h new file mode 100644 index 0000000..c8b57ec --- /dev/null +++ b/cfe/cfe/pci/pci_machdep.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2001,2002 SiByte, Inc. All rights reserved. + */ + +#ifndef _PCI_MACHDEP_H_ +#define _PCI_MACHDEP_H_ + +/* + * Machine-specific definitions for PCI autoconfiguration. + * + * See the comments in pci_machdep.c for more explanation. + */ + +#include "lib_types.h" + +/* + * Address types, as integers. + */ + +typedef uint32_t pci_addr_t; +typedef uint64_t phys_addr_t; /* ZBbus physical addresses. */ + +/* + * Configuration tag; created from a {bus,device,function} triplet by + * pci_make_tag(), and passed to pci_conf_read() and pci_conf_write(). + */ +typedef uint32_t pcitag_t; + +/* + * Type of a value read from or written to a configuration register. + * Always 32 bits. + */ +typedef uint32_t pcireg_t; + +#endif /* _PCI_MACHDEP_H_ */ |