TWI720426B - Electronic apparatus and method of extending peripheral device - Google Patents

Electronic apparatus and method of extending peripheral device Download PDF

Info

Publication number
TWI720426B
TWI720426B TW108105259A TW108105259A TWI720426B TW I720426 B TWI720426 B TW I720426B TW 108105259 A TW108105259 A TW 108105259A TW 108105259 A TW108105259 A TW 108105259A TW I720426 B TWI720426 B TW I720426B
Authority
TW
Taiwan
Prior art keywords
display card
video graphics
graphics array
array display
input
Prior art date
Application number
TW108105259A
Other languages
Chinese (zh)
Other versions
TW201944215A (en
Inventor
何寬瑞
王奕翔
Original Assignee
威盛電子股份有限公司
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 威盛電子股份有限公司 filed Critical 威盛電子股份有限公司
Priority to CN201910222569.5A priority Critical patent/CN109933434B/en
Priority to US16/373,649 priority patent/US10657076B2/en
Publication of TW201944215A publication Critical patent/TW201944215A/en
Application granted granted Critical
Publication of TWI720426B publication Critical patent/TWI720426B/en

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

An electronic apparatus and a method of extending peripheral devices are provided. The electronic apparatus includes: a controller; a plurality of peripheral devices, electrically connected to the controller, wherein the plurality of peripheral devices comprise a plurality of video graphics array display cards, wherein during an initialization phase of the electronic apparatus, the controller allocates input and output resources to a first portion of the video graphics array display cards and does not allocate the input and output resources to a second portion of the video graphics array display cards, wherein the first portion of the video graphics array display cards allocated the input and output resources are used to display a image during the initialization phase.

Description

電子裝置及擴展周邊設備的方法Electronic device and method for expanding peripheral equipment

本發明是有關於一種電子裝置及擴展周邊設備的方法,且特別是有關於一種電子裝置及擴展視訊圖形陣列顯示卡的方法。The present invention relates to an electronic device and a method for expanding peripheral equipment, and more particularly to an electronic device and a method for expanding a video graphics array display card.

近幾年全球興起挖礦(Mining)熱潮,過去廣泛提供給遊戲玩家使用的顯示卡,被用來當作挖礦的礦卡。挖礦必須透過顯示卡進行運算,因此對於挖礦來說,越多張顯示卡代表越高的挖礦效率。也就是說,礦工們需要大量顯示卡以加快挖礦的速度。另一方面,虛擬實境(Virtual Reality;VR)亦需要大量的硬體運算,若可將多張顯示卡的硬體運算功能加以串接,能強化虛擬實境的即時運算應用。In recent years, there has been an upsurge in mining around the world. In the past, graphics cards that were widely provided to gamers were used as mining cards for mining. Mining must be calculated through the graphics card, so for mining, the more graphics cards represent the higher the mining efficiency. In other words, miners need a large number of graphics cards to speed up mining. On the other hand, Virtual Reality (VR) also requires a lot of hardware computing. If the hardware computing functions of multiple graphics cards can be connected in series, it can strengthen the real-time computing applications of virtual reality.

然而,在目前的電腦系統中,理論上最多能支持16張視訊圖形陣列(Video Graphics Array;VGA)顯示卡。實際上,系統中還有其他周邊設備需要輸入輸出(Input/Output;I/O)資源,因此通常僅能支持13張VGA顯示卡。為此,如何在系統中配置更多張VGA顯示卡,便成為此領域的重要課題之一。However, in current computer systems, in theory, up to 16 Video Graphics Array (VGA) display cards can be supported. In fact, there are other peripheral devices in the system that require input and output (Input/Output; I/O) resources, so usually only 13 VGA display cards can be supported. For this reason, how to configure more VGA display cards in the system has become one of the important topics in this field.

本發明提供一種電子裝置及擴展周邊設備的方法,能夠不受I/O資源配置的限制而擴充更多張VGA顯示卡。The invention provides an electronic device and a method for expanding peripheral equipment, which can expand more VGA display cards without being restricted by the configuration of I/O resources.

本發明的電子裝置,包括:控制器;以及多個周邊設備,電性連接所述控制器,其中所述多個周邊設備包括多個視訊圖形陣列(VGA)顯示卡,其中所述控制器在所述電子裝置的初始化階段時,對所述視訊圖形陣列顯示卡中的第一部分分配輸入輸出(I/O)資源,且不對所述視訊圖形陣列顯示卡中的第二部分分配所述輸入輸出資源,其中被分配所述輸入輸出資源的所述視訊圖形陣列顯示卡中的所述第一部分用以在所述初始化階段顯示畫面。The electronic device of the present invention includes: a controller; and a plurality of peripheral devices electrically connected to the controller, wherein the plurality of peripheral devices include a plurality of video graphics array (VGA) display cards, wherein the controller is During the initialization phase of the electronic device, input and output (I/O) resources are allocated to the first part of the video graphics array display card, and the input and output are not allocated to the second part of the video graphics array display card Resources, wherein the first part of the video graphics array display card to which the input and output resources are allocated is used to display a screen in the initialization phase.

本發明的擴展周邊設備的方法,包括:在電子裝置的初始化階段時,對多個周邊設備中的多個視訊圖形陣列(VGA)顯示卡中的第一部分分配輸入輸出(I/O)資源,且不對所述視訊圖形陣列顯示卡中的第二部分分配所述輸入輸出資源,其中被分配所述輸入輸出資源的所述視訊圖形陣列顯示卡中的第一部分用以在所述初始化階段顯示畫面。The method for expanding peripheral devices of the present invention includes: during the initialization phase of the electronic device, allocating input and output (I/O) resources to the first part of the multiple video graphics array (VGA) display cards in the multiple peripheral devices, And the input and output resources are not allocated to the second part of the video graphics array display card, and the first part of the video graphics array display card to which the input and output resources are allocated is used for displaying images in the initialization phase .

本發明的電子裝置,包括:控制器;晶片組;多個周邊設備,包括至少一視訊圖形陣列顯示卡,其中所述控制器及所述周邊設備透過所述晶片組相互電性連接,在所述電子裝置顯示畫面後,所述晶片組從所述控制器獲得對所述至少一視訊圖形陣列顯示卡的配置循環讀取請求,將所述配置循環讀取請求傳遞給所述至少一視訊圖形陣列顯示卡,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊,所述晶片組分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中是否具備輸入輸出資源的請求,當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,所述晶片組利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求,並且將經替換後的所述配置循環讀取資訊提供給所述控制器。The electronic device of the present invention includes: a controller; a chipset; a plurality of peripheral devices, including at least one video graphics array display card, wherein the controller and the peripheral devices are electrically connected to each other through the chipset, and After the electronic device displays the screen, the chipset obtains a configuration cyclic read request for the at least one video graphics array display card from the controller, and transmits the configuration cyclic read request to the at least one video graphics The display card is arrayed, and the configuration cycle reading information corresponding to the configuration cycle reading request is obtained therefrom. The chipset analyzes the configuration cycle reading information and determines whether the configuration cycle reading information has input and output resources When the request for the input and output resources is provided in the configuration cycle reading information, the chipset replaces the request for the input and output resources in the configuration cycle reading information with blank data, And the configuration cycle read information after the replacement is provided to the controller.

本發明的擴展周邊設備的方法,包括:在電子裝置顯示畫面後,從控制器獲得對至少一視訊圖形陣列顯示卡的配置循環讀取請求;將所述配置循環讀取請求傳遞給所述至少一視訊圖形陣列顯示卡,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊;分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中是否具備輸入輸出資源的請求;當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求;以及將經替換後的所述配置循環讀取資訊提供給所述控制器。The method for expanding peripheral equipment of the present invention includes: after the electronic device displays a screen, obtaining a configuration cyclic reading request for at least one video graphics array display card from a controller; and transmitting the configuration cyclic reading request to the at least one video graphics array display card; A video graphics array display card, from which the configuration cyclic reading information corresponding to the configuration cyclic reading request is obtained; analyzing the configuration cyclic reading information and determining whether the configuration cyclic reading information has input and output resources Request; when the configuration cyclic reading information has the request for the input and output resources, use blank data to replace the request for the input and output resources in the configuration cyclic reading information; and after the replacement The configuration of the cyclic reading information is provided to the controller.

基於上述,本發明實施例所提供的電子裝置及擴展周邊設備的方法,VGA顯示卡包括第一VGA顯示卡以及第二VGA顯示卡,藉由對第一VGA顯示卡分配I/O資源,並且不對第二VGA顯示卡分配I/O資源,而可不受I/O資源限制地擴充電子裝置中VGA顯示卡的數量,讓電子裝置在需要多個VGA顯示卡的情形下(例如,挖掘數位錢幣(又稱,挖礦)或虛擬實境)提供更高的硬體運算應用。Based on the above, in the electronic device and the method for expanding peripheral equipment provided by the embodiments of the present invention, the VGA display card includes a first VGA display card and a second VGA display card, by allocating I/O resources to the first VGA display card, and Without allocating I/O resources to the second VGA display card, the number of VGA display cards in the electronic device can be expanded without the limitation of I/O resources, so that the electronic device needs multiple VGA display cards (for example, mining digital coins). (Also known as mining) or virtual reality) provide higher hardware computing applications.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

在電腦系統中,當每一視訊圖形陣列(VGA)顯示卡宣告其需要輸入輸出(I/O)資源時,基本輸入輸出系統(Basic Input/Output System;BIOS)經常配置I/O資源給每一VGA顯示卡。然而,在x86系統中,I/O空間最大為64K位元組(byte),且依據周邊互聯標準所要求:當VGA顯示卡宣告其需要I/O資源時,若VGA顯示卡位於PCI to PCI橋接器之後,BIOS最小必須配置4K位元組的I/O空間給PCI to PCI橋接器之後的裝置(包括:VGA顯示卡),因而理論上系統最多能支持16張VGA顯示卡,此時每個PCI to PCI橋接器各接1張VGA顯示卡。在實際應用上,系統中還有其他周邊設備需要I/O資源,因此通常僅能支持13張VGA顯示卡。In a computer system, when each video graphics array (VGA) display card announces that it needs input and output (I/O) resources, the Basic Input/Output System (BIOS) often allocates I/O resources to each A VGA display card. However, in the x86 system, the maximum I/O space is 64K bytes (byte), and according to the requirements of the peripheral interconnection standard: when the VGA display card announces that it needs I/O resources, if the VGA display card is located in PCI to PCI After the bridge, the BIOS must at least configure 4K bytes of I/O space for the devices behind the PCI to PCI bridge (including: VGA display card), so theoretically the system can support up to 16 VGA display cards. Each PCI to PCI bridge is connected to a VGA display card. In practical applications, there are other peripheral devices in the system that require I/O resources, so usually only 13 VGA display cards can be supported.

