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

Claim 10:
11. The resource address allocation method for PCI device according to claim 1, wherein the process of updating currently calculated resource address information of the target PCI bridge according to the resource fixed-address information of the target PCI device comprises:
after it is determined that the resource fixed-address information of a first PCI device is within the preset address interval, taking a fixed base address in the resource fixed-address information of the first PCI device as a first base address currently corresponding to the target PCI bridge, wherein the resource fixed-address information comprises a fixed base address and a resource length;
after it is determined that the resource fixed-address information of a second PCI device is within the preset address interval, taking a fixed base address in the resource fixed-address information of the second PCI device as a second base address currently corresponding to the target PCI bridge;
taking a smaller base address selected from the first base address and the second base address as a smallest base address currently corresponding to the target PCI bridge, and taking a larger base address selected from the first base address and the second base address as a largest base address currently corresponding to the target PCI bridge;
after it is successively determined that the resource fixed-address information of a target PCI device is within the preset address interval, determining whether a fixed base address in the resource fixed-address information of this target PCI device is smaller than the smallest base address or larger than the largest base address;
in a case that the fixed base address in the resource fixed-address information of this target PCI device is smaller than the smallest base address, updating the smallest base address currently corresponding to the target PCI bridge according to the fixed base address of this target PCI device; and
in a case that the fixed base address in the resource fixed-address information of this target PCI device is larger than the largest base address, updating the largest base address currently corresponding to the target PCI bridge according to the fixed base address of this target PCI device; and
correspondingly, the process of 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 comprises:
after the determination on the resource fixed-address information of all the PCI devices connected to the target PCI bridge is completed, taking the smallest base address currently corresponding to the target PCI bridge as a base address of the target PCI bridge, and taking a value of (the largest base address currently corresponding to the target PCI bridge+a resource length of a PCI device corresponding to the current largest base address−the smallest base address currently corresponding to the target PCI bridge) as a resource length of the target PCI bridge, so as to obtain the final updated resource address information of the target PCI bridge.