CN102479164A - Addressing method of new-generation peripheral component interconnect adapter card - Google Patents

Addressing method of new-generation peripheral component interconnect adapter card Download PDF

Info

Publication number
CN102479164A
CN102479164A CN2010105908630A CN201010590863A CN102479164A CN 102479164 A CN102479164 A CN 102479164A CN 2010105908630 A CN2010105908630 A CN 2010105908630A CN 201010590863 A CN201010590863 A CN 201010590863A CN 102479164 A CN102479164 A CN 102479164A
Authority
CN
China
Prior art keywords
generation
new
hardware
adapter
periphery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105908630A
Other languages
Chinese (zh)
Inventor
韩雪山
金志仁
陈志丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN2010105908630A priority Critical patent/CN102479164A/en
Publication of CN102479164A publication Critical patent/CN102479164A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an addressing method of a new-generation peripheral component interconnect adapter card. A driver which is provided with the new-generation peripheral component interconnect adapter card is loaded in a window operation system. A driving method comprises the following steps: starting a main board and obtaining the new-generation peripheral component interconnect adapter card connected with the main board, through a basic input/output system; storing the hardware information of the new-generation peripheral component interconnect adapter card in a hardware lookup table; running a hardware loading program through the window operation system and adding the hardware information recorded in the hardware lookup table in a hardware driver; and running a target program and calling the corresponding new-generation peripheral component interconnect adapter card according to the hardware driver and the recorded hardware information.

Description