本發明為了在有限的I/O資源下擴充VGA顯示卡,藉由向至少一張VGA顯示卡分配I/O資源,使得電子裝置可在初始化階段利用這張分配有I/O資源的VGA顯示卡來顯示畫面,而對不夠分配或其他要求I/O資源的VGA顯示卡(或第二張以上的VGA顯示卡)僅分配記憶體映射輸入輸出(Memory-mapped Input/Output;MMIO)資源。如此一來,在電子裝置利用被分配I/O資源的VGA顯示卡顯示畫面後,即可驅動其餘被分配MMIO資源的VGA顯示卡。藉由上述方法,可不受I/O資源限制地擴充電子裝置中VGA顯示卡的數量,讓電子裝置在需要多個VGA顯示卡的情形下(例如,挖掘數位錢幣(又稱,挖礦)或虛擬實境)提供更高的硬體運算應用。In order to expand the VGA display card under limited I/O resources, the present invention allocates I/O resources to at least one VGA display card, so that the electronic device can use this VGA display with I/O resources allocated during the initialization phase. The card is used to display the picture, and the VGA display card (or the second or more VGA display card) that is insufficiently allocated or requires I/O resources is only allocated memory-mapped input/output (MMIO) resources. In this way, after the electronic device uses the VGA display card allocated with I/O resources to display a picture, it can drive the remaining VGA display cards allocated with MMIO resources. With the above method, the number of VGA display cards in an electronic device can be expanded without limitation of I/O resources, so that the electronic device needs multiple VGA display cards (for example, mining digital coins (also known as mining) or Virtual reality) provides higher hardware computing applications.

圖1繪示本發明一實施例的電子裝置的方塊圖。請參照圖1,電子裝置100包括控制器110以及多個周邊設備。電子裝置100例如為桌上型電腦(Desktop)、筆記型電腦(Notebook)、平板電腦(Tablet PC)等X86架構、具有擴充能力以提供擴展周邊設備功能的裝置,本發明並不加以限制。FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. Please refer to FIG. 1, the electronic device 100 includes a controller 110 and a plurality of peripheral devices. The electronic device 100 is, for example, a device with an X86 architecture such as a desktop computer (Desktop), a notebook computer (Notebook), a tablet computer (Tablet PC), etc., which has an expansion capability to provide expanded peripheral device functions, and the present invention is not limited.

為易於描述,本實施例的電子裝置100包括周邊設備121、周邊設備122及周邊設備123,然而周邊設備的數量本發明並不加以限制。周邊設備121、周邊設備122及周邊設備123電性連接控制器110,且周邊設備121、周邊設備122及周邊設備123中至少一者為VGA顯示卡。值得一提的是,非VGA顯示卡的周邊設備例如為網路卡、音效卡、數據機、電視卡、硬碟控制器、USB及串列埠等,本發明並不加以限制。For ease of description, the electronic device 100 of this embodiment includes a peripheral device 121, a peripheral device 122, and a peripheral device 123, but the number of peripheral devices is not limited in the present invention. The peripheral device 121, the peripheral device 122, and the peripheral device 123 are electrically connected to the controller 110, and at least one of the peripheral device 121, the peripheral device 122, and the peripheral device 123 is a VGA display card. It is worth mentioning that the non-VGA display card peripheral devices are, for example, network cards, audio cards, modems, TV cards, hard disk controllers, USB and serial ports, etc., which are not limited by the present invention.

控制器110在電子裝置100的初始化階段控制顯示畫面。控制器110例如為中央處理器(CPU)或是基本輸入輸出系統(BIOS),本發明並不加以限制。The controller 110 controls the display screen during the initialization phase of the electronic device 100. The controller 110 is, for example, a central processing unit (CPU) or a basic input output system (BIOS), which is not limited by the present invention.

為了能夠在有限的輸入輸出(I/O)資源下擴展周邊設備,本發明實施例的控制器110在電子裝置100的初始化階段時,對多個VGA顯示卡中的第一部分分配I/O資源,且不對多個VGA顯示卡中的第二部分分配I/O資源,其中多個VGA顯示卡中的第一部分VGA顯示卡可視為第一VGA顯示卡;多個VGA顯示卡中的第二部分VGA顯示卡可視為第二VGA顯示卡。如此一來,電子裝置100可在初始化階段利用被分配I/O資源的VGA顯示卡控制顯示畫面,之後,便可顯示其餘未被分配I/O資源的VGA顯示卡的畫面,藉此可不受硬體限制地擴充電子裝置中VGA顯示卡的數量。In order to be able to expand peripheral equipment under limited input and output (I/O) resources, the controller 110 of the embodiment of the present invention allocates I/O resources to the first part of the multiple VGA display cards during the initialization phase of the electronic device 100 , And does not allocate I/O resources to the second part of the multiple VGA display cards, where the first part of the multiple VGA display cards can be regarded as the first VGA display card; the second part of the multiple VGA display cards The VGA display card can be regarded as the second VGA display card. In this way, the electronic device 100 can use the VGA display card to which I/O resources are allocated to control the display screen during the initialization phase, and then can display the screens of other VGA display cards that have not been allocated I/O resources. The hardware limits the expansion of the number of VGA display cards in the electronic device.

圖2繪示本發明一實施例的擴展周邊設備的方法的詳細流程圖。圖2實施例的擴展周邊設備的方法適用於圖1實施例的電子裝置100。以下將參照圖1實施例的各項元件來詳細說明圖2實施例的擴展周邊設備的方法。FIG. 2 shows a detailed flowchart of a method for expanding peripheral devices according to an embodiment of the present invention. The method for expanding peripheral devices in the embodiment in FIG. 2 is applicable to the electronic device 100 in the embodiment in FIG. 1. Hereinafter, the method for expanding the peripheral device of the embodiment of FIG. 2 will be described in detail with reference to various elements of the embodiment of FIG. 1.

首先,控制器110判斷多個周邊設備中的VGA顯示卡的數量(步驟S220)。具體而言,控制器110依據周邊設備配置頭(Configuration Header)的設備資訊,例如設備標識(Device Identification)、供應商標識(vendor Identification),來判斷周邊設備是否為VGA顯示卡,並藉此獲取電子裝置100中VGA顯示卡的數量。隨後,控制器110判斷VGA顯示卡的數量是否大於或等於2。First, the controller 110 determines the number of VGA display cards in a plurality of peripheral devices (step S220). Specifically, the controller 110 determines whether the peripheral device is a VGA display card according to the device information of the peripheral device configuration header (Configuration Header), such as device identification (Device Identification) and vendor identification (vendor identification), and obtains it accordingly. The number of VGA display cards in the electronic device 100. Subsequently, the controller 110 determines whether the number of VGA display cards is greater than or equal to two.

在一實施例中,若VGA顯示卡的數量未大於或等於2(即為1),控制器110將VGA顯示卡視為需要分配I/O資訊的VGA顯示卡,即在上述說明中,多個VGA顯示卡會包括第一部分和第二部分,而所述的僅有一個的VGA顯示卡是屬於上述說明中的「多個VGA顯示卡的第一部分,但數量為1」(步驟S240)。In one embodiment, if the number of VGA display cards is not greater than or equal to 2 (that is, 1), the controller 110 regards the VGA display card as a VGA display card that needs to allocate I/O information. That is, in the above description, more A VGA display card will include a first part and a second part, and the only one VGA display card belongs to the "first part of multiple VGA display cards, but the number is 1" in the above description (step S240).

詳言之,在步驟S240中,因為VGA顯示卡的數量為1,控制器110優先將VGA顯示卡定義為第一VGA顯示卡(步驟S242)。即,第一VGA顯示卡屬於上述說明的「多個VGA顯示卡中的第一部分」。In detail, in step S240, because the number of VGA display cards is 1, the controller 110 preferentially defines the VGA display card as the first VGA display card (step S242). That is, the first VGA display card belongs to the "first part of multiple VGA display cards" described above.

在對VGA顯示卡進行定義後,控制器110判斷各VGA顯示卡是否為第一VGA顯示卡(步驟S244)。詳細而言,假設多個VGA顯示卡定義成第一和第二VGA顯示卡等兩種以上類型的VGA顯示卡,控制器110會判斷VGA顯示卡是否為第一VGA顯示卡(也就是多個VGA顯示卡的第一部分),以決定是否對VGA顯示卡分配I/O資源。After the VGA display card is defined, the controller 110 determines whether each VGA display card is the first VGA display card (step S244). In detail, assuming that multiple VGA display cards are defined as two or more types of VGA display cards such as the first and second VGA display cards, the controller 110 will determine whether the VGA display card is the first VGA display card (that is, multiple VGA display cards). The first part of the VGA display card) to determine whether to allocate I/O resources to the VGA display card.

若在步驟S244中控制器110判斷VGA顯示卡為第一VGA顯示卡,則控制器110對所述VGA顯示卡分配I/O資源(步驟S246)。具體而言,控制器110在所述VGA顯示卡中的基本位址暫存器(Base Address Register;BAR)中配置I/O資源,並且將命令暫存器(Command Register)中I/O空間位元(IO Space bit)設置為1。基此,在致能I/O空間位元之後,控制器110才能訪問VGA顯示卡的I/O位址空間。If the controller 110 determines that the VGA display card is the first VGA display card in step S244, the controller 110 allocates I/O resources to the VGA display card (step S246). Specifically, the controller 110 configures I/O resources in the Base Address Register (BAR) of the VGA display card, and sets the I/O space in the Command Register (Command Register) The bit (IO Space bit) is set to 1. Based on this, after the I/O space bit is enabled, the controller 110 can access the I/O address space of the VGA display card.

