On-board network card hot plug control circuit
By designing a control circuit including network card power switch, reset control module and switch circuit, hardware hot-swap management of on-board network cards is realized, solving the problem that the existing technology cannot completely block or isolate network cards on hardware, and providing flexibility Switching ability to meet professional application needs.
Patent Information
- Application Number
- CN202420005711.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2034-01-02
AI Technical Summary
The existing technology cannot realize the hardware hot-swap management of on-board network cards, cannot completely block or isolate the network cards on the hardware, and cannot flexibly switch back to the network cards.
A control circuit including on-board network card, network card power switch, reset control module, clock generator, main control module and switch circuit is designed. It is connected through the PCIE bus and the switching circuit is used to control the network card power supply, clock and reset signal to realize the network card. The physical interface function is turned on or off to realize hot plug management on hardware.
It completely blocks or isolates the on-board network card in hardware, and can freely switch back to the network card, meeting the needs of professional application fields and provides seamless switching capabilities for network card in different application scenarios.
Smart Images

Figure CN222014743U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of computers, in particular to a hot-plug control circuit for an onboard network card. Background Art
[0002] The onboard network card is a network card chip integrated into the motherboard that integrates network functions. With the popularization of network communication technology, the network card has gradually become one of the basic accessories of computer equipment, and more and more motherboards are equipped with onboard network cards.
[0003] Hot swapping is hot plugging and unplugging, which means inserting or removing modules or boards into or out of the system without turning off the system power without affecting the normal operation of the system, so as to improve the scalability and flexibility of the entire system and the ability to recover in time when a fault occurs.
[0004] Currently, the network card on the motherboard of computer devices such as home computers or servers cannot be hot-swapped in the true sense. Generally, it can only be uninstalled in software, and it is impossible to completely uninstall it in hardware. However, in some professional application fields or scenarios, for example, in order to ensure application security, it is hoped that at least the network card can be completely shielded or isolated in hardware and can be switched back to the network card freely and flexibly, that is, to realize hot-swappable management of the onboard network card in hardware.
[0005] Therefore, how to implement hot-swap management of the onboard network card in hardware so as to completely shield or isolate the onboard network card in hardware and switch back to the onboard network card freely and flexibly is an issue to be solved urgently. Utility Model Content
[0006] The utility model aims to provide an onboard network card hot-swap control circuit, which can completely shield or isolate the onboard network card in hardware and can freely and flexibly switch back to the onboard network card, thereby realizing hot-swap management of the onboard network card in hardware.
[0007] To achieve the above-mentioned purpose, the utility model provides an onboard network card hot-swap control circuit, which is used to be set on a computer motherboard, including an onboard network card, a network card power switch, a network card power supply, a reset control module, a clock generator, a main control module and a switch circuit, wherein the onboard network card is connected to the PCIE interface of the main control module via a PCIE bus, the onboard network card includes a power interface, a clock interface and a reset interface, the power interface is connected to the network card power supply via the network card power switch, the clock interface is connected to the clock generator, and the reset interface is connected to the reset control module; the switch circuit includes a first output interface and a second output interface. The first output interface is connected to the main control module, the clock generator and the reset control module respectively, the second output interface is connected to the network card power switch, the switch circuit controls the main control module to turn off or turn on the physical interface function of the PCIE interface through the first output interface, controls the clock generator to output or turn off the output clock signal to the clock interface, controls the reset control module to output a reset signal to the reset interface, and the switch circuit controls the network card power switch to connect the network card power supply with the power interface or disconnect the network card power supply from the power interface through the second output interface.
[0008] Preferably, the switch circuit also includes a state switch, when the state switch is in a first state, the first output interface outputs a first state signal to the main control module, the clock generator and the reset control module, the main control module turns on the physical interface function of the PCIE interface, the clock generator outputs a clock signal to the clock interface, the second output interface outputs a first switch signal to the network card power switch, the network card power switch connects the network card power supply and the power interface, and the network card power supplies power to the onboard network card; when the state switch is in a second state, the first output interface outputs a second state signal to the main control module, the clock generator and the reset control module, the main control module turns off the physical interface function of the PCIE interface, the clock generator turns off the output clock signal to the clock interface, the second output interface outputs a second switch signal to the network card power switch, and the network card power switch disconnects the network card power supply from the power interface; when the first output interface switches from outputting the second state signal to the reset control module to outputting the first state signal to the reset control module, the reset control module outputs the reset signal to the reset interface.
[0009] Preferably, the switch circuit further comprises a switch unit, a control end of the switch unit is connected to an output end of the state switch, the output end of the switch unit is the first output interface; and the output end of the state switch extends to the second output interface.
[0010] Preferably, the switch unit is an NMOS field effect transistor, the gate of the NMOS field effect transistor is the control end of the switch unit, the drain of the NMOS field effect transistor is the output end of the switch unit, the drain is also connected to the P3V3SB motherboard power supply via a first resistor, and the source of the NMOS field effect transistor is grounded; when the state switch is in the first state, the output end of the state switch outputs a low level signal, and when the state switch is in the second state, the output end of the state switch outputs a high level signal.
[0011] Preferably, the network card power switch includes a PMOS field effect transistor, the gate of the PMOS field effect transistor is connected to the second output interface via a third resistor, the source of the PMOS field effect transistor is connected to the network card power supply, the drain of the PMOS field effect transistor is connected to the power interface, and a first capacitor is connected between the gate and the drain of the PMOS field effect transistor; when the state switch is in the first state, the output end of the state switch outputs a low level signal, and when the state switch is in the second state, the output end of the state switch outputs a high level signal.
[0012] Preferably, the output end of the state switch is also grounded via a transient voltage suppression diode.
[0013] Preferably, the status switch is a single-pole double-throw switch, and when the status switch is in the first state, the output end of the status switch is grounded, and when the status switch is in the second state, the output end of the status switch is connected to the P3V3SB mainboard power supply via a second resistor.
[0014] Preferably, the reset control module includes a controller and an AND gate, the network card disable input of the controller is connected to the first output interface, the network card disable output of the controller is connected to the second input of the AND gate, the first input of the AND gate introduces the SYS_PCIERST# signal of the mainboard, the output of the AND gate is connected to the reset interface of the onboard network card and grounded via a fourth resistor and a second capacitor respectively; when the first output interface changes from outputting the second state signal to the reset control module to outputting the first state signal to the reset control module, the reset control module outputs the reset signal to the reset interface after a preset time delay.
[0015] Preferably, the controller is an embedded controller or a complex programmable logic device.
[0016] Preferably, the main control module is a central processing unit or a platform controller hub.
[0017] The beneficial effects of the utility model are as follows: the onboard network card hot-swap control circuit of the utility model controls the main control module, whether the clock generator closes its connection with the onboard network card, whether the network card power supply supplies power to the onboard network card, and the reset control module's provision of a reset signal for the onboard network card through a switch circuit. The onboard network card can be completely shielded or isolated in hardware, and can be switched back to the onboard network card freely and flexibly, thereby realizing the hot-swap management of the onboard network card in hardware, so as to meet the hot-swap requirements of the onboard network card in some professional application fields, and facilitate seamless switching of the onboard network card in various application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings are only provided for reference and explanation and are not intended to limit the present invention.
[0019] In the accompanying drawings,
[0020] Figure 1 The utility model is a circuit structure block diagram of the onboard network card hot-swap control circuit.
[0021] Figure 2 The present invention is a circuit diagram of an onboard network card hot-swap control circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to further illustrate the technical means and effects adopted by the present invention, the preferred embodiments of the present invention and the accompanying drawings are described in detail below.
[0023] like Figure 1 As shown, the onboard network card hot-swap control circuit of the utility model is used to be set on a computer motherboard, including an onboard network card 10, a network card power switch 20, a network card power supply 30, a reset control module 40, a clock generator 50, a main control module 60 and a switch circuit 70.
[0024] The onboard network card 10 is connected to the PCIE interface of the main control module 60 via the PCIE bus to realize the network communication function under the control of the main control module 60. The onboard network card 10 includes a power interface, a clock interface and a reset interface, wherein the power interface is connected to the network card power supply 30 via the network card power switch 20, and the network card power supply 30 is used to supply power to the onboard network card 10; the clock interface is connected to the clock generator 50, and the clock generator 50 is used to provide a clock signal for the onboard network card 10; the reset interface is connected to the reset control module 40, and the reset control module 40 is used to provide a reset signal for the onboard network card 10.
[0025] The switch circuit 70 includes a first output interface 71 and a second output interface 72, wherein the first output interface 71 is connected to the main control module 60, the clock generator 50 and the reset control module 40 respectively; and the second output interface 72 is connected to the network card power switch 20. The switch circuit 70 controls the main control module 60 via the first output interface 71 to turn off or turn on the physical interface function of the PCIE interface thereof, so as to disconnect the signal connection between the main control module 60 and the onboard network card 10 or to establish the signal connection between the main control module 60 and the onboard network card 10; controls the clock generator 50 via the first output interface 71 to output or turn off the output clock signal to the clock interface of the onboard network card 10, and controls the reset control module 40 to output a reset signal to the reset interface of the onboard network card 10. The switch circuit 70 controls the network card power switch 20 to connect the network card power supply 30 with the power interface of the onboard network card 10 via the second output interface 72, so that the network card power supply 30 can supply power to the onboard network card 10 via the network card power switch 20, or disconnects the network card power supply 30 from the power interface of the onboard network card 10, at which time the network card power supply 30 stops supplying power to the onboard network card 10.
[0026] Therefore, when the onboard network card 10 is working normally, the switching circuit 70 controls the network card power switch 20 to connect the network card power supply 30 with the power interface of the onboard network card 10 via the second output interface 72, and the network card power supply 30 supplies power to the onboard network card 10; the switching circuit 70 controls the main control module 60 to turn on the physical interface function of its PCIE interface via the first output interface 71, and the main control module 60 is connected to the onboard network card 10 signal, and controls the clock generator 50 to output the clock signal to the clock interface of the onboard network card 10 via the first output interface 71.
[0027] If the onboard network card 10 needs to be shielded or isolated, the switch circuit 70 controls the network card power switch 20 via the second output interface 72 to disconnect the connection between the network card power supply 30 and the power interface of the onboard network card 10; the switch circuit 70 controls the main control module 60 via the first output interface 71 to turn off the physical interface function of its PCIE interface to disconnect the signal connection between the main control module 60 and the onboard network card 10, and controls the clock generator 50 via the first output interface 71 to turn off the output clock signal to the clock interface of the onboard network card 10, thereby achieving the shielding or isolation of the onboard network card 10 from the hardware.
[0028] If it is necessary to switch back to the onboard network card 10, the switch circuit 70 controls the network card power switch 20 to connect the network card power supply 30 and the power interface of the onboard network card 10 via the second output interface 72, and the network card power supply 30 supplies power to the onboard network card 10; the switch circuit 70 controls the main control module 60 to turn on the physical interface function of its PCIE interface via the first output interface 71, the main control module 60 is connected to the onboard network card 10 signal, and controls the clock generator 50 to output a clock signal to the clock interface of the onboard network card 10 via the first output interface 71, and controls the reset control module 40 to output a reset signal to the reset interface of the onboard network card 10 via the first output interface 71, so that the onboard network card 10 can be switched back to the mainboard system.
[0029] It can be seen that the onboard network card hot-swap control circuit of the utility model can completely shield or isolate the onboard network card in hardware and can freely and flexibly switch back to the onboard network card, that is, it can realize the hot-swap management of the onboard network card in hardware.
[0030] Specifically, the switch circuit 70 also includes a state switch 73. When the state switch 73 is in a first state, the first output interface 71 of the switch circuit 70 outputs a first state signal to the main control module 60, the clock generator 50 and the reset control module 40. At this time, the main control module 60 turns on the physical interface function of its PCIE interface, establishes a signal connection between the main control module 60 and the onboard network card 10, and the clock generator 50 outputs a clock signal to the clock interface of the onboard network card 10; the second output interface 72 outputs a first switch signal to the network card power switch 20, and the network card power switch 20 connects the network card power supply 30 with the power interface of the onboard network card 10, and the network card power supply 30 supplies power to the onboard network card 10.
[0031] When the status switch 73 is in the second state, the first output interface 71 of the switch circuit 70 outputs a second status signal to the main control module 60, the clock generator 50 and the reset control module 40. At this time, the main control module 60 turns off the physical interface function of its PCIE interface, disconnects the signal connection between the main control module 60 and the onboard network card 10, and the clock generator 50 turns off the output clock signal to the clock interface of the onboard network card 10; the second output interface 70 outputs a second switch signal to the network card power switch 20, and the network card power switch 20 disconnects the network card power supply 30 from the power interface of the onboard network card 10.
[0032] When the first output interface 71 switches from outputting the second state signal to the reset control module 40 to outputting the first state signal to the reset control module 40 , the reset control module 40 outputs the reset signal to the reset interface of the onboard network card 10 .
[0033] Furthermore, the switch circuit 70 may further include a switch unit 74, the control end of the switch unit 74 is connected to the output end of the state switch 73, the output end of the switch unit 74 is the first output interface 71; the output end of the state switch 73 extends to the second output interface 72. That is, the state switch 73 of the switch circuit 70 outputs the first state signal or the second state signal to the main control module 60, the clock generator 50 and the reset control module 40 through the switch unit 74; and the state switch 73 can directly output the first switch signal or the second switch signal to the network card power switch 20.
[0034] In a preferred embodiment, the switch unit 74 is an NMOS field effect tube, the gate of the NMOS field effect tube is the control end of the switch unit 74, the drain of the NMOS field effect tube is the output end of the switch unit 74, the drain is also connected to the P3V3SB mainboard power supply via a first resistor, and the source of the NMOS field effect tube is grounded. When the state switch 73 is in the first state, the output end of the state switch 73 outputs a low level signal (for example, the output end of the state switch 73 is grounded), and when the state switch 73 is in the second state, the output end of the state switch 73 outputs a high level signal (for example, the output end of the state switch 73 is connected to the P3V3SB mainboard power supply via a second resistor). Therefore, when the state switch 73 is in the first state, the NMOS field effect tube is turned off, and the drain of the NMOS field effect tube, that is, the first state signal output by the first output interface 71, is a high level signal; when the state switch 73 is in the second state, the NMOS field effect tube is turned off, and the drain of the NMOS field effect tube, that is, the second state signal output by the first output interface 71, is a low level signal.
[0035] In a preferred embodiment, the network card power switch 20 includes a PMOS field effect tube, the gate of the PMOS field effect tube is connected to the second output interface 72 through a third resistor, that is, connected to the output end of the state switch 73, the source of the PMOS field effect tube is connected to the network card power supply 30, the drain of the PMOS field effect tube is connected to the power interface of the onboard network card 10, and a first capacitor is connected between the gate and the drain of the PMOS field effect tube. When the state switch 73 is in the first state, the output end of the state switch 73 outputs a low-level signal (for example, the output end of the state switch 73 is grounded), and when the state switch 73 is in the second state, the output end of the state switch 73 outputs a high-level signal (for example, the output end of the state switch 73 is connected to the P3V3SB motherboard power supply through a second resistor). Therefore, when the status switch 73 is in the first state, the second output interface 72 outputs the first switch signal, that is, a low-level signal, the PMOS field effect tube is turned on, and the network card power supply 30 supplies power to the onboard network card 10 via the PMOS field effect tube; when the status switch 73 is in the second state, the second output interface 72 outputs the second switch signal, that is, a high-level signal, the PMOS field effect tube is turned off, and the network card power supply 30 does not supply power to the onboard network card 10.
[0036] Of course, the specific structures of the switch unit 74 and the network card power switch 20 are not limited to those described above, and other circuit structures that can achieve the same function may also be selected.
[0037] Preferably, the output end of the state switch 73 is also grounded via a transient voltage suppression diode.
[0038] In a preferred embodiment, the status switch 73 is a single-pole double-throw switch, and when the status switch 73 is in the first state, the output end of the status switch 73 is grounded, and when the status switch 73 is in the second state, the output end of the status switch 73 is connected to the P3V3SB motherboard power supply via a second resistor.
[0039] Further, in a preferred embodiment, the reset control module 40 may include a controller 41 and an AND gate 42, the network card disable input end of the controller 41 is connected to the first output interface 71, the network card disable output end of the controller 41 is connected to the second input end of the AND gate 42, the first input end of the AND gate 42 introduces the SYS_PCIERST# signal of the motherboard (the SYS_PCIERST# signal of the motherboard always maintains a high level state when the computer is powered on), and the output end of the AND gate 42 is connected to the reset interface of the onboard network card 10 and grounded via a fourth resistor and a second capacitor, respectively. Specifically, as mentioned above, the first state signal is a high level signal, the second state signal is a low level signal, and when the first output interface 71 switches from outputting the second state signal to the reset control module 40 to outputting the first state signal to the reset control module 40, the reset control module 40 may output the reset signal to the reset interface of the onboard network card 10 after a delay of a preset time, so as to reset the onboard network card 10, and the reset signal is a high level signal.
[0040] That is to say, when the status signal from the first output interface 71 received by the network card disable input end of the controller 41 of the reset control module 40 changes from a low level to a high level, the controller 41 delays for a preset time, for example, 100ms, and then outputs a high level to the second input end of the AND gate 42, and ANDs it with the SYS_PCIERST# signal from the motherboard. When the AND gate 42 outputs a high-level reset signal to the reset interface of the onboard network card 10, the onboard network card 10 is powered on and reset, which can meet the timing requirements for powering on and resetting the onboard network card 10.
[0041] It should be noted that the logic device in the reset control module 40 is not limited to the configuration of the AND gate 42 , and other structures may also be used to achieve the same function.
[0042] In a preferred embodiment, the controller 41 may be an embedded controller (EC) or a complex programmable logic device (CPLD).
[0043] Furthermore, the main control module 60 may be a central processing unit (CPU) or a platform hub control (PCH).
[0044] like Figure 2 FIG. 1 is a circuit diagram of an onboard network card hot-swap control circuit of an embodiment of the utility model. The onboard network card 10 of the onboard network card hot-swap control circuit is a PCIE LAN network card, the main control module 60 is a central processing unit or a platform hub control, and the controller 41 of the reset control module 40 is an embedded controller or a complex programmable logic device.
[0045] The switch circuit 70 includes a state switch 73 (SWBTN1) and a switch unit 74, wherein the state switch 73 is a single-pole double-throw switch, which includes port 1, port 2 and port 3, wherein port 2 is the output end of the state switch 73, port 1 is grounded, and port 3 is connected to the P3V3SB motherboard power supply via a second resistor R2, and the single-pole double-throw switch can switch between port 1 and port 3. When port 1 is connected to port 2, port 2, i.e., the output end, of the state switch 73 is grounded; when port 3 is connected to port 2, port 2, i.e., the output end, of the state switch 73 is connected to the P3V3SB motherboard power supply via a second resistor R2. Port 2 of the state switch 73 is also grounded via a transient voltage suppression diode ESD22.
[0046] The switch unit 74 is an NMOS field effect transistor Q1, the gate of the NMOS field effect transistor Q1 is the control end of the switch unit 74, connected to the output end of the state switch 73, that is, port 2, the drain of the NMOS field effect transistor Q1 is the output end of the switch unit 74, that is, the first output interface of the switch circuit 70, and the drain is also connected to the P3V3SB mainboard power supply via the first resistor R1, and the source of the NMOS field effect transistor Q1 is grounded.
[0047] The network card power switch 20 includes a PMOS field effect transistor Q2, the gate of the PMOS field effect transistor Q2 is connected to the port 2 of the status switch 73 via a third resistor R3 (as shown by the LANPWR_EN signal in the figure); the source of the PMOS field effect transistor Q2 is connected to the network card power supply 30, and in this embodiment, the network card power supply 30 is a P3V3 motherboard power supply; the drain of the PMOS field effect transistor Q2 is connected to the power interface Power of the onboard network card 10 (as shown by the P3V3_LAN signal in the figure), and a first capacitor C1 is connected between the gate and the drain of the PMOS field effect transistor Q2.
[0048] The drain of the NMOS field effect transistor Q1, as the output end of the switch unit 74, that is, the first output interface of the switch circuit 70, is respectively connected to the reset control module 40, the clock generator 50, and the main control module 60 (as shown by the LAN_DISABLE# signal in the figure).
[0049] Specifically, the reset control module 40 includes a controller 41 and an AND gate 42, the drain of the NMOS field effect transistor Q1 is connected to the network card disable input terminal Lan_Disable_IN of the controller 41, the network card disable output terminal Lan_Disable_Out of the controller 41 is connected to the second input terminal of the AND gate 42, the first input terminal of the AND gate 42 introduces the SYS_PCIERST# signal of the motherboard, and the output terminal of the AND gate 42 is connected to the reset interface Reset of the onboard network card 10 and is grounded via the fourth resistor R4 and the second capacitor C2 respectively.
[0050] The drain of the NMOS field effect transistor Q1 is also connected to the Out1_Strap port of the clock generator 50 , and the clock signal output interface Clock_OUT1 of the clock generator 50 is connected to the clock interface Clock of the onboard network card 10 .
[0051] The drain of the NMOS field effect transistor Q1 is also connected to the Port1_PRSNT port of the main control module 60 , and the onboard network card 10 is connected to the PCIE interface PCIE_Port1 of the main control module 60 via the PCIE BUS.
[0052] Figure 2 The onboard network card hot-swap control circuit shown, when the onboard network card 10 is in normal working state, port 1 and port 2 of the status switch 73 are connected, the status switch 73 is in the first state, the NMOS field effect tube Q1 is turned off, the PMOS field effect tube Q2 is turned on, and the drain of the NMOS field effect tube Q1 keeps outputting a high level signal (first state signal) to the reset control module 40, the clock generator 50, and the main control module 60, the clock generator 50 keeps outputting the clock signal to the onboard network card 10, the main control module 60 keeps turning on the physical interface function of its PCIE interface PCIE_Port1, and the P3V3 motherboard power supply keeps supplying power to the onboard network card 10.
[0053] When the onboard network card 10 is to be turned off, the port 3 and the port 2 of the state switch 73 are connected, the state switch 73 is in the second state, the NMOS field effect tube Q1 is turned on, the PMOS field effect tube Q2 is turned off, and the drain of the NMOS field effect tube Q1 outputs a low level signal (second state signal) to the reset control module 40, the clock generator 50, and the main control module 60. The clock generator 50 turns off the output clock signal to the onboard network card 10, and the main control module 60 turns off the physical interface function of its PCIE interface PCIE_Port1, and the P3V3 motherboard power supply no longer supplies power to the onboard network card 10. Thus, the onboard network card 10 is completely shielded or isolated from the motherboard hardware.
[0054] When it is desired to switch back to the onboard network card 10, the port 1 and the port 2 of the state switch 73 are connected again, the state switch 73 enters the first state, the NMOS field effect tube Q1 is turned off, the PMOS field effect tube Q2 is turned on, the P3V3 motherboard power supply supplies power to the onboard network card 10 via the PMOS field effect tube Q2, the drain of the NMOS field effect tube Q1 outputs a high level signal (first state signal) to the reset control module 40, the clock generator 50, and the main control module 60, and the clock generator 50 outputs a clock signal to the onboard network card 10. Card 10, the main control module 60 turns on the physical interface function of the PCIE interface PCIE_Port1, the controller 41 of the reset control module 40 outputs a high level signal (EC_LAN_RST# signal in the figure) to the second input end of the AND gate 42 after a preset delay, and ANDs with the SYS_PCIERST# high level signal of the motherboard, and the AND gate 42 outputs a high level reset signal (LAN_IC_RST# signal in the figure) to the reset interface of the onboard network card 10 to reset the onboard network card 10. Thus, the onboard network card 10 can be switched back on the motherboard hardware again, and the onboard network card 10 can enter the working state again.
[0055] In summary, the onboard network card hot-swap control circuit of the utility model controls the main control module, whether the clock generator closes its connection with the onboard network card, whether the network card power supply supplies power to the onboard network card, and the reset control module's provision of a reset signal for the onboard network card through a switch circuit. It can completely shield or isolate the onboard network card in hardware, and can freely and flexibly switch back to the onboard network card, thereby realizing hot-swap management of the onboard network card in hardware, so as to meet the hardware hot-swap requirements of the onboard network card in some professional application fields, and facilitate seamless switching of the onboard network card in various application scenarios.
[0056] In addition to ensuring that the onboard network card is completely shielded or isolated in hardware and flexibly switched back to the onboard network card, the onboard network card hot-swap control circuit of the utility model can also cooperate with the BIOS system and the operating system to simultaneously realize the shielding or isolation of the onboard network card in hardware and the driver uninstallation in software, as well as switching back to the onboard network card in hardware and reinstalling the driver of the onboard network card in software.
[0057] During implementation, when the main control module receives the second status signal transmitted by the switch circuit and turns off the physical interface function of the PCIE interface, it can notify the operating system through the BIOS system to uninstall the driver of the onboard network card; when the main control module receives the first status signal transmitted by the switch circuit and turns on the physical interface function of the PCIE interface, it can notify the operating system through the BIOS system to install the driver of the onboard network card, thereby synchronously realizing the uninstallation of the onboard network card software.
[0058] Specifically, when the main control module receives the second state signal transmitted by the switch circuit, the main control module notifies the operating system through the BIOS system to uninstall the PCIE-related driver and turn off the physical interface function of the PCIE interface corresponding to the onboard network card; then the operating system re-enumerates all PCIE peripherals, re-mounts the corresponding peripheral drivers, and reallocates MEM and IO resources, thereby simultaneously realizing the shielding or isolation of the onboard network card in hardware and the uninstallation in software.
[0059] When the main control module receives the first state signal transmitted by the switch circuit, the main control module starts the physical interface function of the PCIE interface corresponding to the onboard network card, and notifies the operating system through the BIOS system to uninstall all PCIE related drivers. After that, the operating system re-enumerates all PCIE peripherals, re-mounts the corresponding peripheral drivers, and reallocates MEM and IO resources, thereby simultaneously switching back to the onboard network card in hardware and reinstalling the driver of the onboard network card in software.
[0060] As described above, for ordinary technicians in this field, various other corresponding changes and modifications can be made according to the technical scheme and technical concept of the utility model, and all these changes and modifications should fall within the protection scope of the claims of the utility model.
Claims
1. A hot-swap control circuit for an onboard network card, used to be arranged on a computer motherboard, characterized in that: The invention comprises an onboard network card, a network card power switch, a network card power supply, a reset control module, a clock generator, a main control module and a switch circuit, wherein the onboard network card is connected to a PCIE interface of the main control module via a PCIE bus, the onboard network card comprises a power interface, a clock interface and a reset interface, the power interface is connected to the network card power supply via the network card power switch, the clock interface is connected to the clock generator, and the reset interface is connected to the reset control module; the switch circuit comprises a first output interface and a second output interface, the first output interface is respectively connected to the main control module, the clock generator and the reset control module, the second output interface is connected to the network card power switch, the switch circuit controls the main control module to close or open the physical interface function of the PCIE interface via the first output interface, controls the clock generator to output or close the output clock signal to the clock interface, controls the reset control module to output a reset signal to the reset interface, and the switch circuit controls the network card power switch via the second output interface to connect the network card power supply with the power interface or disconnect the network card power supply with the power interface.
2. The onboard network card hot-swap control circuit according to claim 1, characterized in that: The switch circuit also includes a state switch. When the state switch is in a first state, the first output interface outputs a first state signal to the main control module, the clock generator and the reset control module, the main control module turns on the physical interface function of the PCIE interface, the clock generator outputs a clock signal to the clock interface, and the second output interface outputs a first switch signal to the network card power switch, the network card power switch connects the network card power supply and the power interface, and the network card power supplies power to the onboard network card; when the state switch is in a second state, the first output interface outputs a second state signal to the main control module, the clock generator and the reset control module, the main control module turns off the physical interface function of the PCIE interface, the clock generator turns off the output clock signal to the clock interface, the second output interface outputs a second switch signal to the network card power switch, and the network card power switch disconnects the network card power supply from the power interface; when the first output interface switches from outputting the second state signal to the reset control module to outputting the first state signal to the reset control module, the reset control module outputs the reset signal to the reset interface.
3. The onboard network card hot-swap control circuit according to claim 2, characterized in that: The switch circuit further comprises a switch unit, a control end of the switch unit is connected to an output end of the state switch, the output end of the switch unit is the first output interface; the output end of the state switch extends to the second output interface.
4. The onboard network card hot-swap control circuit according to claim 3, characterized in that: The switch unit is an NMOS field effect transistor, the gate of the NMOS field effect transistor is the control end of the switch unit, the drain of the NMOS field effect transistor is the output end of the switch unit, the drain is also connected to the P3V3SB motherboard power supply via a first resistor, and the source of the NMOS field effect transistor is grounded; when the state switch is in the first state, the output end of the state switch outputs a low level signal, and when the state switch is in the second state, the output end of the state switch outputs a high level signal.
5. The onboard network card hot-swap control circuit according to claim 3 or 4, characterized in that: The network card power switch includes a PMOS field effect tube, the gate of the PMOS field effect tube is connected to the second output interface via a third resistor, the source of the PMOS field effect tube is connected to the network card power supply, the drain of the PMOS field effect tube is connected to the power interface, and a first capacitor is connected between the gate and the drain of the PMOS field effect tube; when the state switch is in the first state, the output end of the state switch outputs a low level signal, and when the state switch is in the second state, the output end of the state switch outputs a high level signal.
6. The onboard network card hot-swap control circuit according to claim 5, characterized in that: The output terminal of the state switch is also grounded via a transient voltage suppression diode.
7. The onboard network card hot-swap control circuit according to claim 2, 3 or 4, characterized in that: The status switch is a single-pole double-throw switch, and when the status switch is in the first state, the output end of the status switch is grounded, and when the status switch is in the second state, the output end of the status switch is connected to the P3V3SB mainboard power supply via a second resistor.
8. The onboard network card hot-swap control circuit according to claim 2, characterized in that: The reset control module includes a controller and an AND gate, the network card disable input of the controller is connected to the first output interface, the network card disable output of the controller is connected to the second input of the AND gate, the first input of the AND gate introduces the SYS_PCIERST# signal of the mainboard, the output of the AND gate is connected to the reset interface of the onboard network card and grounded via a fourth resistor and a second capacitor respectively; when the first output interface switches from outputting the second state signal to the reset control module to outputting the first state signal to the reset control module, the reset control module outputs the reset signal to the reset interface after a preset time delay.
9. The onboard network card hot-swap control circuit according to claim 8, characterized in that: The controller is an embedded controller or a complex programmable logic device.
10. The onboard network card hot-swap control circuit according to claim 1, characterized in that: The main control module is a central processing unit or a platform controller hub.
