Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

PCI bus equipment enumeration method and device

A PCI device and PCI bus technology, applied in the bus field, can solve the problems of long enumeration scan time and PMON failure to start, etc., to achieve the effect of improving user experience, improving work efficiency, and improving scanning efficiency

Active Publication Date: 2020-03-03
龙芯中科(北京)信息技术有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the embodiments of the present invention provide a PCI bus device enumeration method and device to solve the problem that the PCI bus device enumeration scan time is long and PMON cannot be started

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • PCI bus equipment enumeration method and device
  • PCI bus equipment enumeration method and device
  • PCI bus equipment enumeration method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] A PCI bus device enumeration method provided by an embodiment of the present invention is introduced in detail.

[0067] refer to figure 1 , shows a flow chart of steps of a PCI bus device enumeration method in an embodiment of the present invention. The methods include:

[0068] Step 101, when scanning the PCI bus, determine whether the scanning requirement is to scan all the buses.

[0069] In this embodiment, the PCI bus device enumeration includes two stages of PCI scanning and space allocation. In the prior art, PCI scanning usually scans all buses. Since the PCI bus has 256 buses in total, each bus can connect 32 PCI devices. , so when scanning all buses, there are problems of long scanning time and low scanning efficiency. In the embodiment of the present invention, scan according to the scanning requirement (being actual situation) of PCI bus, when needing to scan all buses, all buses are scanned, when not needing to scan all buses, only part bus is scanned, ...

Embodiment 2

[0077] refer to figure 2 , shows a flow chart of steps of a PCI bus device enumeration method in an embodiment of the present invention. The methods include:

[0078] Step 201, judging whether the data corresponding to the preset first environment variable is empty.

[0079] In this embodiment, the first environment variable can be set in advance when the BIOS starts to enter the kernel for the first time; subsequently, it can be determined whether the data corresponding to the first environment variable is empty according to whether the first environment variable is defined. For example, the preset first environment variable is fastboot, and the data corresponding to the first environment variable fastboot is returned by the getenv function. When the first environment variable has been defined, the data corresponding to the first environment variable fastboot returned by the getenv function is not empty; When the first environment variable is not defined, the getenv functi...

Embodiment 3

[0110] A PCI bus device enumeration device provided by an embodiment of the present invention is introduced in detail.

[0111] refer to image 3 , which shows a schematic structural diagram of an apparatus for enumerating PCI bus devices in an embodiment of the present invention. The devices include:

[0112] Scanning demand judging module 301, is used for when scanning PCI bus, judges whether scanning demand is to scan all buses;

[0113] An information acquisition module 302, configured to acquire bus information of a bus connected to a PCI device and device information of the PCI device when it is determined that the scanning requirement is to scan a part of the bus;

[0114] A space allocation module 303, configured to allocate space for the PCI device according to the bus information and the device information.

[0115] Optionally, the scan requirement judging module 301 includes:

[0116] The environment variable judging submodule is used to judge whether the data c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a PCI bus equipment enumeration method and a PCI bus equipment enumeration device. The method comprises the following steps: when scanning a PCI bus, judging whether a scanningrequirement is to scan all buses or not; acquiring bus information of a bus connected with PCI equipment and equipment information of the PCI equipment when judging that the scanning requirement is toscan part of the bus; and distributing space for the PCI equipment according to the bus information and the equipment information. According to the embodiment of the invention, the scanning efficiency is improved, the problem that the PMON cannot be started is solved, the user experience is improved, and the working efficiency of developers is improved.

Description

technical field [0001] The invention relates to the field of bus technology, in particular to a PCI bus device enumeration method and device. Background technique [0002] MIPS (Microprocessor without interlocked piped stages, microprocessor without internal interlocking pipeline level) architecture is a general RISC (Reduced Instruction Set Computer, reduced instruction set computer) architecture, CPU (Central Processing Unit, central processor unit) has the characteristics of high performance and low power consumption. Applications and other products have broad market application prospects. [0003] PMON (Prom Monitor) is applied to the BIOS (Basic Input Output System) on the MIPS architecture processor. PMON has powerful functions, including hardware initialization, operating system booting, and software and hardware testing. [0004] At present, PMON's PCI (Peripheral Component Interconnect, external device interconnect) bus device enumeration has the problem of long s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/40G06F13/42
CPCG06F13/4022G06F13/4221G06F2213/0024
Inventor 霍栋博王玉钱
Owner 龙芯中科(北京)信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products