舉例來說,請參照圖1,周邊設備121、周邊設備122及周邊設備123中僅周邊設備121為VGA顯示卡,控制器110即判斷周邊設備中的VGA顯示卡的數量為1,且定義周邊設備121為第一VGA顯示卡,並對周邊設備121分配I/O資源。For example, referring to Figure 1, only the peripheral device 121 of the peripheral device 121, the peripheral device 122, and the peripheral device 123 is a VGA display card. The controller 110 determines that the number of VGA display cards in the peripheral device is 1, and defines the peripheral The device 121 is the first VGA display card and allocates I/O resources to the peripheral device 121.

值得一提的是,在另一實施例中,在控制器110判斷VGA顯示卡的數量不大於或等於2(即為1)後,控制器110不需執行步驟S242及步驟S244而直接將I/O資源分配給所述VGA顯示卡。詳細來說,控制器110分配I/O資源的方式如步驟S246所述,在此便不再次撰述。It is worth mentioning that, in another embodiment, after the controller 110 determines that the number of VGA display cards is not greater than or equal to 2 (that is, 1), the controller 110 does not need to perform steps S242 and S244 but directly /O resources are allocated to the VGA display card. In detail, the method for the controller 110 to allocate I/O resources is as described in step S246, and will not be described again here.

在另一實施例中,若VGA顯示卡的數量大於或等於2,控制器110依序訪問各個周邊設備中的多個基本位址暫存器(BAR)以取得周邊設備所需的記憶體資源要求,以決定對周邊設備中的多個VGA顯示卡的第一部分分配I/O資源,並初始化上述的VGA顯示卡的第一部分(步驟S260)。具體而言,控制器110依據各個周邊設備中的每個BAR的第0位元判斷各個周邊設備每個BAR需要I/O資源或MMIO資源,若BAR的第0位元為1,則所述周邊設備請求I/O資源;若BAR的第0位元為0,則所述周邊設備請求MMIO資源。接著,取得此周邊設備所需的空間大小。In another embodiment, if the number of VGA display cards is greater than or equal to 2, the controller 110 sequentially accesses a plurality of basic address registers (BAR) in each peripheral device to obtain the memory resources required by the peripheral device It is required to determine the allocation of I/O resources to the first part of the multiple VGA display cards in the peripheral device, and to initialize the first part of the above-mentioned VGA display card (step S260). Specifically, the controller 110 determines that each of the peripheral devices requires I/O resources or MMIO resources according to the 0th bit of each BAR in each peripheral device. If the 0th bit of the BAR is 1, the The peripheral device requests I/O resources; if the 0th bit of the BAR is 0, the peripheral device requests MMIO resources. Then, obtain the space required by this peripheral device.

詳言之,在步驟S260中,若控制器110在取得周邊設備所需的I/O資源要求後發現:需要I/O資源,但I/O空間不足,控制器110將多個的VGA顯示卡分別定義為第一VGA顯示卡以及至少一第二VGA顯示卡(步驟S262)。也就是說,多張VGA顯示卡包括第一VGA顯示卡以及至少一第二VGA顯示卡。特別是,第一VGA顯示卡是屬於上述說明的「多個VGA顯示卡中的第一部分」,且至少一第二VGA顯示卡是屬於上述說明的「多個VGA顯示卡中的第二部分」。In detail, in step S260, if the controller 110 finds after obtaining the I/O resource requirements required by the peripheral device: I/O resources are needed, but the I/O space is insufficient, the controller 110 displays multiple VGAs The cards are respectively defined as a first VGA display card and at least one second VGA display card (step S262). That is, the multiple VGA display cards include a first VGA display card and at least one second VGA display card. In particular, the first VGA display card belongs to the "first part of multiple VGA display cards" described above, and at least one second VGA display card belongs to the "second part of multiple VGA display cards" described above. .

在對多個VGA顯示卡進行定義後,控制器110判斷各VGA顯示卡是否為第一VGA顯示卡(步驟S244)。詳細而言,控制器110依序判斷各VGA顯示卡是否為第一VGA顯示卡(也就是多個VGA顯示卡的第一部分),以決定是否對各VGA顯示卡分配I/O資源。After defining the multiple VGA display cards, the controller 110 determines whether each VGA display card is the first VGA display card (step S244). In detail, the controller 110 sequentially determines whether each VGA display card is the first VGA display card (that is, the first part of multiple VGA display cards) to determine whether to allocate I/O resources to each VGA display card.

若在步驟S244中控制器110判斷VGA顯示卡為第一VGA顯示卡,則對所述VGA顯示卡分配I/O資源(步驟S246)。若在步驟S244中控制器110判斷VGA顯示卡並非為第一VGA顯示卡,則不對所述VGA顯示卡分配I/O資源(步驟S266)。具體而言,控制器110在第一VGA顯示卡的BAR中配置I/O資源,並且將命令暫存器中I/O空間位元設置為1。基此,在致能I/O空間位元之後,控制器110才能訪問VGA顯示卡的I/O位址空間。If the controller 110 determines that the VGA display card is the first VGA display card in step S244, it will allocate I/O resources to the VGA display card (step S246). If the controller 110 determines in step S244 that the VGA display card is not the first VGA display card, it does not allocate I/O resources to the VGA display card (step S266). Specifically, the controller 110 configures the I/O resource in the BAR of the first VGA display card, and sets the I/O space bit in the command register to 1. Based on this, after the I/O space bit is enabled, the controller 110 can access the I/O address space of the VGA display card.

在此需特別注意的是,對於不分配I/O資源的第二VGA顯示卡,其配置資源的方式如下:在一實施例中,控制器110在第二VGA顯示卡的BAR中配置MMIO資源,並且將命令暫存器中I/O空間位元設置為0以及記憶體空間位元(Memory Space bit)設置為1。基此,在致能記憶體空間位元之後,控制器110才能訪問VGA顯示卡的MMIO位址空間。It should be noted here that for the second VGA display card that does not allocate I/O resources, the way to configure resources is as follows: In one embodiment, the controller 110 configures MMIO resources in the BAR of the second VGA display card. , And set the I/O space bit in the command register to 0 and the Memory Space bit to 1. Based on this, the controller 110 can access the MMIO address space of the VGA display card after the memory space bit is enabled.

舉例來說,請參照圖1,周邊設備121、周邊設備122及周邊設備123中周邊設備121及周邊設備122為VGA顯示卡,控制器110即判斷周邊設備中的VGA顯示卡的數量為2,且依序訪問周邊設備121、周邊設備122及周邊設備123中的基本位址暫存器(BAR)以取得周邊設備121、周邊設備122及周邊設備123所需的記憶體資源要求,並定義周邊設備121為第一VGA顯示卡、周邊設備122為第二VGA顯示卡。接著,控制器110對周邊設備121分配I/O資源,並初始化周邊設備121,且對周邊設備122分配MMIO資源。For example, referring to FIG. 1, the peripheral device 121, the peripheral device 122, and the peripheral device 123 among the peripheral device 121 and the peripheral device 122 are VGA display cards, and the controller 110 determines that the number of VGA display cards in the peripheral device is 2. And sequentially access the basic address register (BAR) in the peripheral device 121, the peripheral device 122, and the peripheral device 123 to obtain the memory resource requirements of the peripheral device 121, the peripheral device 122, and the peripheral device 123, and define the peripheral device The device 121 is a first VGA display card, and the peripheral device 122 is a second VGA display card. Next, the controller 110 allocates I/O resources to the peripheral device 121, initializes the peripheral device 121, and allocates MMIO resources to the peripheral device 122.

值得說明的是,在一實施例中,控制器110可以僅定義一張VGA顯示卡為第一VGA顯示卡,且其餘的VGA顯示卡皆為第二VGA顯示卡。在其他實施例中,控制器110可以定義多張VGA顯示卡為第一VGA顯示卡,但以不超過I/O資源的空間為限。舉例來說,若總共有17張VGA顯示卡,控制器110可定義13張VGA顯示卡(實際上系統可配置I/O資源的VGA顯示卡的數量)為第一VGA顯示卡、4張VGA顯示卡為第二VGA顯示卡。It is worth noting that, in one embodiment, the controller 110 may define only one VGA display card as the first VGA display card, and the remaining VGA display cards are all the second VGA display cards. In other embodiments, the controller 110 may define multiple VGA display cards as the first VGA display card, but the space that does not exceed the I/O resources is limited. For example, if there are a total of 17 VGA display cards, the controller 110 can define 13 VGA display cards (actually the number of VGA display cards for which the system can configure I/O resources) as the first VGA display card and 4 VGA display cards. The display card is the second VGA display card.

圖3繪示本發明另一實施例的電子裝置的方塊圖。請參照圖3,圖3中的控制器110、多個周邊設備(周邊設備121、周邊設備122、周邊設備123)相同於圖1的控制器110、多個周邊設備(周邊設備121、周邊設備122、周邊設備123),然而周邊設備的數量本發明並不加以限制。兩者不同之處在於,圖3的電子裝置300更包括晶片組330,並且所述晶片組330包括快捷外設互聯標準(PCI-E)橋接器340,所述PCI-E橋接器340包括至少一PCI-E根端口(Root Port)341,控制器110透過對應的PCI-E根端口341與周邊設備121、周邊設備122及周邊設備123相互通訊。FIG. 3 is a block diagram of an electronic device according to another embodiment of the invention. 3, the controller 110, multiple peripheral devices (peripheral device 121, peripheral device 122, peripheral device 123) in FIG. 3 are the same as the controller 110, multiple peripheral devices (peripheral device 121, peripheral device 123) in FIG. 122. Peripheral devices 123), however, the number of peripheral devices is not limited by the present invention. The difference between the two is that the electronic device 300 in FIG. 3 further includes a chipset 330, and the chipset 330 includes a PCI-E bridge 340, and the PCI-E bridge 340 includes at least A PCI-E root port (Root Port) 341, the controller 110 communicates with the peripheral device 121, the peripheral device 122, and the peripheral device 123 through the corresponding PCI-E root port 341.

