pci_machdep.h
来自「一个很好的嵌入式linux平台下的bootloader」· C头文件 代码 · 共 45 行
H
45 行
/* * Copyright (c) 2001,2002,2003 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;/* * The number of rooted bus trees to be configured (i.e., host bridges * with independent address spaces). */#define PCI_HOST_PORTS 2/* All mappings through the PCI host bridge use match bits mode. */#define PHYS_TO_PCI(a) ((uint32_t) (a) | 0x20000000)#define PCI_TO_PHYS(a) ((uint32_t) (a) & 0xDFFFFFFF)#endif /* _PCI_MACHDEP_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?