New periphery from generation to generation connects the addressing method of adapter
Technical field
The present invention relates to a kind of driving method of adapter, particularly a kind of new generation periphery connects the addressing method of adapter.
Background technology
(Peripheral Component Interconnect Express PCI-E) is the interface of external expansion adapter commonly used in the present calculator device to new-generation peripheral component interconnect express.This technique functions just is by realizing that high-speed transferring data is designed.Wherein, new peripheral connecting interface from generation to generation offers its own special-purpose bus of each equipment.Data are the form serial transmissions with package (packet) through transmission and the acknowledge(ment) signal that is called as passage (lane), and each passage of peripheral linkage interface has the speed of folk prescription to 250Gigabits/sec in the new generation of the first generation.Thereby a plurality of passages can be combined the frequency range that the Channel Bandwidth that forms X1, X2, X4, X8, X12, X16 and X32 improves slot.At general calculator device a plurality of new-generation peripheral component interconnect express slots 131 can be set usually, and corresponding slot is put in the installation of the new connection of periphery from generation to generation adapter.
It is to be positioned among which slot that the driver that different new peripheries from generation to generation connect adapters can be located new generation periphery connection adapter through numbering (ID) in the configuration space of adapter.If inserted a plurality of equally when the new generations, periphery connected adapter in the calculator device, how the software in the calculator device locatees the new generation periphery that uses on which slot, and to connect adapter be exactly a problem.
Software on the calculator device is enumerated all equipment, and locatees new generation periphery connection adapter through the bus number of comparison new-generation peripheral component interconnect express.The practice does not although it is so need any cost, but its shortcoming is: the bus number on some motherboard is not given in regular turn, so the tester is difficult to from learning its numbering in appearance.So, the tester can't test with the new generation periphery connection adapter that is connected predetermined slot intuitively.
Summary of the invention
In view of above problem, the object of the present invention is to provide a kind of new generation periphery to connect the addressing method of adapter, loading has the driver that new generation periphery connects adapter in Windows.
The addressing method that the new generation periphery that the present invention disclosed connects adapter comprises: start motherboard; The new generation periphery of obtaining on the motherboard to be connected through Basic Input or Output System (BIOS) connects adapter, and the hardware information that will new periphery from generation to generation connects adapter is stored in the hardware lookup table; By Windows operation hardware loading procedure, the hardware information that is write down in the hardware lookup table is added in the hardware drive program; Operational objective program, target program are called corresponding new periphery from generation to generation through hardware drive program and the hardware information that is write down and are connected adapter.
The addressing method that new generation periphery proposed by the invention connects adapter is through Basic Input or Output System (BIOS) new generation periphery to be connected the connected slot of adapter to detect; Be not the bus of directly calling new-generation peripheral component interconnect express by Windows, therefore can not produce the problem that new generation periphery connects the location mistake of adapter and slot.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Fig. 1 is a configuration diagram of the present invention;
Fig. 2 is an operation workflow synoptic diagram of the present invention.
Wherein, Reference numeral
Processing unit 110
Storage element 120
Motherboard 130
New-generation peripheral component interconnect express slot 131
New periphery from generation to generation connects adapter 140
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
The present invention is applied to have the calculator device of new-generation peripheral component interconnect express and its slot, for example: personal computer or server.Please refer to shown in Figure 1ly, it is a configuration diagram of the present invention.Calculator device of the present invention comprises at least: processing unit 110, storage element 120 and motherboard 130.
Motherboard 130 is electrically connected at storage element 120 and processing unit 110.Have a plurality of new-generation peripheral component interconnect express slots 131 in the motherboard 130, connect adapter 140 in order to connect new generation periphery.It can be the input and output (Input/Output) that show output, audio output or data that new periphery from generation to generation connects adapter 140 applied scopes.Storage element 120 is in order to Windows (Windows Operation System), hardware lookup table, hardware drive program and the target program of storage Microsoft (Microsoft).Processing unit 110 is in order to human window operating system, hardware drive program and target program.
Enumerate (enum) and can cause slot numbering and actual inconsistent problem for what avoid that prior art adopts, so the present invention has done following modification in the hardware drive program of Windows.For clearly demonstrating running of the present invention, also please refer to shown in Figure 2ly, it is an operation workflow synoptic diagram of the present invention.Driving method of the present invention comprises the following steps:
Step S210: start motherboard, the new generation periphery of obtaining on the motherboard to be connected through Basic Input or Output System (BIOS) connects adapter, and the hardware information that will new periphery from generation to generation connects adapter is stored in the hardware lookup table;
Step S220:, the hardware information that is write down in the hardware lookup table is added in the hardware drive program by Windows operation hardware loading procedure;
Step S230: operational objective program, target program are called corresponding new periphery from generation to generation through hardware drive program and the hardware information that is write down and are connected adapter;
Step S240: target program does not detect new generation periphery and connects adapter, and then target program sends error message to Windows; And
Step S250: target program detects new generation periphery and connects adapter, and then target program returns an output result after completion.
At first, in starting the process of (boot) motherboard 130, motherboard 130 can move respectively power-on self-test (Power on self test, POST) with Basic Input or Output System (BIOS) (Basic Input/Output System, BIOS).After the process of operation power-on self-test; Motherboard 130 can (for example: South Bridge chip group, new-generation peripheral component interconnect express or general-purpose serial bus (Universal Serial Bus, USB)) detect each item peripheral device of being connected one by one through Basic Input or Output System (BIOS).This is during one, Basic Input or Output System (BIOS) can with new-generation peripheral component interconnect express be recorded to the multiprocessor allocation list (MultiProcessor Configuration Table, MP_table) among.The multiprocessor allocation list is for proposing in the control standard of multiprocessor by Intel Company.The multiprocessor allocation list is in order to the running information of each item perimeter component of operating system is provided is connected for motherboard 130.So in the process of motherboard 130 starts, can new-generation peripheral component interconnect express be recorded to the multiprocessor allocation list, can call the relevant information that the multiprocessor allocation list is write down when making operating system.
Then, Basic Input or Output System (BIOS) obtains the new generation periphery that is connected on the motherboard 130 and connects adapter 140, and the hardware information that new periphery is from generation to generation connected adapter 140 is stored in the hardware lookup table.Wherein, hardware information comprises the slot numbering (slot number) and bus number (bus number) of the new-generation peripheral component interconnect express bus that new generation periphery connection adapter 140 is assigned.
Windows can carry out the detection and the loading of hardware during bringing into operation.So during this period, Windows of the present invention can move the hardware loading procedure, and the hardware information that is write down in the hardware lookup table is added in the hardware drive program.(Windows Driver Foundation WDF) carries out the processing of hardware loading procedure to utilize the window driver of Windows in the present invention.The standard entrance function of window driver is DriverEntry, in order to the object of responsible establishment and initialization WDFDRIVER, and in accomplishing the call back function of creating the connection of back increase new equipment.
When detecting new equipment, the window driver can call the EvtDeviceAdd function automatically, in order to dependency structures such as initialization apparatus access and power managements, events corresponding is set handles function.Create the WDFDEVICE object then and be connected with symbol (token), and dependency structure such as initialization requests formation, Interrupt Process, corresponding call back function is set.In the EvtDeviceAdd function, added the processing of reading in addition, in order to from the multiprocessor allocation list, to read hardware information and hardware information is recorded to hardware lookup table to the multiprocessor allocation list of Basic Input or Output System (BIOS).
After accomplishing above-mentioned hardware loading procedure, the tester can be in Windows the operational objective program.Target program calls corresponding new periphery from generation to generation through hardware drive program and the hardware information that is write down and is connected adapter 140.Because the hardware information that is called is to come from Basic Input or Output System (BIOS), so the slot numbering of new-generation peripheral component interconnect express and bus number must be correct.
Target program can connect the processing that adapter 140 detects to new generation periphery after initial.Do not connect adapter 140 if target program detects new generation periphery, then target program sends error message to Windows.This situation possibly be that new periphery from generation to generation connects adapter 140 and in the process of start, is removed, or hardware is damaged and caused.Therefore whether target program still can detect new generation periphery earlier and connect adapter 140 and exist.Connect adapter 140 if target program detects new generation periphery, then target program returns an output result after completion.
The addressing method that new generation periphery proposed by the invention connects adapter 140 is through Basic Input or Output System (BIOS) new generation periphery to be connected adapter 140 connected slots to detect; Be not the bus of directly calling new-generation peripheral component interconnect express by Windows, therefore can not produce the problem that new generation periphery connects the location mistake of adapter 140 and slot.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (3)