在本實施例中,先假設當挖礦模式(Mining Mode)或虛擬實境模式(VR Mode)無法致能,也就是對不分配I/O資源的第二VGA顯示卡(VGA顯示卡中的第二部分)無法致能時,晶片組330對於第二VGA顯示卡進行以下操作。為易於描述,在本實施例中,周邊設備121被分類為不分配I/O資源的第二VGA顯示卡。In this embodiment, it is assumed that the mining mode (Mining Mode) or the virtual reality mode (VR Mode) cannot be enabled, that is, for the second VGA display card (the second VGA display card in the VGA display card) that does not allocate I/O resources. Part 2) When it is unable to enable, the chipset 330 performs the following operations on the second VGA display card. For ease of description, in this embodiment, the peripheral device 121 is classified as a second VGA display card that does not allocate I/O resources.

圖4繪示本發明另一實施例的擴展周邊設備的方法的詳細流程圖。圖4實施例的擴展周邊設備的方法適用於圖3實施例的電子裝置300。以下將參照圖3實施例的各項元件來詳細說明圖4實施例的擴展周邊設備的方法。FIG. 4 shows a detailed flowchart of a method for expanding a peripheral device according to another embodiment of the present invention. The method for expanding peripheral devices in the embodiment in FIG. 4 is applicable to the electronic device 300 in the embodiment in FIG. 3. Hereinafter, the method for expanding the peripheral device of the embodiment of FIG. 4 will be described in detail with reference to various elements of the embodiment of FIG. 3.

首先,晶片組330從控制器110獲得對周邊設備121的配置循環(Configuration Cycle;CFG)讀取請求(步驟S410)。First, the chipset 330 obtains a configuration cycle (CFG) read request for the peripheral device 121 from the controller 110 (step S410).

接著,晶片組330將配置循環讀取請求傳遞給周邊設備121,並從周邊設備121獲得配置循環讀取請求對應的配置循環讀取資訊(步驟S420)。具體而言,晶片組330透過PCI-E根端口341將配置循環讀取請求傳遞給周邊設備121,並從周邊設備121獲得配置循環讀取請求對應的配置循環讀取數據(CFG read data)。Next, the chipset 330 transmits the configuration cycle read request to the peripheral device 121, and obtains the configuration cycle read information corresponding to the configuration cycle read request from the peripheral device 121 (step S420). Specifically, the chipset 330 transmits the configuration cycle read request to the peripheral device 121 through the PCI-E root port 341, and obtains the configuration cycle read data (CFG read data) corresponding to the configuration cycle read request from the peripheral device 121.

然後,晶片組330分析周邊設備121的配置循環讀取資訊並判斷配置循環讀取資訊中是否具備I/O資源的請求(步驟S430)。詳細而言,晶片組330取得周邊設備121的配置循環讀取地址offset 0x10至0x27中的資訊(即為BAR的資訊),若在配置循環讀取地址offset 0x10至0x27中具有位元0及位元1分別為1與0的BAR,則表示周邊設備121具備I/O資源的請求。相對地,若在配置循環讀取地址offset 0x10至0x27中具有位元0為0的BAR,則表示周邊設備121具備MMIO資源的請求。Then, the chipset 330 analyzes the configuration cycle reading information of the peripheral device 121 and determines whether there is a request for I/O resources in the configuration cycle reading information (step S430). In detail, the chipset 330 obtains the information in the configuration cycle read address offset 0x10 to 0x27 of the peripheral device 121 (that is, the information of the BAR). If the configuration cycle read address offset 0x10 to 0x27 has bit 0 and bit Element 1 is a BAR of 1 and 0, which means that the peripheral device 121 has a request for I/O resources. In contrast, if there is a BAR with bit 0 being 0 in the configuration cycle read address offset 0x10 to 0x27, it means that the peripheral device 121 has a request for MMIO resources.

若在步驟S430中晶片組330判斷配置循環讀取資訊中不具備I/O資源的請求,則分配周邊設備121所請求的資源給周邊設備121(步驟S440)。具體而言,若周邊設備121請求MMIO資源,則晶片組330分配MMIO資源給周邊設備121。If the chipset 330 determines in step S430 that there is no request for I/O resources in the configuration cycle read information, the resource requested by the peripheral device 121 is allocated to the peripheral device 121 (step S440). Specifically, if the peripheral device 121 requests MMIO resources, the chipset 330 allocates MMIO resources to the peripheral device 121.

若在步驟S430中晶片組330判斷配置循環讀取資訊中具備I/O資源的請求,則利用空白數據替換配置循環讀取資訊中I/O資源的請求(步驟S450)。詳細而言,晶片組330利用0x00000000替換配置循環讀取地址offset 0x10至0x27中I/O資源的請求。If the chipset 330 determines in step S430 that there is a request for I/O resources in the configuration cyclic reading information, blank data is used to replace the I/O resource request in the configuration cyclic reading information (step S450). In detail, the chipset 330 uses 0x00000000 to replace the configuration cyclically reading the I/O resource request in the address offset 0x10 to 0x27.

最後,晶片組330將經替換後的配置循環讀取資訊提供給控制器110(步驟S460)。具體而言,控制器110讀取替換後的配置循環讀取數據,藉此,晶片組330對控制器110隱藏周邊設備121對於I/O資源的請求,而不影響周邊設備121對於MMIO資源的請求,使得控制器110分配MMIO資源給周邊設備121。值得一提的是,以往的晶片組並不會對控制器去隱藏周邊設備對於I/O資源的請求,但在本實施例中,因為晶片組可以利用空白數據替換配置循環讀取資訊中I/O資源的請求,所以可以隱藏周邊設備對於I/O資源的請求。Finally, the chipset 330 provides the replaced configuration cycle reading information to the controller 110 (step S460). Specifically, the controller 110 reads the replaced configuration and reads data cyclically, so that the chipset 330 hides the peripheral device 121 requests for I/O resources from the controller 110 without affecting the peripheral device 121's MMIO resource request. The request causes the controller 110 to allocate MMIO resources to the peripheral device 121. It is worth mentioning that the previous chipset does not hide the peripheral device's request for I/O resources from the controller, but in this embodiment, because the chipset can use blank data to replace the configuration and read the information in a loop. /O resource request, so you can hide the peripheral device's request for I/O resource.

在一實施例中,在晶片組330將經替換後的配置循環讀取資訊提供給控制器110後,晶片組330還記錄周邊設備121(步驟S470)。詳細而言,晶片組330將周邊設備121的資訊紀錄於查找表中,查找表的資訊包括周邊設備121的總線號、設備號及功能號(Bus/Dev/Fun)以及是否對第二VGA顯示卡(不分配I/O資源的VGA顯示卡)致能。在本實施例中,晶片組330記錄周邊設備121為「致能」。舉例來說,周邊設備121的資訊如表一所示。當第二VGA顯示卡為致能狀態,表示周邊設備121定義為不分配I/O資源的VGA顯示卡,而可以在挖礦模式(Mining Mode)或虛擬實境模式操作。 <表一>

Figure 108105259-A0304-0001
In one embodiment, after the chip set 330 provides the replaced configuration cycle reading information to the controller 110, the chip set 330 also records the peripheral device 121 (step S470). In detail, the chipset 330 records the information of the peripheral device 121 in a look-up table. The information in the look-up table includes the bus number, device number and function number (Bus/Dev/Fun) of the peripheral device 121 and whether to display to the second VGA The card (VGA display card that does not allocate I/O resources) is enabled. In this embodiment, the chipset 330 records that the peripheral device 121 is "enabled". For example, the information of the peripheral device 121 is shown in Table 1. When the second VGA display card is in the enabled state, it means that the peripheral device 121 is defined as a VGA display card that does not allocate I/O resources, and can operate in a mining mode (Mining Mode) or a virtual reality mode. <Table 1>
Figure 108105259-A0304-0001

接著,晶片組330更可進一步修改周邊設備121中的命令暫存器(Command Register),以不分配IO BAR中對於I/O資源的請求(步驟S480)。詳細而言,晶片組330從控制器110獲得對周邊設備121的配置循環寫入請求,若配置循環寫入請求中的目標裝置的總線資訊/設備資訊/功能資訊記載於查找表中,且寫入請求的地址為命令暫存器,晶片組330將所述目標裝置中命令暫存器的I/O空間位元記載為0,並且修改周邊設備121中的命令暫存器。Then, the chipset 330 can further modify the command register (Command Register) in the peripheral device 121 so as not to allocate the request for I/O resources in the IO BAR (step S480). In detail, the chipset 330 obtains the configuration cycle write request for the peripheral device 121 from the controller 110, if the bus information/device information/function information of the target device in the configuration cycle write request is recorded in the lookup table, and write The address of the input request is the command register. The chipset 330 records the I/O space bit of the command register in the target device as 0, and modifies the command register in the peripheral device 121.

值得一提的是,在一實施例中,上述晶片組330所進行的操作(如:步驟S450)可以是由晶片組330的PCI-E橋接器340中的PCI-E根端口341來執行。因此,由上述實施例以及對應的圖3和圖4可知,雖然晶片組330判斷配置循環讀取資訊中具備I/O資源的請求,但是PCI-E橋接器340透過利用空白數據替換配置循環讀取資訊中I/O資源的請求,而使晶片組330不分配I/O資源給對應的周邊設備121。如此一來,可以減少I/O資源的使用,以解決I/O使用空間的限制。It is worth mentioning that, in one embodiment, the operations performed by the chipset 330 (eg, step S450) may be performed by the PCI-E root port 341 in the PCI-E bridge 340 of the chipset 330. Therefore, it can be seen from the above-mentioned embodiment and corresponding Figures 3 and 4 that although the chipset 330 determines that there is a request for I/O resources in the configuration cyclic reading information, the PCI-E bridge 340 replaces the configuration cyclic reading with blank data. The I/O resource request in the information is taken, and the chipset 330 does not allocate the I/O resource to the corresponding peripheral device 121. In this way, the use of I/O resources can be reduced to solve the limitation of I/O usage space.

