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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com