Patent ID: 11924116
Assignee: SHANDONG YINGXIN COMPUTER TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H  G  Y | IPC G  H

Claim 12:
13. A resource address allocation apparatus for PCI device, comprising:
a memory, configured to store a computer program; and
a processor, configured to execute the computer program to implement steps of a resource address allocation method for PCI device, wherein the steps of the resource address allocation method for PCI device comprise:
calculating resource address information of PCI devices with no fixed resource allocation demand in a system on the basis of a dynamic allocation policy according to connection information and resource demand information of PCI bridges and the PCI devices in the system;
determining, according to a content of a preset configuration file, whether PCI devices connected to a target PCI bridge are all PCI devices with fixed resource allocation demand, wherein the preset configuration file comprises resource fixed-address information of PCI devices with a fixed allocation manner, and the target PCI bridge is any one of the PCI bridges;
in a case that the PCI devices connected to the target PCI bridge are all PCI devices with fixed resource allocation demand, performing resource address allocation on a target PCI device according to the resource fixed-address information of the target PCI device, and determining whether the resource fixed-address information of the target PCI device is within a preset address interval, wherein the target PCI device is any one of the PCI devices;
in a case that the resource fixed-address information of the target PCI device is not within the preset address interval, skipping updating currently calculated resource address information of the target PCI bridge;
in a case that the resource fixed-address information of the target PCI device is within the preset address interval, updating currently calculated resource address information of the target PCI bridge according to the resource fixed-address information of the target PCI device;
obtaining final updated resource address information of the target PCI bridge after determination on the resource fixed-address information of all the PCI devices connected to the target PCI bridge is completed, and performing resource address allocation on the target PCI bridge according to the final updated resource address information of the target PCI bridge; and
in a case that the PCI devices connected to the target PCI bridge do not include a PCI device with fixed resource allocation demand, recursively calculating resource address information of the target PCI bridge according to the resource address information of all the PCI devices connected to the target PCI bridge, and performing resource address allocation according to the resource address information of the target PCI bridge and the resource address information of the PCI devices connected to the target PCI bridge.