圖5繪示本發明另一實施例的電子裝置的方塊圖。請參照圖5,圖5中的控制器110、多個周邊設備(周邊設備121、周邊設備122、周邊設備123)、晶片組330相同於圖3的控制器110、多個周邊設備(周邊設備121、周邊設備122、周邊設備123)、晶片組330,然而周邊設備的數量本發明並不加以限制。兩者不同之處在於,圖5的電子裝置500更包括至少一PCI-E切換器(Switch)550,特別是,所述PCI-E切換器可被視為周邊設備。FIG. 5 is a block diagram of an electronic device according to another embodiment of the invention. Please refer to FIG. 5. In FIG. 5, the controller 110, multiple peripheral devices (peripheral device 121, peripheral device 122, peripheral device 123), and chipset 330 are the same as the controller 110 in FIG. 3, and multiple peripheral devices (peripheral devices) 121, peripheral equipment 122, peripheral equipment 123), and chipset 330. However, the number of peripheral equipment is not limited by the present invention. The difference between the two is that the electronic device 500 of FIG. 5 further includes at least one PCI-E switch (Switch) 550. In particular, the PCI-E switch can be regarded as a peripheral device.

為易於描述,本實施例的電子裝置500包括PCI-E切換器550,然而PCI-E切換器的數量本發明並不加以限制。PCI-E切換器550電性耦接至PCI-E根端口341,周邊設備121、周邊設備122、周邊設備123直接電性連接至PCI-E切換器550,且控制器110透過晶片組330中的PCI-E橋接器340的PCI-E根端口341以及PCI-E切換器550與周邊設備121、周邊設備122、周邊設備123相互通訊。For ease of description, the electronic device 500 of this embodiment includes a PCI-E switch 550, but the number of PCI-E switches is not limited in the present invention. The PCI-E switch 550 is electrically coupled to the PCI-E root port 341, the peripheral device 121, the peripheral device 122, and the peripheral device 123 are directly electrically connected to the PCI-E switch 550, and the controller 110 is in the chipset 330 The PCI-E root port 341 of the PCI-E bridge 340 and the PCI-E switch 550 communicate with the peripheral device 121, the peripheral device 122, and the peripheral device 123.

在本實施例中,先假設當挖礦模式(Mining Mode)或虛擬實境模式(VR Mode)無法致能,也就是對不分配I/O資源的第二VGA顯示卡(VGA顯示卡中的第二部分)無法致能時,晶片組330對於第二VGA顯示卡進行以下操作。為易於描述,在本實施例中,周邊設備121被分類為不分配I/O資源的第二VGA顯示卡,而周邊設備122及周邊設備123非為VGA顯示卡。In this embodiment, it is assumed that the mining mode (Mining Mode) or the virtual reality mode (VR Mode) cannot be enabled, that is, for the second VGA display card (the second VGA display card in the VGA display card) that does not allocate I/O resources. Part 2) When it is unable to enable, the chipset 330 performs the following operations on the second VGA display card. For ease of description, in this embodiment, the peripheral device 121 is classified as a second VGA display card that does not allocate I/O resources, and the peripheral device 122 and the peripheral device 123 are not VGA display cards.

圖6繪示本發明另一實施例的擴展周邊設備的方法的一部分詳細流程圖。圖6實施例的擴展周邊設備的方法適用於圖5實施例的電子裝置500。以下將參照圖5實施例的各項元件來詳細說明圖6實施例的擴展周邊設備的方法。在此須特別注意的是,電子裝置500的晶片組330在執行完圖6的步驟流程後,接續執行圖4的類似步驟流程(如:步驟S410~S480)。FIG. 6 shows a detailed flowchart of a part of a method for expanding a peripheral device according to another embodiment of the present invention. The method for expanding peripheral devices in the embodiment in FIG. 6 is applicable to the electronic device 500 in the embodiment in FIG. 5. Hereinafter, the method for expanding the peripheral device of the embodiment of FIG. 6 will be described in detail with reference to various elements of the embodiment of FIG. 5. It should be particularly noted here that after the chip set 330 of the electronic device 500 executes the step flow of FIG. 6, it continues to execute the similar step flow of FIG. 4 (eg, steps S410 to S480).

首先,晶片組330從控制器110獲得對周邊設備的配置循環(Configuration Cycle;CFG)讀取請求(步驟S610)。First, the chipset 330 obtains a configuration cycle (CFG) read request for peripheral devices from the controller 110 (step S610).

接著,晶片組330將配置循環讀取請求傳遞給周邊設備,並從周邊設備獲得配置循環讀取請求對應的配置循環讀取資訊(步驟S620)。具體而言,晶片組330透過PCI-E根端口341將配置循環讀取請求傳遞給PCI-E切換器550。之後,PCI-E切換器550將配置循環讀取請求傳遞給周邊設備121、周邊設備122、周邊設備123,並從周邊設備121、周邊設備122、周邊設備123獲得配置循環讀取請求對應的配置循環讀取數據(CFG read data)。在PCI-E切換器550獲得配置循環讀取請求對應的配置循環讀取數據後,晶片組330從PCI-E切換器550獲得配置循環讀取請求對應的配置循環讀取數據。Next, the chipset 330 transmits the configuration cycle read request to the peripheral device, and obtains the configuration cycle read information corresponding to the configuration cycle read request from the peripheral device (step S620). Specifically, the chipset 330 transmits the configuration cycle read request to the PCI-E switch 550 through the PCI-E root port 341. After that, the PCI-E switch 550 transmits the configuration cycle read request to the peripheral device 121, peripheral device 122, and peripheral device 123, and obtains the configuration corresponding to the configuration cycle read request from the peripheral device 121, peripheral device 122, and peripheral device 123 CFG read data (CFG read data). After the PCI-E switch 550 obtains the configuration cycle read data corresponding to the configuration cycle read request, the chipset 330 obtains the configuration cycle read data corresponding to the configuration cycle read request from the PCI-E switch 550.

然後,晶片組330分析周邊設備的配置循環讀取資訊並判斷配置循環讀取資訊中的設備資訊(例如:設備標識(Device Identification)、供應商標識(vendor Identification))是否為VGA顯示卡(步驟S630)。詳細而言,晶片組330取得周邊設備121、周邊設備122、周邊設備123、PCI-E切換器550的配置循環讀取地址offset 0x0E的資訊(即為配置頭的資訊),若配置循環讀取地址offset 0x0E的資訊為0x00,則表示周邊設備為VGA顯示卡。相對地,若配置循環讀取地址offset 0x0E的資訊不為0x00,則表示周邊設備不為VGA顯示卡。舉例來說,若配置循環讀取地址offset 0x0E的資訊為0x01,因為offset 0x0E的資訊不為0x00,則表示周邊設備為PCI-E切換器。Then, the chipset 330 analyzes the configuration cyclic reading information of the peripheral devices and determines whether the device information (for example: Device Identification, vendor Identification) in the configuration cyclic reading information is a VGA display card (step S630). In detail, the chipset 330 obtains the configuration of the peripheral device 121, the peripheral device 122, the peripheral device 123, and the PCI-E switch 550 to read the information of the address offset 0x0E (that is, the information of the configuration header), if the configuration is read in a cycle The information of the address offset 0x0E is 0x00, which means that the peripheral device is a VGA display card. In contrast, if the information configured to read the address offset 0x0E cyclically is not 0x00, it means that the peripheral device is not a VGA display card. For example, if the configuration cyclic read address offset 0x0E information is 0x01, because the offset 0x0E information is not 0x00, it means that the peripheral device is a PCI-E switch.

若在步驟S630中晶片組330判斷周邊設備為VGA顯示卡,則記錄周邊設備(步驟S640)。若在步驟S630中晶片組330判斷周邊設備不為VGA顯示卡,則不記錄周邊設備(步驟S650)。具體而言,晶片組330判斷周邊設備121為VGA顯示卡,晶片組330將周邊設備121的資訊紀錄於查找表中,查找表的資訊包括周邊設備121的總線號、設備號及功能號(Bus/Dev/Fun)以及將周邊設備121的有效位元記錄為「致能」(代表周邊設備121為VGA顯示卡)。舉例來說,如表二所示的第一項目的資訊。相對地,晶片組330判斷周邊設備122、周邊設備123、PCI-E切換器550不為VGA顯示卡,則不記錄周邊設備122、周邊設備123、PCI-E切換器550於查找表中。 <表二>

Figure 108105259-A0304-0002
If the chipset 330 determines that the peripheral device is a VGA display card in step S630, the peripheral device is recorded (step S640). If the chipset 330 determines that the peripheral device is not a VGA display card in step S630, the peripheral device is not recorded (step S650). Specifically, the chipset 330 determines that the peripheral device 121 is a VGA display card, and the chipset 330 records the information of the peripheral device 121 in a look-up table. The information in the look-up table includes the bus number, device number, and function number of the peripheral device 121 (Bus /Dev/Fun) and record the effective bits of the peripheral device 121 as "enabled" (representing that the peripheral device 121 is a VGA display card). For example, the information of the first item is shown in Table 2. In contrast, the chipset 330 determines that the peripheral device 122, the peripheral device 123, and the PCI-E switch 550 are not VGA display cards, and does not record the peripheral device 122, the peripheral device 123, and the PCI-E switch 550 in the look-up table. <Table 2>
Figure 108105259-A0304-0002