1. the addressing method of the new connection of a periphery from generation to generation adapter loads the driver that a motherboard connects the new connection of a periphery from generation to generation adapter in a Windows, it is characterized in that this addressing method comprises:
Start this motherboard, through a Basic Input or Output System (BIOS) obtain connected on this motherboard should connect adapter by new periphery from generation to generation, and a hardware information that will be somebody's turn to do the new connection of periphery from generation to generation adapter is stored in the hardware lookup table;
Move a hardware loading procedure by this Windows, this hardware information that is write down in this hardware lookup table is added in the hardware drive program; And
Move a target program, this target program calls accordingly and should be connected adapter by new periphery from generation to generation through this hardware drive program and this hardware information that is write down.
2. new generation periphery according to claim 1 connects the addressing method of adapter, it is characterized in that, this hardware information comprises a slot numbering and a bus number of the new-generation peripheral component interconnect express bus that this new generation periphery connection adapter is assigned.
3. new generation periphery according to claim 2 connects the addressing method of adapter, it is characterized in that, does not connect adapter if this target program detects this new generation periphery, and then this target program sends an error message to this Windows.
CN2010105908630A 2010-11-30 2010-11-30 Addressing method of new-generation peripheral component interconnect adapter card Pending CN102479164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105908630A CN102479164A (en) 2010-11-30 2010-11-30 Addressing method of new-generation peripheral component interconnect adapter card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105908630A CN102479164A (en) 2010-11-30 2010-11-30 Addressing method of new-generation peripheral component interconnect adapter card

Publications (1)

Publication Number Publication Date
CN102479164A true CN102479164A (en) 2012-05-30

Family

ID=46091815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105908630A Pending CN102479164A (en) 2010-11-30 2010-11-30 Addressing method of new-generation peripheral component interconnect adapter card

Country Status (1)

Country Link
CN (1) CN102479164A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414202A (en) * 2020-01-02 2020-07-14 杭州迦智科技有限公司 Hardware operation management method, system, management subsystem, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6014714A (en) * 1997-06-16 2000-01-11 International Business Machines Corporation Adapter card system including for supporting multiple configurations using mapping bit
US6397268B1 (en) * 1996-10-01 2002-05-28 Compaq Information Technologies Group, L.P. Tracking PCI bus numbers that change during re-configuration
CN101086708A (en) * 2006-06-07 2007-12-12 戴尔产品有限公司 System and method for uniquely identifying peripheral component devices
CN101295226A (en) * 2007-04-24 2008-10-29 梁国恩 Adapter card of analog hard disk interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397268B1 (en) * 1996-10-01 2002-05-28 Compaq Information Technologies Group, L.P. Tracking PCI bus numbers that change during re-configuration
US6014714A (en) * 1997-06-16 2000-01-11 International Business Machines Corporation Adapter card system including for supporting multiple configurations using mapping bit
CN101086708A (en) * 2006-06-07 2007-12-12 戴尔产品有限公司 System and method for uniquely identifying peripheral component devices
CN101295226A (en) * 2007-04-24 2008-10-29 梁国恩 Adapter card of analog hard disk interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕琦鹏,顾红,苏卫民: "用WinDriver开发适合多平台的设备驱动程序", 《单片机与嵌入式系统应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414202A (en) * 2020-01-02 2020-07-14 杭州迦智科技有限公司 Hardware operation management method, system, management subsystem, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103970560B (en) Starting method and electronic device
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
CN106990958A (en) A kind of extension element, electronic equipment and startup method
US8707103B2 (en) Debugging apparatus for computer system and method thereof
US20130268744A1 (en) Method for detecting hardware
CN105701044A (en) Electronic device
TWI611289B (en) Server and error detecting method thereof
CN103593281A (en) Test system and test method
CN101599035A (en) USB port proving installation and method
CN101625645A (en) Solid state disk, BIOS device, and method and equipment for booting operating system
US8719637B2 (en) System and method for acquiring basic input/output system debug codes
CN104750600A (en) Equipment state recording method and equipment state recording system
CN102479164A (en) Addressing method of new-generation peripheral component interconnect adapter card
CN101452417B (en) Monitor method and monitor device thereof
US9575860B2 (en) Apparatus and a method for memory testing by a programmable circuit in a safety critical system
US20090144536A1 (en) Monitoring method and monitor apparatus
CN101281485B (en) Computer testing method without hard disc
EP3223133A1 (en) Method for setting redundant array of independent disks
CN101364197A (en) Exterior starting-up self-testing device applying to computer system and computer system thereof
CN201285545Y (en) Starting-up monitoring apparatus for host board
TW201734800A (en) Method for setting redundant array of independent disks
CN114765051A (en) Memory test method and device, readable storage medium and electronic equipment
CN111930575A (en) Firmware acquisition method and device and electronic equipment
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
WO2020113469A1 (en) Power on self test method, power on self test device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120530