The identification of erection switching card type method and system
Technical field
The present invention relates to a kind of computer system technology, particularly relate to a kind of identification of erection switching card type method and system.
Background technology
PCI (Peripheral Component Interconnect) is the normal a kind of peripheral component interconnect express that adopts on the computer platform, it can be used for the CPU (central processing unit) of computer platform is outwards overlapped to a circuit board, be connected to various computer peripheral apparatus by this circuit board, for example comprise screen display, hard disk unit, CD-ROM device, network switch, or the like, exchange by allowing CPU (central processing unit) can a little therewith peripheral devices carry out data.The bus signals that the PCI standard has been stipulated one group of standard allows CPU (central processing unit) carry out data with peripheral device on circuit board and exchanges.Yet on concrete the application, maturation and progress along with technology, the PCI standard again and then comprise the extensibility standard that some are different, for example be PCI-E (PCI Express), it makes some ductile functions expansions based on original PCI framework, and the pci bus that makes data rate to spread out of is more quick.
Characteristics of PCI-E bus architecture are that it can support various circuit card with different highway widths, for example comprise the highway width of 1 byte (x1), 4 bytes (x4), 8 bytes (x8) and 16 bytes (x16).When practical application, the circuit card of little highway width can be planted to the connector of big highway width and be used.For instance, the circuit card of 4 byte highway widths is not planted only to the connector that is similarly 4 byte highway widths and is used, and also can plant to the connector of the highway width of 8 bytes or 16 bytes and use.In other words, if the connector that the highway width of 8 bytes is set on the host computer mainboard arranged, then this connector promptly optionally is used to be plugged to the circuit card of the highway width of 8 bytes or 4 bytes.
Erection switching card (riser card) also can increase PCI-E interface slot number of connectors simultaneously for the transfer circuit card of PCI-E interface slot connector of a kind of PCI-E of being inserted in connector.For instance, if there is a PCI-E perimeter interface controller originally only to have 4 connectors, therefore the peripheral device that can overlap adds up to 4, then an erection switching card with 3 connectors is inserted so far 4 connectors one of them, can make the sum of its peripheral device that can overlap increase to 6.
In the application of the webserver, the PCI-E perimeter interface controller of server host mainboard can be pegged graft usually and be gone up erection switching card.Because BIOS (BasicInput/Output System) the input and output management and control unit of main frame mainboard need carry out configuration and setting at each erection switching card when initialization, so each erection switching card just has and need provide the identification mode by a specific mode.Yet the normal at present a kind of identification mode that adopts is that for the system's shortcoming of this practice of identification on concrete enforcement it need increase the pin sum of erection switching card for transmit configuration by the web joint pin that connects, and also can increase the complexity of hardware structure.
Summary of the invention
The shortcoming of prior art in view of the above, fundamental purpose of the present invention is to be to provide a kind of identification of erection switching card type method and system, it can increase erection switching card on concrete enforcement pin sum reduces the complexity of hardware structure and easy to implement thus.
Identification of erection switching card type method and system of the present invention are that design is applied to a computer motherboard (for example being the main frame mainboard of the webserver), and this computer motherboard is equipped with a perimeter interface controller, for example be the perimeter interface controller of PCI-E type, be used for the type of present each erection switching card planted of this PCI-E perimeter interface controller of identification.
Identification of erection switching card type method of the present invention comprises at least: the connector of this erection switching card of (P1) will pegging graft, additionally be connected to one group of input and output pin of the control chip of this motherboard, so that the identification signal that this erection switching card was produced is passed to this group input and output pin and becomes an identification code with a plurality of external circuits; (P2) when this computer motherboard carries out initialization, detect the logic current potential of this input and output pin, to obtain this identification code; And (P3) compare this identification code according to a switching card type corresponding tables, to determine the type of this erection switching card.
On the entity framework, identification of erection switching card type of the present invention system comprises at least: (A) external circuit link block, it comprises a plurality of external circuits, be used to connect the one group input and output pin of bus to the control chip of this motherboard of the slot of this grafting erection switching card, be passed to this group input and output pin and become one group of identification code with one group of identification signal that this erection switching card is produced; (B) a pin current potential detecting module, it can be activated the logic current potential of detecting the specific input and output pin of this group, to obtain identification code when this computer motherboard carries out initialization; And (C) discrimination module, wherein have a switching card type corresponding tables in advance; And it can determine the type of this erection switching card according to this switching card type corresponding tables comparison identification code when practical operation.
The characteristics of identification of erection switching card type method and system of the present invention are by original bus the identification signal to be passed to connector on the motherboard, to recognize that by external circuit signal is passed to one group of input and output pin of control chip again, to make BIOS input and output management and control unit when computer motherboard carries out initialization, the logic current potential of detecting the GPIO input and output pin on this control chip determines the type of this erection switching card and carries out corresponding configuration and setting program.Compare background technology, these characteristics can increase the number of pins of erection switching card, reduce the complexity of hardware thus and more easy to implement and save design and manufacturing cost.
Description of drawings
Fig. 1 is an application synoptic diagram, is used to show the application mode of identification of erection switching card type system combination to a computer motherboard of the present invention;
Fig. 2 is a configuration diagram, is used to show the modularization basic framework of identification of erection switching card type of the present invention system;
Fig. 3 is a configuration diagram, is used to show the connected mode of the external circuit link block that identification of erection switching card type of the present invention system is adopted;
Fig. 4 is a corresponding form, is used to show an embodiment of the corresponding form that identification of erection switching card type of the present invention system is adopted.
The main element symbol description
10 computer motherboards
20 central processing units (CPU)
30 input and output management and control unit (BIOS)
31 initialization process modules
40 perimeter interface controllers (PCI-E)
41 connectors
50 erection switching cards (Riser Card)
51 control chips
60 expansion boards
100 identification of erection switching card type of the present invention systems
110 external circuit link blocks
111 external circuits
112 external circuits
120 detecting modules
130 discrimination modules
201 type informations
Embodiment
Below promptly cooperate appended graphicly, disclose the embodiment of explanation identification of erection switching card type method and system of the present invention in detail.
Fig. 1 promptly shows the application mode of identification of erection switching card type system of the present invention (as the square of label 100 indications).As shown in the figure, identification of erection switching card type of the present invention system 100 is integrated into a computer motherboard 10 (for example being the main frame mainboard of the webserver) in practical application, and this computer motherboard 10 is equipped with a central processing unit (CPU) 20, an input and output management and control unit 30 and a perimeter interface controller 40; Wherein this input and output management and control unit 30 for example is a BIOS (Basic Input/Output System) chip, and this perimeter interface controller 40 for example is the perimeter interface controller of a PCI-E (Peripheral Component Interconnect-Express) type, and have a plurality of connectors 41 (in example shown in Figure 1, for example comprising 4 connectors 41).In practical application, the connector 41 of this PCI-E perimeter interface controller 40 upright adapter (risercard) 50 that promptly can be used for pegging graft utilizes this erection switching card 50 to expand the connector quantity of this PCI-E perimeter interface controller 40 thus and can overlap more expansion board 60.
When practical operation, identification of erection switching card type of the present invention system 100 promptly can be used to pick out the type of the erection switching card of being planted on this connector 41 50, allow thus BIOS input and output management and control unit 30 can be according to this when initialization the particular type at this erection switching card 50 carry out configuration and setting.
In following embodiment, this erection switching card 50 has a plate, and this web joint is used for being connected with one of them connector 41 of motherboard.And this web joint for example has 3 connecting bus, for example comprise 24 byte PCI-E buses and 18 byte PCI-E bus, external circuit of the present invention reaches by existing bus, for example the PEI-E bus with 24 bytes is delivered to control chip with identification signal, to recognize the type of erection switching card.
As shown in Figure 2, the modularization basic framework of identification of erection switching card type of the present invention system 100 comprises at least: (A) external circuit link block 110; (B) a pin current potential detecting module 120; And (C) discrimination module 130.The individual attribute and the function of these a little members below promptly are described at first respectively.
External circuit link block 110 comprises one group of external circuit 111,112 as shown in Figure 3, be used to connect one group input and output pin GPIO_1, the GPIO_2 of connector 41 to this control chip 51, be used for the logic current potential of the identification signal of this erection switching card 50 is passed to this control chip 51.In this embodiment, this a little input and output pin GPIO_1, GPIO_2 for example are the general input and output pin under GPIO (the General Purpose Input/OUptut) standard criterion.Connected mode between this a little input and output pin GPIO_1, GPIO_2 and those external circuits 111,112 promptly as shown in Figure 3 one of them external circuit 111 be connected the PCI-E bus of one of them GPIO_1 pin and one of them 4 byte, another external circuit 112 connects the PCI-E bus of another GPIO_1 pins and another 4 byte.Be that each external circuit is connected with the GPIO pin of a PCI-E bus and a control chip separately.
In the present embodiment, what be used for recognizing classification is multiple erection switching card with input/output port, is provided with different input/output control unit on erection switching card, each input/output control unit, can transmit the identification code BOARD_ID of its definition by being connected with the bus of outer signal.
In this embodiment, because of external circuit has 2 111,112, so identification code BOARD_ID can be for example by being made up of 2 bytes.Please refer to Fig. 4, is the example of a switching card type corresponding tables, and whether each byte representative out of the ordinary of BOARD_ID has input/output control unit, only lists the erection switching card of three kinds of different B OARD_ID in the table, but in fact its combination can be 4 kinds.Wherein the 1st of BOARD_ID the byte taken from external circuit 111, and the 2nd byte of BOARD_ID taken from external circuit 112.In the embodiment shown in fig. 4, BOARD_ID=[01] represent the signal of the PCI-E bus transmission input/output port of one 4 byte therein, that is, this upright adapter has the input/output port of being controlled by an input/output control unit; BOARD_ID=[00] represent erection switching card 50 to adopt two input/output control unit; BOARD_ID=[11] then represent erection switching card 50 not to be provided with the input/output control unit chip.What must note a bit is that corresponding tables shown in Figure 4 only is the exemplary applications of a reality herein; General rule in the broadest sense, this corresponding tables is used to represent the corresponding relation of identification code BOARD_ID and erection switching card type.
Pin current potential detecting module 120 for example is integrated in the BIOS input and output management and control unit 30, can when this computer motherboard 10 carries out initialization, be activated the logic current potential of input and output pin GPIO_1, GPIO_2 on the control chip 51 of detecting this erection switching card 50, obtain the identification code BOARD_ID that is delivered on this group input and output pin GPIO_1, the GPIO_2 thus.
Discrimination module 130 also for example is integrated in the BIOS input and output management and control unit 30, and prestores corresponding tables for example shown in Figure 4; And when practical operation, can reach the type that determines this erection switching card 50 according to corresponding tables shown in Figure 4 according to above-mentioned pin current potential detecting module 120 obtained identification code BOARD_ID, and will differentiate the result and inform initialization process module 31 in the BIOS input and output management and control unit 30 by the type information 201 of a correspondence, make this initialization process module 31 carry out the system configuration that corresponding initialize routine is set out this erection switching card 50.
Below promptly utilize an application example that the integrated operation mode of identification of erection switching card type system 100 of the present invention when practical application is described.
When the user with the electric power starting of computer motherboard 10 or when resetting (when carrying out boot program), it promptly can at first make the external circuit 111,112 on the web joint of erection switching card 50 produce corresponding logical signal; And at the same time, external circuit link block 110 can be passed to the logical signal current potential of external circuit 111,112 input and output pin GPIO_1, the GPIO_2 on the control chip 51, and represents one group of identification code BOARD_ID.Then when BIOS input and output management and control unit 30 begins to carry out initialize routine, pin current potential detecting module 120 promptly can be activated and detect GPIO_1, the logic current potential of GPIO_2, obtain GPIO_1 thus, the identification code BOARD_ID of GPIO_2 representative, the identification code that for example obtains is 01, and send this identification code BOARD_ID to discrimination module 130, discrimination module 130 is the erection switching card with an input/output control unit according to the value 01 of this identification code BOARD_ID according to the type that the switching card type corresponding tables determines this erection switching card 50, and will differentiate the result and inform initialization process module 31 in the BIOS input and output management and control unit 30 by the type information 201 of a correspondence, make this initialization process module 31 carry out the system configuration that corresponding initialize routine is set out this erection switching card 50.
Generally speaking, the invention provides a kind of identification of erection switching card type method and system, it can be applicable to a computer motherboard, is used for the type of the present erection switching card of planting on this computer motherboard of identification; And its characteristics are bus in the connector of erection switching card, be connected to one group of GPIO input and output pin on the control chip of erection switching card with external circuit, and making BIOS input and output management and control unit when computer motherboard carries out initialization, the logic current potential of detecting the GPIO input and output pin on this control chip determines the type of this erection switching card and carries out corresponding configuration and setting program.Compare prior art, these characteristics are not increase the pin sum of erection switching card, reduce the complexity of hardware thus and more easy to implement and save design and manufacturing cost.Therefore the present invention has better progressive and practicality than prior art.
The above is preferred embodiment of the present invention only, is not the scope that is used to limit essence technology contents of the present invention.Essence technology contents of the present invention broadly is defined in the following claim.Be identical or be a kind of change of equivalence if any technology entity that other people are finished or method are defined with following claim, all will be regarded as being covered by among the claim of the present invention.