在完成此查找表後,因為查找表中有致能的VGA顯示卡(例如:周邊設備121為VGA顯示卡),所以對於查找表中記載的VGA顯示卡,晶片組330可以執行相同於圖4的類似步驟流程。即,如圖3的晶片組330透過利用空白數據替換配置循環讀取資訊中I/O資源的請求,可以使控制器110不分配IO資源給原本請求I/O資源的周邊設備121,而減少I/O資源的使用,甚至可進入挖礦模式(Mining Mode)或虛擬實境模式(VR Mode)。值得一提的是,以往的晶片組並不會對控制器去隱藏周邊設備對於I/O資源的請求,但在本實施例中,因為晶片組可以利用空白數據替換配置循環讀取資訊中I/O資源的請求,所以可以隱藏周邊設備對於I/O資源的請求。After completing this look-up table, because there are enabled VGA display cards in the look-up table (for example, the peripheral device 121 is a VGA display card), the chipset 330 can perform the same as that shown in Figure 4 for the VGA display card recorded in the look-up table. Similar steps flow. That is, the chipset 330 of FIG. 3 replaces the request for I/O resources in the configuration cycle reading information with blank data, so that the controller 110 does not allocate IO resources to the peripheral devices 121 that originally requested I/O resources, thereby reducing The use of I/O resources can even enter mining mode (Mining Mode) or virtual reality mode (VR Mode). It is worth mentioning that the previous chipset does not hide the peripheral device's request for I/O resources from the controller, but in this embodiment, because the chipset can use blank data to replace the configuration and read the information in a loop. /O resource request, so you can hide the peripheral device's request for I/O resource.

惟須注意的是,不同於前述步驟S420,在本實施例的步驟S420中,晶片組330是透過PCI-E根端口341並經由PCI-E切換器550將配置循環讀取請求傳遞給周邊設備121,並從周邊設備121獲得配置循環讀取請求對應的配置循環讀取數據(CFG read data)。It should be noted that, different from the aforementioned step S420, in step S420 of this embodiment, the chipset 330 transmits the configuration cycle read request to the peripheral device through the PCI-E root port 341 and the PCI-E switch 550. 121, and obtain the configuration cycle read data (CFG read data) corresponding to the configuration cycle read request from the peripheral device 121.

在另一實施例中,電子裝置500更包括多個PCI-E切換器,所述PCI-E切換器彼此串聯聯接。因此,在藉由圖6的步驟流程先瞭解電子裝置的周邊環境並將為VGA顯示卡的一或多個周邊設備記錄於查找表後,晶片組330即可執行圖4的步驟流程以對所述VGA顯示卡進行I/O或是MMIO資源的分配。In another embodiment, the electronic device 500 further includes a plurality of PCI-E switches, and the PCI-E switches are connected in series with each other. Therefore, after first understanding the surrounding environment of the electronic device through the step flow of FIG. 6 and recording one or more peripheral devices that are the VGA display card in the look-up table, the chipset 330 can execute the step flow of FIG. The VGA display card allocates I/O or MMIO resources.

在其他實施例中,圖4實施例的擴展周邊設備的方法適用於圖5實施例的電子裝置500。在本實施例中,電子裝置500是由PCI-E切換器550來執行圖4的擴展周邊設備的方法。In other embodiments, the method for expanding peripheral devices in the embodiment in FIG. 4 is applicable to the electronic device 500 in the embodiment in FIG. 5. In this embodiment, the electronic device 500 uses the PCI-E switch 550 to execute the method for expanding peripheral devices in FIG. 4.

綜上所述,本發明實施例所提供的電子裝置及擴展周邊設備的方法,VGA顯示卡包括第一VGA顯示卡以及第二VGA顯示卡,透過軟體操作,控制器可對第一VGA顯示卡分配I/O資源,並且不對第二VGA顯示卡分配I/O資源。如此一來,電子裝置可在初始化階段利用被分配I/O資源的第一VGA顯示卡顯示畫面,之後,便可顯示其餘未被分配I/O資源的第二VGA顯示卡的畫面。藉此,可不受I/O資源限制地擴充電子裝置中VGA顯示卡的數量,讓電子裝置在需要多個VGA顯示卡的情形下(例如,挖掘數位錢幣(又稱,挖礦)或虛擬實境)提供更高的硬體運算應用。In summary, in the electronic device and the method for expanding peripheral equipment provided by the embodiments of the present invention, the VGA display card includes a first VGA display card and a second VGA display card. Through software operation, the controller can control the first VGA display card. I/O resources are allocated, and I/O resources are not allocated to the second VGA display card. In this way, the electronic device can use the first VGA display card to which I/O resources are allocated to display images during the initialization phase, and then can display the images of the remaining second VGA display cards that are not allocated I/O resources. In this way, the number of VGA display cards in an electronic device can be expanded without being restricted by I/O resources, so that the electronic device needs multiple VGA display cards (for example, mining digital coins (also known as mining) or virtual reality). Environment) to provide higher hardware computing applications.

另一方面,也可以透過硬體的操作(如圖3及圖5的晶片組330),判斷配置循環讀取資訊中是否具備I/O資源的請求,以及是否利用空白數據替換配置循環讀取資訊中I/O資源的請求,藉此隱藏周邊設備對於I/O資源的請求,而提供更高的運算應用。On the other hand, you can also use hardware operations (such as the chipset 330 in Figure 3 and Figure 5) to determine whether there is a request for I/O resources in the configuration cycle read information, and whether to replace the configuration cycle read with blank data The request for I/O resources in the information can hide the requests of peripheral devices for I/O resources and provide higher computing applications.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be determined by the scope of the attached patent application.

100、300、500‧‧‧電子裝置 110‧‧‧控制器 121、122、123‧‧‧周邊裝置 330‧‧‧晶片組 340‧‧‧快捷外設互聯標準橋接器 341‧‧‧快捷外設互聯標準根端口 550‧‧‧快捷外設互聯標準切換器 S220、S240、S242、S244、S246、S260、S262、S266、S410、S420、S430、S440、S450、S460、S470、S480、S610、S620、S630、S640、S650‧‧‧步驟100, 300, 500‧‧‧Electronic device 110‧‧‧Controller 121, 122, 123‧‧‧peripheral devices 330‧‧‧chipset 340‧‧‧Quick Peripheral Interconnection Standard Bridge 341‧‧‧Standard Root Port for Fast Peripheral Interconnection 550‧‧‧Quick Peripheral Interconnection Standard Switch S220, S240, S242, S244, S246, S260, S262, S266, S410, S420, S430, S440, S450, S460, S470, S480, S610, S620, S630, S640, S650‧‧‧Steps

圖1繪示本發明一實施例的電子裝置的方塊圖。 圖2繪示本發明一實施例的擴展周邊設備的方法的詳細流程圖。 圖3繪示本發明另一實施例的電子裝置的方塊圖。 圖4繪示本發明另一實施例的擴展周邊設備的方法的詳細流程圖。 圖5繪示本發明另一實施例的電子裝置的方塊圖。 圖6繪示本發明另一實施例的擴展周邊設備的方法的一部分詳細流程圖。FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. FIG. 2 shows a detailed flowchart of a method for expanding peripheral devices according to an embodiment of the present invention. FIG. 3 is a block diagram of an electronic device according to another embodiment of the invention. FIG. 4 shows a detailed flowchart of a method for expanding a peripheral device according to another embodiment of the present invention. FIG. 5 is a block diagram of an electronic device according to another embodiment of the invention. FIG. 6 shows a detailed flowchart of a part of a method for expanding a peripheral device according to another embodiment of the present invention.

100‧‧‧電子裝置 100‧‧‧Electronic device

110‧‧‧控制器 110‧‧‧Controller

121、122、123‧‧‧周邊裝置 121, 122, 123‧‧‧peripheral devices

Claims (22)

