- 论坛徽章:
- 0
|
回复 12# embeddedlwp
呵呵,谢谢你的回复,这个代码,兄弟也已经早就看过了,在divers/pci/probe.c文件中,可是我读出来的值为:- pci_setup_device 0000:01:00.0: Resource 0: 0000000000008000..0000000000008007 [20101]
- pci_setup_device 0000:01:00.0: Resource 1: 0000000000008040..0000000000008043 [20101]
- pci_setup_device 0000:01:00.0: Resource 2: 0000000000008200..0000000000008207 [20101]
- pci_setup_device 0000:01:00.0: Resource 3: 0000000000008800..0000000000008803 [20101]
- pci_setup_device 0000:01:00.0: Resource 4: 0000000000900000..000000000090000f [20101]
- pci_setup_device 0000:01:00.0: Resource 5: 0000000000800000..00000000008003ff [20200]
复制代码 与后来在alloc_resource函数中内核打印出来的值不一致:- PCI: Allocating 0000:01:00.0: Resource 0: 00000000ff7f4000..00000000ff7f4007 [20101]
- pci_find_parent_resource 00000000ff7ec000..00000000ff7fbfff
- PCI: Allocating 0000:01:00.0: Resource 1: 00000000ff7f4040..00000000ff7f4043 [20101]
- pci_find_parent_resource 00000000ff7ec000..00000000ff7fbfff
- PCI: Allocating 0000:01:00.0: Resource 2: 00000000ff7f4200..00000000ff7f4207 [20101]
- pci_find_parent_resource 00000000ff7ec000..00000000ff7fbfff
- PCI: Allocating 0000:01:00.0: Resource 3: 00000000ff7f4800..00000000ff7f4803 [20101]
- pci_find_parent_resource 00000000ff7ec000..00000000ff7fbfff
- PCI: Allocating 0000:01:00.0: Resource 4: 00000000000ec000..00000000000ec00f [20101]
- PCI: Cannot allocate resource region 4 of device 0000:01:00.0, will remap
- PCI: Allocating 0000:01:00.0: Resource 5: 0000000000800000..00000000008003ff [20200]
- PCI: Cannot allocate resource region 5 of device 0000:01:00.0, will remap
复制代码 我想这两个地址是不是存在某种映射,或者经过了处理,但是怎么处理,在什么地方处理的?
|
|