一種電子裝置,包括:控制器;以及多個周邊設備,電性連接所述控制器,其中所述多個周邊設備包括至少一個視訊圖形陣列顯示卡,其中所述控制器在所述電子裝置的初始化階段時,對所述視訊圖形陣列顯示卡中的第一部分分配輸入輸出資源,且不對所述視訊圖形陣列顯示卡中的第二部分分配所述輸入輸出資源,對所述視訊圖形陣列顯示卡中的第二部分分配記憶體映射輸入輸出資源,其中被分配所述輸入輸出資源的所述視訊圖形陣列顯示卡中的所述第一部分用以在所述初始化階段顯示畫面。 An electronic device, comprising: a controller; and a plurality of peripheral devices electrically connected to the controller, wherein the plurality of peripheral devices includes at least one video graphics array display card, wherein the controller is in the electronic device In the initialization phase, input and output resources are allocated to the first part of the video graphics array display card, and the input and output resources are not allocated to the second part of the video graphics array display card. The second part of the memory mapping input and output resources is allocated, and the first part of the video graphics array display card to which the input and output resources are allocated is used to display a screen in the initialization phase. 如申請專利範圍第1項所述的電子裝置,其中在所述初始化階段時,所述控制器還判斷所述多個周邊設備中的所述視訊圖形陣列顯示卡的數量,當所述視訊圖形陣列顯示卡的數量並未大於或等於2時,所述控制器將所述視訊圖形陣列顯示卡僅包含所述視訊圖形陣列顯示卡的所述第一部分,並分配所述輸入輸出資源。 The electronic device according to the first item of the scope of patent application, wherein in the initialization phase, the controller also determines the number of the video graphics array display cards in the plurality of peripheral devices, and when the video graphics When the number of the array display card is not greater than or equal to 2, the controller includes the video graphics array display card only including the first part of the video graphics array display card, and allocates the input and output resources. 如申請專利範圍第1項所述的電子裝置,其中在所述初始化階段時,所述控制器還判斷所述多個周邊設備中的所述視訊圖形陣列顯示卡的數量,當所述視訊圖形陣列顯示卡的數量大於或等於2時,所述控 制器依序訪問各個周邊設備中的基本位址暫存器以取得所述多個周邊設備所需的輸入輸出資源要求,以決定對所述多個周邊設備中的所述視訊圖形陣列顯示卡的所述第一部分分配所述輸入輸出資源,並初始化所述視訊圖形陣列顯示卡的所述第一部分。 The electronic device according to the first item of the scope of patent application, wherein in the initialization phase, the controller also determines the number of the video graphics array display cards in the plurality of peripheral devices, and when the video graphics When the number of display cards in the array is greater than or equal to 2, the control The controller sequentially accesses the basic address register in each peripheral device to obtain the input and output resource requirements required by the multiple peripheral devices, so as to determine the video graphics array display card in the multiple peripheral devices The first part allocates the input and output resources, and initializes the first part of the video graphics array display card. 如申請專利範圍第1項所述的電子裝置,其中所述視訊圖形陣列顯示卡包括第一視訊圖形陣列顯示卡以及至少一第二視訊圖形陣列顯示卡,所述第一視訊圖形陣列顯示卡屬於所述視訊圖形陣列顯示卡中的所述第一部分,且所述至少一第二視訊圖形陣列顯示卡屬於所述視訊圖形陣列顯示卡中的所述第二部分。 The electronic device according to the first item of the patent application, wherein the video graphics array display card includes a first video graphics array display card and at least one second video graphics array display card, and the first video graphics array display card belongs to The first part of the video graphics array display card, and the at least one second video graphics array display card belongs to the second part of the video graphics array display card. 如申請專利範圍第1項所述的電子裝置,其中所述控制器是中央處理器或是基本輸入輸出系統。 The electronic device described in the first item of the scope of patent application, wherein the controller is a central processing unit or a basic input output system. 如申請專利範圍第1項所述的電子裝置,還包括:晶片組,其中所述控制器及所述周邊設備透過所述晶片組相互電性連接,其中,當所述控制器不對所述視訊圖形陣列顯示卡中的所述第二部分分配所述輸入輸出資源時,所述晶片組進行以下操作:從所述控制器獲得對所述視訊圖形陣列顯示卡中的所述第二部分的配置循環讀取請求;將所述配置循環讀取請求傳遞給所述視訊圖形陣列顯示卡中的所述第二部分,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊;分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中 是否具備所述輸入輸出資源的請求;當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求;以及將經替換後的所述配置循環讀取資訊提供給所述控制器。 The electronic device described in claim 1 further includes: a chipset, wherein the controller and the peripheral device are electrically connected to each other through the chipset, wherein, when the controller does not support the video When the second part of the graphics array display card allocates the input and output resources, the chipset performs the following operations: obtains the configuration of the second part of the video graphics array display card from the controller Cyclic reading request; passing the configuration cyclic reading request to the second part in the video graphics array display card, and obtaining configuration cyclic reading information corresponding to the configuration cyclic reading request from it; analyzing The configuration cyclically reads the information and determines that the configuration cyclically reads the information Whether the request for the input and output resources is available; when the request for the input and output resources is available in the configuration cyclic reading information, blank data is used to replace all of the input and output resources in the configuration cyclic reading information The request; and the configuration cycle read information after the replacement is provided to the controller. 如申請專利範圍第6項所述的電子裝置,其中所述晶片組還記錄所述視訊圖形陣列顯示卡中的所述第二部分,且修改所述視訊圖形陣列顯示卡中的所述第二部分中的基本位址暫存器,以不分配所述輸入輸出資源的所述請求。 The electronic device described in item 6 of the scope of patent application, wherein the chipset also records the second part of the video graphics array display card, and modifies the second part of the video graphics array display card. Part of the basic address register, so as not to allocate the request for the input and output resources. 如申請專利範圍第6項所述的電子裝置,其中所述晶片組包括快捷外設互聯標準橋接器,其中所述控制器及所述周邊設備透過所述快捷外設互聯標準橋接器相互電性連接。 The electronic device described in item 6 of the scope of patent application, wherein the chipset includes a quick peripheral interconnect standard bridge, wherein the controller and the peripheral device are mutually electrically connected through the quick peripheral interconnect standard bridge connection. 如申請專利範圍第8項所述的電子裝置,其中所述快捷外設互聯標準橋接器包括:至少一快捷外設互聯標準根端口,其中所述多個周邊設備直接電性連接至所述至少一快捷外設互聯標準根端口,所述控制器透過所述晶片組中的所述快捷外設互聯標準橋接器的所述快捷外設互聯標準根端口與所述多個周邊設備相互通訊。 The electronic device according to item 8 of the scope of patent application, wherein the quick peripheral interconnect standard bridge includes: at least one quick peripheral interconnect standard root port, wherein the plurality of peripheral devices are directly electrically connected to the at least one A quick peripheral interconnect standard root port, the controller communicates with the multiple peripheral devices through the quick peripheral interconnect standard root port of the quick peripheral interconnect standard bridge in the chipset. 如申請專利範圍第8項所述的電子裝置,其中所述快捷外設互聯標準橋接器包括快捷外設互聯標準根端口,所述電子裝置還包括至少一快捷外設互聯標準切換器,其中所述至少一快捷外設互聯標準切換器電性耦接至所述快捷外設互聯標準根端口, 其中所述多個周邊設備直接電性連接至所述至少一快捷外設互聯標準切換器,且所述控制器透過所述晶片組中的所述快捷外設互聯標準橋接器的所述快捷外設互聯標準根端口以及所述至少一快捷外設互聯標準切換器與所述多個周邊設備相互通訊。 The electronic device described in item 8 of the scope of patent application, wherein the quick peripheral interconnect standard bridge includes a quick peripheral interconnect standard root port, and the electronic device further includes at least one quick peripheral interconnect standard switch, wherein The at least one quick peripheral interconnect standard switch is electrically coupled to the quick peripheral interconnect standard root port, The plurality of peripheral devices are directly electrically connected to the at least one quick peripheral interconnection standard switch, and the controller passes through the quick peripheral of the quick peripheral interconnection standard bridge in the chipset. The interconnection standard root port and the at least one quick peripheral interconnection standard switch are set to communicate with the plurality of peripheral devices. 一種擴展周邊設備的方法,包括:在電子裝置的初始化階段時,對多個周邊設備中的至少一個視訊圖形陣列顯示卡中的第一部分分配輸入輸出資源,且不對所述視訊圖形陣列顯示卡中的第二部分分配所述輸入輸出資源,對所述視訊圖形陣列顯示卡中的第二部分分配記憶體映射輸入輸出資源,其中被分配所述輸入輸出資源的所述視訊圖形陣列顯示卡中的所述第一部分用以在所述初始化階段顯示畫面。 A method for expanding peripheral equipment includes: in the initialization phase of an electronic device, allocating input and output resources to the first part of at least one video graphics array display card in a plurality of peripheral equipment, and not assigning input and output resources to the video graphics array display card. The second part allocates the input and output resources, and allocates memory mapping input and output resources to the second part of the video graphics array display card, wherein the video graphics array display card to which the input and output resources are allocated The first part is used to display a screen during the initialization phase. 如申請專利範圍第11項所述的方法,其中在所述初始化階段時,還判斷所述多個周邊設備中的所述視訊圖形陣列顯示卡的數量,當所述視訊圖形陣列顯示卡的數量並未大於或等於2時,將所述視訊圖形陣列顯示卡僅包含所述視訊圖形陣列顯示卡的所述第一部分,並分配所述輸入輸出資源。 The method according to item 11 of the scope of patent application, wherein in the initialization phase, the number of the video graphics array display cards in the plurality of peripheral devices is also determined, and when the number of the video graphics array display cards is When it is not greater than or equal to 2, the video graphics array display card only includes the first part of the video graphics array display card, and the input and output resources are allocated. 如申請專利範圍第11項所述的方法,其中在所述初始化階段時,還判斷所述多個周邊設備中的所述視訊圖形陣列顯示卡的數量,當所述視訊圖形陣列顯示卡的數量大於或等於2時,依序訪 問各個周邊設備中的基本位址暫存器以取得所述多個周邊設備所需的輸入輸出資源要求,以決定對所述多個周邊設備中的所述視訊圖形陣列顯示卡的所述第一部分分配所述輸入輸出資源,並初始化所述視訊圖形陣列顯示卡的所述第一部分。 The method according to item 11 of the scope of patent application, wherein in the initialization phase, the number of the video graphics array display cards in the plurality of peripheral devices is also determined, and when the number of the video graphics array display cards is When it is greater than or equal to 2, visit in order Ask the basic address register in each peripheral device to obtain the input and output resource requirements required by the plurality of peripheral devices, so as to determine the second order of the video graphics array display card in the plurality of peripheral devices. One part allocates the input and output resources, and initializes the first part of the video graphics array display card. 如申請專利範圍第11項所述的方法,其中所述視訊圖形陣列顯示卡包括第一視訊圖形陣列顯示卡以及至少一第二視訊圖形陣列顯示卡,所述第一視訊圖形陣列顯示卡屬於所述視訊圖形陣列顯示卡中的所述第一部分,且所述至少一第二視訊圖形陣列顯示卡屬於所述視訊圖形陣列顯示卡中的所述第二部分。 The method according to item 11 of the scope of patent application, wherein the video graphics array display card includes a first video graphics array display card and at least one second video graphics array display card, and the first video graphics array display card belongs to all The first part of the video graphics array display card, and the at least one second video graphics array display card belongs to the second part of the video graphics array display card. 如申請專利範圍第11項所述的方法,還包括:當不對所述視訊圖形陣列顯示卡中的所述第二部分分配所述輸入輸出資源時,從控制器獲得對所述視訊圖形陣列顯示卡中的所述第二部分的配置循環讀取請求;將所述配置循環讀取請求傳遞給所述視訊圖形陣列顯示卡中的所述第二部分,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊;分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中是否具備所述輸入輸出資源的請求;當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求;以及 將經替換後的所述配置循環讀取資訊提供給所述控制器。 As described in item 11 of the scope of patent application, the method further includes: when the input and output resources are not allocated to the second part of the video graphics array display card, obtaining a display of the video graphics array from the controller The configuration cycle read request of the second part in the card; the configuration cycle read request is passed to the second part in the video graphics array display card, and the configuration cycle read request is obtained therefrom Request the corresponding configuration cycle read information; analyze the configuration cycle read information and determine whether the configuration cycle read information has the input and output resource request; when the configuration cycle read information has the input When outputting the request for the resource, replace the request for the input and output resource in the configuration loop reading information with blank data; and The cyclic reading information of the configuration after the replacement is provided to the controller. 如申請專利範圍第15項所述的方法,還包括記錄所述視訊圖形陣列顯示卡中的所述第二部分,且修改所述視訊圖形陣列顯示卡中的所述第二部分中的基本位址暫存器,以不分配所述輸入輸出資源的所述請求。 The method described in item 15 of the scope of patent application further includes recording the second part in the video graphics array display card, and modifying the basic position in the second part in the video graphics array display card. Address register to not allocate the request for the input and output resources. 一種電子裝置,包括:控制器;晶片組;多個周邊設備,包括至少一視訊圖形陣列顯示卡,其中所述控制器及所述周邊設備透過所述晶片組相互電性連接,在所述電子裝置顯示畫面後,所述晶片組從所述控制器獲得對所述至少一視訊圖形陣列顯示卡的配置循環讀取請求,將所述配置循環讀取請求傳遞給所述至少一視訊圖形陣列顯示卡,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊,所述晶片組分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中是否具備輸入輸出資源的請求,當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,所述晶片組利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求,並且將經替換後的所述配置循環讀取資訊提供給所述控制器。 An electronic device comprising: a controller; a chipset; a plurality of peripheral devices, including at least one video graphics array display card, wherein the controller and the peripheral devices are electrically connected to each other through the chipset, and the electronic device After the device displays the screen, the chipset obtains a configuration cyclic read request for the at least one video graphics array display card from the controller, and transmits the configuration cyclic read request to the at least one video graphics array display Card, and obtain the configuration cycle reading information corresponding to the configuration cycle reading request from it, the chipset analyzes the configuration cycle reading information and judges whether there is a request for input and output resources in the configuration cycle reading information , When the request for the input and output resources in the configuration cycle read information is provided, the chipset replaces the request for the input and output resources in the configuration cycle read information with blank data, and replaces the request for the input and output resources in the configuration cycle read information. The replaced configuration cyclically reads information and provides it to the controller. 如申請專利範圍第17項所述的電子裝置,其中所述晶片組包括快捷外設互聯標準橋接器,其中所述控制器及所述周邊設備透過所述快捷外設互聯標準橋接器相互電性連接。 The electronic device described in item 17 of the scope of patent application, wherein the chipset includes a shortcut peripheral interconnection standard bridge, wherein the controller and the peripheral device are mutually electrically connected through the shortcut peripheral interconnection standard bridge connection. 如申請專利範圍第18項所述的電子裝置,其中所述快捷外設互聯標準橋接器包括:至少一快捷外設互聯標準根端口,其中所述多個周邊設備直接電性連接至所述至少一快捷外設互聯標準根端口,所述控制器透過所述晶片組中的所述快捷外設互聯標準橋接器的所述快捷外設互聯標準根端口與所述多個周邊設備相互通訊。 The electronic device according to item 18 of the scope of patent application, wherein the quick peripheral interconnection standard bridge includes: at least one quick peripheral interconnection standard root port, wherein the plurality of peripheral devices are directly electrically connected to the at least one A quick peripheral interconnect standard root port, the controller communicates with the multiple peripheral devices through the quick peripheral interconnect standard root port of the quick peripheral interconnect standard bridge in the chipset. 如申請專利範圍第18項所述的電子裝置,其中所述快捷外設互聯標準橋接器包括快捷外設互聯標準根端口,所述電子裝置還包括至少一快捷外設互聯標準切換器,其中所述至少一快捷外設互聯標準切換器電性耦接至所述快捷外設互聯標準根端口,其中所述多個周邊設備直接電性連接至所述至少一快捷外設互聯標準切換器,且所述控制器透過所述晶片組中的所述快捷外設互聯標準橋接器的所述快捷外設互聯標準根端口以及所述至少一快捷外設互聯標準切換器與所述多個周邊設備相互通訊。 The electronic device described in item 18 of the scope of patent application, wherein the quick peripheral interconnect standard bridge includes a quick peripheral interconnect standard root port, and the electronic device further includes at least one quick peripheral interconnect standard switch, wherein The at least one quick peripheral interconnect standard switch is electrically coupled to the quick peripheral interconnect standard root port, wherein the plurality of peripheral devices are directly electrically connected to the at least one quick peripheral interconnect standard switch, and The controller interacts with the plurality of peripheral devices through the quick peripheral interconnect standard root port of the quick peripheral interconnect standard bridge in the chipset and the at least one quick peripheral interconnect standard switch. communication. 一種擴展周邊設備的方法,包括:在電子裝置顯示畫面後,從控制器獲得對至少一視訊圖形陣列顯示卡的配置循環讀取請求;將所述配置循環讀取請求傳遞給所述至少一視訊圖形陣列顯示卡,並從其獲得所述配置循環讀取請求對應的配置循環讀取資訊;分析所述配置循環讀取資訊並判斷所述配置循環讀取資訊中是否具備輸入輸出資源的請求; 當所述配置循環讀取資訊中具備所述輸入輸出資源的所述請求時,利用空白數據替換所述配置循環讀取資訊中所述輸入輸出資源的所述請求;以及將經替換後的所述配置循環讀取資訊提供給所述控制器。 A method for expanding peripheral equipment includes: after an electronic device displays a screen, obtaining a configuration cyclic reading request for at least one video graphics array display card from a controller; and transmitting the configuration cyclic reading request to the at least one video Graphics array display card, and obtaining configuration cycle reading information corresponding to the configuration cycle reading request from it; analyzing the configuration cycle reading information and determining whether the configuration cycle reading information has a request for input and output resources; When the request for the input and output resources in the configuration cycle read information is available, replace the request for the input and output resources in the configuration cycle read information with blank data; The configuration loop read information is provided to the controller. 如申請專利範圍第21項所述的方法,還包括記錄所述至少一視訊圖形陣列顯示卡,且修改所述至少一視訊圖形陣列顯示卡中的基本位址暫存器,以不分配所述輸入輸出資源的所述請求。 The method described in item 21 of the scope of the patent application further includes recording the at least one video graphics array display card, and modifying the basic address register in the at least one video graphics array display card so as not to allocate the The said request for input and output resources.
TW108105259A 2018-04-12 2019-02-18 Electronic apparatus and method of extending peripheral device TWI720426B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910222569.5A CN109933434B (en) 2018-04-12 2019-03-22 Electronic device and method for expanding peripheral equipment
US16/373,649 US10657076B2 (en) 2018-04-12 2019-04-03 Electronic apparatus and method of extending peripheral device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201862656943P 2018-04-12 2018-04-12
US62/656,943 2018-04-12
US201862656985P 2018-04-13 2018-04-13
US62/656,985 2018-04-13

Publications (2)

Publication Number Publication Date
TW201944215A TW201944215A (en) 2019-11-16
TWI720426B true TWI720426B (en) 2021-03-01

Family

ID=69184536

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108105259A TWI720426B (en) 2018-04-12 2019-02-18 Electronic apparatus and method of extending peripheral device

Country Status (1)

Country Link
TW (1) TWI720426B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200928956A (en) * 2007-12-31 2009-07-01 S3 Graphics Inc Method and system for supporting multiple display devices
CN102314372A (en) * 2010-05-25 2012-01-11 微软公司 The configuration of virtual machine I/O multipath
US20150058517A1 (en) * 2013-08-23 2015-02-26 International Business Machines Corporation ALLOCATING LANES IN A PERIPHERAL CONNECT INTERFACE EXPRESS ('PCIe') BUS
TWM547702U (en) * 2017-05-10 2017-08-21 鋒厚科技股份有限公司 Multi-input multi-output ports switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200928956A (en) * 2007-12-31 2009-07-01 S3 Graphics Inc Method and system for supporting multiple display devices
CN102314372A (en) * 2010-05-25 2012-01-11 微软公司 The configuration of virtual machine I/O multipath
US20150058517A1 (en) * 2013-08-23 2015-02-26 International Business Machines Corporation ALLOCATING LANES IN A PERIPHERAL CONNECT INTERFACE EXPRESS ('PCIe') BUS
TWM547702U (en) * 2017-05-10 2017-08-21 鋒厚科技股份有限公司 Multi-input multi-output ports switch

Also Published As

Publication number Publication date
TW201944215A (en) 2019-11-16

Similar Documents

Publication Publication Date Title
EP3204862B1 (en) Emulated endpoint configuration
US7529860B2 (en) System and method for configuring an endpoint based on specified valid combinations of functions
US9531668B2 (en) Micro server, method of allocating MAC address, and computer readable recording medium
JP6753412B2 (en) Computers, device allocation management methods and programs
US10846254B2 (en) Management controller including virtual USB host controller
US9423958B2 (en) System and method for managing expansion read-only memory and management host thereof
CN101373448B (en) Computer system with remote management
US20130110960A1 (en) Method and system for accessing storage device
US10592285B2 (en) System and method for information handling system input/output resource management
US20210271500A1 (en) Virtual serial ports for virtual machines
US8700807B2 (en) High speed baseboard management controller and transmission method thereof
EP2633402A1 (en) Zoning data to a virtual machine
CN115298656A (en) System and method for scheduling sharable PCIE endpoint devices
US20240104029A1 (en) Network instantiated peripheral devices
CN109933434B (en) Electronic device and method for expanding peripheral equipment
US20060282585A1 (en) Method and system for identifying peripheral component interconnect device information
TWI720426B (en) Electronic apparatus and method of extending peripheral device
US20050182615A1 (en) Method and system for creating an automatically adjusting USB mass storage device
TW202311978A (en) Transport control word architecture for physical port mirroring
US8892784B2 (en) Adaptive apparatus
CN117412059B (en) Video coding and decoding system, equipment and method based on virtualization
US20230350824A1 (en) Peripheral component interconnect express device and operating method thereof
KR20080010791A (en) Web-based monitoring module, hardware system including the same and monitoring method of web-based monitoring module
KR100467519B1 (en) Computers and methods for storing P &amp; Pyrisource in ROM
CN115269477A (en) Display control method and server system