TWI502353B - Core logic circuit, computer system and method for initializing peripheral device - Google Patents

Core logic circuit, computer system and method for initializing peripheral device Download PDF

Info

Publication number
TWI502353B
TWI502353B TW098134667A TW98134667A TWI502353B TW I502353 B TWI502353 B TW I502353B TW 098134667 A TW098134667 A TW 098134667A TW 98134667 A TW98134667 A TW 98134667A TW I502353 B TWI502353 B TW I502353B
Authority
TW
Taiwan
Prior art keywords
peripheral device
initialization
code
computer system
controller
Prior art date
Application number
TW098134667A
Other languages
Chinese (zh)
Other versions
TW201113706A (en
Inventor
Chung Ching Huang
Yeh Cho
Donna Lim
Original Assignee
Via Tech Inc
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 Via Tech Inc filed Critical Via Tech Inc
Priority to TW098134667A priority Critical patent/TWI502353B/en
Publication of TW201113706A publication Critical patent/TW201113706A/en
Application granted granted Critical
Publication of TWI502353B publication Critical patent/TWI502353B/en

Links

Landscapes

  • Stored Programmes (AREA)

Description

核心邏輯電路、電腦系統及週邊裝置初始化方法Core logic circuit, computer system and peripheral device initialization method

本案係為一種核心邏輯電路及週邊裝置初始化方法,尤指應用於電腦系統中之核心邏輯電路及週邊裝置初始化方法。The case is a core logic circuit and a peripheral device initialization method, especially a core logic circuit and a peripheral device initialization method applied in a computer system.

在習用技術手段中,週邊元件內連接匯流排(Peripheral Component Interconnect bus,以下簡稱PCI bus)是週邊元件連接至電腦系統時常使用的匯流排,主機板上通常提供多個PCI插槽或接口來讓系統建置者來利用,用以在電腦系統上安裝網路卡、音效卡等週邊元件內連接介面之週邊元件附加卡(PCI card)。而為能讓週邊元件附加卡在作業系統(Operation System)尚未被載入前之電腦系統中可成功被初始化,週邊元件附加卡之製造商通常提供相對應之初始化程式碼(initialization code)來存放至一PCI擴充唯讀記憶體(PCI Expansion ROM,或稱PCI option ROM)中。In the conventional technical means, a peripheral component interconnect bus (Peripheral Component Interconnect bus (hereinafter referred to as PCI bus) is a bus bar that is commonly used when peripheral components are connected to a computer system, and a plurality of PCI slots or interfaces are usually provided on the motherboard to allow The system builder uses the peripheral device add-on card (PCI card) for connecting the peripheral components of the network card, the sound card, and the like on the computer system. In order to allow peripheral components to be added to the computer system before the operation system has been loaded, the manufacturer of the peripheral component add-on card usually provides the corresponding initialization code to store. Up to PCI expansion read-only memory (PCI Expansion ROM, or PCI option ROM).

而上述PCI擴充唯讀記憶體一開始是設置在週邊元件附加卡之上,但是為能節省成本,該PCI擴充唯讀記憶體可能被省去而將其中之初始化程式碼(initialization code,也可稱為PCI選擇唯讀記憶體程式碼,PCI option ROM code)改存放到電腦系統中用以存放基本輸入輸出系統(BIOS)之唯讀記憶體中。於是週邊元件附加卡之製造商必須先將PCI選擇唯讀記憶體程式碼提供給主機板的製造商,用以與基本輸入輸出系統(BIOS)一併寫入主機板上之唯讀記憶體,而於進行基本輸入輸出系統載入時,一併呼叫到該PCI選擇唯讀記憶體程式碼以完成週邊元件附加卡之初始化。初始化完成以後,該週邊元件附加卡即可以在作業系統尚未被載入之前運作以實現一定功能,舉例而言,該週邊元件附加卡是一PCI網路卡(PCI LAN card),則該PCI網路卡可以實現遠程啟動作業系統(remote boot)的功能。The PCI extended read-only memory is initially disposed on the peripheral component add-on card, but in order to save cost, the PCI extended read-only memory may be omitted and the initialization code (initialization code may also be used). The PCI option ROM code is stored in the read-only memory of the computer system for storing the basic input/output system (BIOS). Therefore, the manufacturer of the peripheral component add-on card must first provide the PCI select read-only memory code to the manufacturer of the motherboard for writing to the read-only memory on the motherboard together with the basic input/output system (BIOS). When the basic input/output system is loaded, the PCI selects the read-only memory code to complete the initialization of the peripheral component add-on card. After the initialization is completed, the peripheral component add-on card can operate to realize a certain function before the operating system has been loaded. For example, the peripheral component add-on card is a PCI network card (PCI LAN card), then the PCI network The road card can implement the function of remote booting system (remote boot).

但近年來,許多新的週邊元件介面被發展出來,例如通用串列匯流排(USB)、安全數位輸入輸出(SDIO)以及通用非同步接收器傳輸匯流排(UART)等,因此原本以PCI為傳輸介面之週邊元件,都可能改由新的介面來與電腦系統連結。但是新的週邊元件介面之初始化程式碼皆只能在作業系統被載入時才會一併載入,造成此類週邊元件無法在作業系統未被載入之電腦系統上正常運作,造成使用者之困擾。而如何改善上述習用技術手段之缺失,係為發展本案之主要目的。However, in recent years, many new peripheral component interfaces have been developed, such as Universal Serial Bus (USB), Secure Digital Input/Output (SDIO), and Universal Non-Synchronous Receiver Transmit Bus (UART). The peripheral components of the transmission interface may be replaced by a new interface to the computer system. However, the initialization code of the new peripheral component interface can only be loaded when the operating system is loaded, resulting in such peripheral components not working properly on the computer system in which the operating system is not loaded, resulting in users. Troubled. How to improve the lack of the above-mentioned conventional technical means is the main purpose of developing the case.

本案係為一種核心邏輯電路,應用於具有基本輸入輸出系統和匯流排之電腦系統內,該核心邏輯電路包含:第一匯流排控制器,電連接至第一週邊裝置;以及第一虛擬匯流排控制器,電連接至該匯流排,其係具有第一週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之第一初始化程式碼,進而執行該第一初始化程式碼而完成該第一週邊裝置之初始化。The present invention is a core logic circuit applied to a computer system having a basic input/output system and a bus bar, the core logic circuit comprising: a first bus bar controller electrically connected to the first peripheral device; and a first virtual bus bar a controller electrically connected to the bus bar, having a first peripheral device identification code, and when the computer system configures the bus bar, the computer system correspondingly finds the basic input/output system according to the first peripheral device identification code The first initialization code is executed, and then the first initialization code is executed to complete initialization of the first peripheral device.

本案之另一方面係為一種電腦系統,其包含基本輸入輸出系統,匯流排及第一週邊裝置,該第一週邊裝置並不電連接至該匯流排,該電腦系統更包含:第一匯流排控制器,電連接至該第一週邊裝置;以及第一虛擬匯流排控制器,電連接至該匯流排,其係具有第一週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之第一初始化程式碼,進而執行該第一初始化程式碼以完成該第一週邊裝置之初始化。Another aspect of the present invention is a computer system comprising a basic input/output system, a bus bar and a first peripheral device, the first peripheral device is not electrically connected to the bus bar, and the computer system further comprises: a first bus bar a controller electrically connected to the first peripheral device; and a first virtual busbar controller electrically connected to the busbar having a first peripheral device identification code, and when the computer system configures the busbar The computer system correspondingly finds the first initialization code in the basic input/output system according to the first peripheral device identification code, and then executes the first initialization code to complete initialization of the first peripheral device.

本案之又一方面係為一種週邊裝置初始化方法,應用於具有基本輸入輸出系統與匯流排之電腦系統,該電腦系統中第一匯流排控制器電連接至該電腦系統的第一週邊裝置,該初始化方法包含下列步驟:進行基本輸入輸出系統載入程式;根據該電腦系統中電連接至該匯流排之第一虛擬匯流排控制器中之第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之第一初始化程式碼;以及執行該第一初始化程式碼而完成該第一週邊裝置的初始化。A further aspect of the present invention is a peripheral device initialization method for a computer system having a basic input/output system and a bus bar, wherein the first bus bar controller of the computer system is electrically connected to the first peripheral device of the computer system, The initialization method includes the following steps: performing a basic input/output system loading program; and correspondingly finding the basic input/output system according to the first peripheral device identification code in the first virtual busbar controller electrically connected to the busbar in the computer system a first initialization code; and executing the first initialization code to complete initialization of the first peripheral device.

請參見第一圖(a),其係本案為改善習用手段缺失所發展出來之一電腦系統較佳實施例之功能方塊示意圖,其中該電腦系統1主要包含有中央處理單元10、核心邏輯電路11以及儲存有基本輸入輸出系統程式碼120之唯讀記憶體12,而該核心邏輯電路11通常由一北橋模組111與一南橋模組112所構成,而該南橋模組112上設置有一第一通用串列匯流排控制器(USB controller)1121與第二通用串列匯流排控制器(USB controller)1122,其上連結有一第一週邊裝置191與一第二週邊裝置192。這裡第一和第二通用串列匯流排控制器1121和1122只是舉例說明,第一和第二週邊裝置191和192還可以是其它傳輸介面的週邊裝置,例如安全數位輸入輸出(SDIO)匯流排或通用非同步接收器傳輸匯流排(UART)等,且第一通用串列匯流排控制器1121與第二通用串列匯流排控制器1122還可以是不同的傳輸介面,這裡通用串列匯流排(USB)只是舉例說明,但並不限於此。Please refer to the first figure (a), which is a functional block diagram of a preferred embodiment of a computer system developed in the present invention for improving the lack of conventional means. The computer system 1 mainly includes a central processing unit 10 and a core logic circuit 11 And the read-only memory 12 storing the basic input/output system code 120, wherein the core logic circuit 11 is generally composed of a north bridge module 111 and a south bridge module 112, and the south bridge module 112 is provided with a first A universal serial controller (USB controller) 1121 and a second universal serial controller (USB controller) 1122 are connected to the first peripheral device 191 and a second peripheral device 192. Here, the first and second universal serial bus controllers 1121 and 1122 are merely illustrative, and the first and second peripheral devices 191 and 192 may also be peripheral devices of other transmission interfaces, such as a secure digital input/output (SDIO) bus. Or a universal non-synchronous receiver transmission bus (UART) or the like, and the first universal serial bus controller 1121 and the second universal serial bus controller 1122 may also be different transmission interfaces, where the universal serial bus (USB) is just an example, but is not limited to this.

由於在習用技術中通用串列匯流排只能在作業系統被載入後之電腦系統上才能完成初始化,因此使用通用串列匯流排介面作為連結介面之第一週邊裝置191與一第二週邊裝置192在作業系統載入前將無法正常運作。而為能改善此等缺失,本案係於核心邏輯電路11中(本例是於南橋模組112中,當然也可以是北橋模組111)增設有連接至週邊元件內連接匯流排(PCI bus)18之多個虛擬週邊元件內連接匯流排控制器(PCI bus controller),本例中列出兩個,分別是第一虛擬週邊元件內連接匯流排控制器181與第二虛擬週邊元件內連接匯流排控制器182。而該等虛擬週邊元件內連接匯流排控制器並不需要有實際的控制器電路結構,只需要設有可供讀寫之暫存器組1810、1820即可,而該等暫存器組可被寫入代表第一週邊裝置191與第二週邊裝置192之辨識碼,例如廠商辨識碼(Vendor ID)和元件辨識碼(device ID)以及類別代碼(class code)等等,並將相對應第一週邊裝置191與第二週邊裝置192之第一初始化程式碼1201與第二初始化程式碼1202放入基本輸入輸出系統程式碼120之中。在本發明一實施例中,該等虛擬週邊元件內連接匯流排控制器181和182中之暫存器組1810、1820位於虛擬週邊元件內連接匯流排控制器181和182中之可配置空間之表頭(configuration space header)內,暫存器組1810、1820可在後門(back door)被設置為可寫入。Since the universal serial bus in the conventional technology can only be initialized on the computer system after the operating system is loaded, the universal serial bus interface is used as the first peripheral device 191 and a second peripheral device of the connection interface. 192 will not function properly until the operating system is loaded. In order to improve these defects, the case is connected to the core logic circuit 11 (in this example, in the south bridge module 112, of course, the north bridge module 111), and the connection to the peripheral component busbar (PCI bus) is added. A plurality of virtual peripheral components of the 18 are connected to a PCI bus controller, and two are listed in this example, respectively, and the first virtual peripheral component is connected to the busbar controller 181 and the second virtual peripheral component. Row controller 182. The connection of the busbar controllers in the virtual peripheral components does not require an actual controller circuit structure, and only the register groups 1810 and 1820 for reading and writing are required, and the register groups can be It is written into an identification code representing the first peripheral device 191 and the second peripheral device 192, such as a Vendor ID and a device ID, and a class code, and the like. The first initialization code 1201 and the second initialization code 1202 of the peripheral device 191 and the second peripheral device 192 are placed in the basic input/output system code 120. In an embodiment of the invention, the register groups 1810, 1820 of the virtual peripheral components connected to the bus controllers 181 and 182 are located in the configurable space in the virtual peripheral components connecting the bus controllers 181 and 182. Within the configuration space header, the register sets 1810, 1820 can be set to be writable on the back door.

如第一圖(b)所示,其係本案基本輸入輸出系統程式碼120中關於第一初始化程式碼1201與第二初始化程式碼1202之格式,其中第一初始化程式碼1201係由一第一表頭12010與第一PCI擴充唯讀記憶體程式碼(PCI option ROM code)12011來組成,第二初始化程式碼1202係由一第二表頭12020與第二PCI擴充唯讀記憶體程式碼12021來組成,其中表頭12010與12020之內容將與暫存器組1810、1820內寫入之辨識碼相對應。在本發明之一實施方式中,該第一初始化程式碼1201與該第二初始化程式碼1202由第一週邊裝置191與第二週邊裝置192之製造商提供,其中表頭12010與12020之內容包括代表第一週邊裝置191與第二週邊裝置192之辨識碼,例如廠商辨識碼(Vendor ID)和元件辨識碼(device ID)以及類別代碼(class code)等等。因此將週邊裝置製造商提供的這些辨識碼分別寫入第一虛擬週邊元件內連接匯流排控制器181與第二虛擬週邊元件內連接匯流排控制器182中之暫存器組1810、1820中,使暫存器組1810、1820之內容與表頭12010與12020之內容相對應。As shown in the first figure (b), it is the format of the first initialization code 1201 and the second initialization code 1202 in the basic input/output system code 120 of the present case, wherein the first initialization code 1201 is a first The header 12010 is composed of a first PCI extended ROM code ROM 12011. The second initialization code 1202 is a second header 12020 and a second PCI extended read-only memory code 12021. The composition, wherein the contents of the headers 12010 and 12020 will correspond to the identification codes written in the register groups 1810, 1820. In an embodiment of the present invention, the first initialization code 1201 and the second initialization code 1202 are provided by the manufacturer of the first peripheral device 191 and the second peripheral device 192, wherein the contents of the headers 12010 and 12020 include The identification codes representing the first peripheral device 191 and the second peripheral device 192, such as a Vendor ID and a device ID, a class code, and the like. Therefore, the identification codes provided by the peripheral device manufacturer are respectively written in the first virtual peripheral component connection busbar controller 181 and the second virtual peripheral component connection busbar controller 182 in the register group 1810, 1820. The contents of the register sets 1810, 1820 are made to correspond to the contents of the headers 12010 and 12020.

而由於當電腦系統開始執行上電自檢程式(POST)後會載入基本輸入輸出系統程式碼120,基本輸入輸出系統會依照週邊元件內連接匯流排配置(PCI bus Configuration)的規格,逐一掃描週邊元件內連接匯流排(PCI bus)上連接的週邊裝置,並根據週邊裝置之辨識碼,在基本輸入輸出系統程式碼120中找到相對應之初始化程式碼來完成該等週邊裝置之初始化。因此,請參見第二圖,其係本案所發展出來可運行在上述週邊裝置之初始化方法流程圖,首先,當載入基本輸入輸出系統(步驟21)時,便會順便執行週邊元件內連接匯流排配置(PCI bus Configuration)程式,用來進行匯流排之配置(步驟22),藉此判斷是否在週邊元件內連接匯流排(PCI bus)上掃描到任何週邊元件內連接匯流排控制器(PCI bus controller)之辨識碼(步驟23),若無,則直接完成基本輸入輸出系統之載入(步驟24),並進入到作業系統的載入(步驟25),而若是掃描到有週邊元件內連接匯流排控制器(PCI bus controller)之一辨識碼時,便可以在基本輸入輸出系統程式碼中找到相對應該辨識碼之初始化程式碼,舉例而言,係可掃描該基本輸入輸出系統,檢查該基本輸入輸出系統中之初始化程式碼(例如第一圖(a)中之第一初始化程式碼1201和第二初始化程式碼1202)是否包含該辨識碼,如果是則將該初始化程式碼與該虛擬週邊元件內連接匯流排控制器對應起來(步驟26),進而執行該初始化程式碼以成功地對對應該初始化程式碼之辨識碼但連接至其它匯流排上之週邊裝置(例如第一圖(a)中之第一週邊裝置191)進行初始化(步驟27),使其可在作業系統載入前便可正常運作。舉例而言,由於第一圖(a)中之第一虛擬週邊元件內連接匯流排控制器(PCI bus controller)181掛在週邊元件內連接匯流排(PCI bus)18上,因此第一虛擬週邊元件內連接匯流排控制器181會在步驟22和23之週邊元件內連接匯流排配置(PCI bus Configuration)程式執行時被掃描到;執行步驟26時,在基本輸入輸出系統中檢查到第一虛擬週邊元件內連接匯流排控制器181之暫存器組1810中之辨識碼與第一初始化程式碼1201的第一表頭12010中之辨識碼相等,則執行步驟27,執行該第一初始化程式碼1201以對第一週邊裝置191進行初始化。同理,第二虛擬週邊元件內連接匯流排控制器182也會在週邊元件內連接匯流排配置(PCI bus Configuration)程式執行時被掃描到,則執行與之辨識碼對應之該第二初始化程式碼1202以對第二週邊裝置192進行初始化。Since the basic input/output system code 120 is loaded after the computer system starts to execute the power-on self-test program (POST), the basic input/output system scans one by one according to the specifications of the peripheral bus connection configuration (PCI bus configuration). The peripheral device is connected to the peripheral device connected to the bus bus, and the corresponding initialization code is found in the basic input/output system code 120 according to the identification code of the peripheral device to complete the initialization of the peripheral devices. Therefore, please refer to the second figure, which is a flow chart of the initialization method that can be run in the above peripheral device. First, when the basic input/output system is loaded (step 21), the peripheral component connection confluence is performed by the way. The PCI bus configuration program is used to configure the bus bar (step 22) to determine whether to connect the bus bar controller to any peripheral components in the peripheral bus (PCI bus). Bus controller) (step 23), if not, directly complete the loading of the basic input and output system (step 24), and enter the loading of the operating system (step 25), and if it is scanned into the peripheral components When one of the identification codes of the PCI bus controller is connected, the initialization code corresponding to the identification code can be found in the basic input/output system code. For example, the basic input/output system can be scanned and checked. Whether the initialization code in the basic input/output system (for example, the first initialization code 1201 and the second initialization code 1202 in the first figure (a)) includes the identification a code, if yes, the initialization code is associated with the connection bus controller in the virtual peripheral component (step 26), and the initialization code is executed to successfully identify the code corresponding to the initialization code but is connected to the other The peripheral device on the busbar (e.g., the first peripheral device 191 in the first diagram (a)) is initialized (step 27) so that it can operate normally before the operating system is loaded. For example, since the first virtual peripheral component (PCI bus controller) 181 in the first figure (a) is hung on the peripheral bus (PCI bus) 18, the first virtual periphery The in-component connection bus controller 181 is scanned when the peripheral bus connection configuration (PCI bus configuration) program is executed in steps 22 and 23; when the step 26 is executed, the first virtual is checked in the basic input/output system. The identification code in the register group 1810 of the peripheral component connected to the bus controller 181 is equal to the identification code in the first header 12010 of the first initialization code 1201, and then step 27 is executed to execute the first initialization code. 1201 initializes the first peripheral device 191. Similarly, the second virtual peripheral component connection bus controller 182 is also scanned when the peripheral bus bus configuration program is executed, and the second initialization program corresponding to the identification code is executed. Code 1202 initializes the second peripheral device 192.

由上述說明可知,本案僅需在核心邏輯電路11中增設暫存器組,進而寫入廠商辨識碼(Vendor ID)和元件辨識碼(device ID)以及類別代碼(class code)等辨識碼,實作上可生成一週邊元件內連接函式(PCI function)作為虛擬週邊元件內連接匯流排控制器,用以模擬連接至其它匯流排上之第一週邊裝置191或第二週邊裝置192,由於虛擬週邊元件內連接匯流排控制器可在週邊元件內連接匯流排配置(PCI bus Configuration)程式執行時被掃描到,如此便可辨認出系統上連接有第一週邊裝置191或第二週邊裝置192,進而讓第一週邊裝置191或第二週邊裝置192成功被初始化,而這些虛擬週邊元件內連接匯流排控制器中之暫存器組平時是預設成唯讀(read-only),但是透過一後門暫存器(back door register)之設定,例如由0改寫入1,而使這些暫存器組轉變為可寫入(write),進而可以讓工程師來配置這些暫存器組的內容。As can be seen from the above description, in this case, only the register group is added to the core logic circuit 11, and the identification codes such as the Vendor ID, the device ID, and the class code are written. A peripheral function PCI function can be generated as a virtual peripheral component internal connection bus controller for simulating the connection to the other peripheral device 191 or the second peripheral device 192 on the other bus bar, due to the virtual The peripheral component connection busbar controller can be scanned when the peripheral bus component configuration (PCI bus configuration) program is executed, so that the first peripheral device 191 or the second peripheral device 192 is connected to the system. In turn, the first peripheral device 191 or the second peripheral device 192 is successfully initialized, and the register groups in the virtual peripheral components connected to the bus controller are normally read-only, but through a The setting of the back door register, for example, is changed from 0 to 1, and these register groups are converted to write, which allows the engineer to configure these temporary Container group.

再舉例說明,原本以週邊元件內連接匯流排為傳輸介面之一網路卡,即使為節省接腳而改用通用串列匯流排為傳輸介面,根據本案之技術手段,製造商僅需在核心邏輯電路11中,於週邊元件內連接匯流排18上增設一個相對應於該網路卡之一虛擬週邊元件內連接匯流排控制器(PCI bus controller),其中具有寫入代表該網路卡辨識碼之暫存器即可。如此一來,透過本案之技術手段,主機板製造商在不需大幅更動設計之情況下,便可在作業系統載入前,讓網路卡等週邊裝置可正常運作,進而有效改善習用手段之缺失。本案之技術手段並不限制週邊裝置的個數。如果有多個週邊裝置需要在進入作業系統前完成初始化,即需要選擇唯讀記憶體程式碼(option ROM code)功能,那麼僅需要提供多個虛擬週邊元件內連接匯流排控制器就可以達到其功能。For example, the network card is originally connected to the busbar as a transmission interface in the peripheral component. Even if the universal serial busbar is used as the transmission interface to save the pin, according to the technical means of the present case, the manufacturer only needs to be at the core. In the logic circuit 11, a PCI bus controller corresponding to one of the virtual peripheral components of the network card is added to the connection bus bar 18 in the peripheral component, wherein the write represents the network card identification. The code register can be used. In this way, through the technical means of this case, the motherboard manufacturer can make the peripheral devices such as the network card operate normally before the operation system is loaded without greatly changing the design, thereby effectively improving the conventional means. Missing. The technical means of this case does not limit the number of peripheral devices. If there are multiple peripheral devices that need to be initialized before entering the operating system, that is, you need to select the option ROM code function, you only need to provide multiple virtual peripheral components to connect to the bus controller. Features.

而除了通用串列匯流排之外,改用其他週邊元件介面,例如安全數位輸入輸出(SDIO)匯流排或通用非同步接收器傳輸匯流排(UART)等之週邊元件也可使用本案手段來完成初始化,而週邊裝置可以是網路卡、音效卡等各類週邊元件。因此本案可有效改善上述習用技術手段之缺失,達成發展本案之主要目的。然本案發明得由熟習此技藝之人士任施匠思而為諸般修飾,然皆不脫如附申請專利範圍所欲保護者。In addition to the general-purpose serial bus, other peripheral components, such as secure digital input/output (SDIO) bus or universal non-synchronous receiver transmission bus (UART), can also be used to complete the peripheral components. Initialization, and peripheral devices can be various peripheral components such as network cards and sound effects cards. Therefore, this case can effectively improve the lack of the above-mentioned conventional technical means and achieve the main purpose of developing the case. However, the invention of the present invention is modified by those skilled in the art, and is not intended to be protected by the scope of the patent application.

本案圖式中所包含之各元件列示如下:The components included in the diagram of this case are listed as follows:

1...電腦系統1. . . computer system

10...中央處理單元10. . . Central processing unit

11...核心邏輯電路11. . . Core logic circuit

12...唯讀記憶體12. . . Read only memory

111...北橋模組111. . . North Bridge Module

112...南橋模組112. . . South Bridge Module

120...基本輸入輸出系統程式碼120. . . Basic input and output system code

1121...第一通用串列匯流排控制器1121. . . First universal serial bus controller

1122...第二通用串列匯流排控制器1122. . . Second universal serial bus controller

191...第一週邊裝置191. . . First peripheral device

192...第二週邊裝置192. . . Second peripheral device

18...週邊元件內連接匯流排18. . . Connected busbars in peripheral components

181...第一虛擬週邊元件內連接匯流排控制器181. . . a first virtual peripheral component connected to the busbar controller

182...第二虛擬週邊元件內連接匯流排控制器182. . . a second virtual peripheral component connected to the busbar controller

1810、1820...暫存器組1810, 1820. . . Scratchpad group

1201...第一初始化程式碼1201. . . First initialization code

1202...第二初始化程式碼1202. . . Second initialization code

12010...第一表頭12010. . . First header

12011...第一PCI擴充唯讀記憶體程式碼12011. . . First PCI expansion read-only memory code

12020...第二表頭12020. . . Second header

12021...第二PCI擴充唯讀記憶體程式碼12021. . . Second PCI expansion read-only memory code

本案得藉由下列圖式及說明,俾得更深入之了解:The case can be further understood by the following diagrams and explanations:

第一圖(a),其係本案為改善習用手段缺失所發展出來之一電腦系統較佳實施例之功能方塊示意圖。The first figure (a) is a functional block diagram of a preferred embodiment of a computer system developed in the present case to improve the lack of conventional means.

第一圖(b),其係本案基本輸入輸出系統程式碼中關於第一初始化程式碼與第二初始化程式碼之格式示意圖。The first figure (b) is a schematic diagram of the format of the first initialization code and the second initialization code in the basic input/output system code of the present case.

第二圖,其係本案所發展出來可運行在上述週邊裝置之初始化方法流程圖。The second figure is a flow chart of an initialization method that can be run in the above-mentioned peripheral device.

Claims (29)

一種核心邏輯電路,應用於具有一基本輸入輸出系統和一匯流排之一電腦系統內,該核心邏輯電路包含:一第一匯流排控制器,電連接至一第一週邊裝置;以及一第一虛擬匯流排控制器,電連接至該匯流排,其係具有一第一週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第一初始化程式碼,進而執行該第一初始化程式碼而完成該第一週邊裝置之初始化,其中該第一週邊裝置之初始化於作業系統載入前進行。 A core logic circuit is applied to a computer system having a basic input/output system and a bus bar, the core logic circuit comprising: a first bus bar controller electrically connected to a first peripheral device; and a first a virtual busbar controller electrically connected to the busbar having a first peripheral device identification code, and when the computer system configures the busbar, the computer system correspondingly finds the first peripheral device identification code The first initialization code in the basic input/output system, and then the first initialization code is executed to complete the initialization of the first peripheral device, wherein the initialization of the first peripheral device is performed before the loading of the operating system. 如申請專利範圍第1項所述之核心邏輯電路,其中該第一匯流排控制器與該匯流排係不同之傳輸介面規格。 The core logic circuit of claim 1, wherein the first bus controller has a different transmission interface specification than the bus. 如申請專利範圍第1項所述之核心邏輯電路,其中該第一匯流排控制器可為一通用串列匯流排控制器、一安全數位輸入輸出匯流排控制器或一通用非同步接收器傳輸匯流排控制器。 The core logic circuit of claim 1, wherein the first bus controller can be a universal serial bus controller, a secure digital input/output bus controller, or a universal asynchronous receiver. Bus controller. 如申請專利範圍第1項所述之核心邏輯電路,其中該匯流排之傳輸介面規格為週邊元件內連接匯流排規格。 The core logic circuit of claim 1, wherein the transmission interface specification of the bus bar is a connection bus bar specification in the peripheral component. 如申請專利範圍第1項所述之核心邏輯電路,其中該第一虛擬匯流排控制器係為包含有一暫存器組之一虛擬週邊元件內連接匯流排控制器,該暫存器組儲存該第一週邊裝置辨識碼。 The core logic circuit of claim 1, wherein the first virtual bus controller comprises a virtual peripheral component connection bus controller including a register group, the register group storing the The first peripheral device identification code. 如申請專利範圍第5項所述之核心邏輯電路,其中該第 一週邊裝置辨識碼包括代表該第一週邊裝置之一廠商辨識碼、一元件辨識碼以及一類別代碼。 The core logic circuit as described in claim 5, wherein the A peripheral device identification code includes a manufacturer identification code representing one of the first peripheral devices, a component identification code, and a category code. 如申請專利範圍第5項所述之核心邏輯電路,其中該基本輸入輸出系統中之該第一初始化程式碼係包含:一第一表頭,其包含該第一週邊裝置辨識碼;以及對應該第一週邊裝置之一第一擴充唯讀記憶體程式碼。 The core logic circuit of claim 5, wherein the first initialization code in the basic input/output system comprises: a first header, the first peripheral device identification code; and corresponding One of the first peripheral devices first expands the read-only memory code. 如申請專利範圍第5項所述之核心邏輯電路,其中該暫存器組平時預設成唯讀,而透過一後門暫存器之設定,可使該暫存器組轉變為可寫入。 The core logic circuit of claim 5, wherein the register group is preset to be read only, and the register group is converted to be writable by a setting of a backdoor register. 如申請專利範圍第1項所述之核心邏輯電路,其中更包括:一第二匯流排控制器,電連接至一第二週邊裝置;以及一第二虛擬匯流排控制器,電連接至該匯流排,其係具有一第二週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第二週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第二初始化程式碼,進而執行該第二初始化程式碼以完成該第二週邊裝置之初始化,其中該第二週邊裝置之初始化於作業系統載入前進行。 The core logic circuit of claim 1, further comprising: a second busbar controller electrically connected to a second peripheral device; and a second virtual busbar controller electrically connected to the confluence a row having a second peripheral device identification code, and when the computer system configures the bus bar, the computer system correspondingly finds a second initialization program in the basic input/output system according to the second peripheral device identification code And executing the second initialization code to complete initialization of the second peripheral device, wherein the initialization of the second peripheral device is performed before the operating system is loaded. 如申請專利範圍第9項所述之核心邏輯電路,其中該基本輸入輸出系統中之該第二初始化程式碼係包含:一第二表頭,其包含該第二週邊裝置辨識碼;以及對應該第二週邊裝置之一第二擴充唯讀記憶體程式碼。 The core logic circuit of claim 9, wherein the second initialization code in the basic input/output system comprises: a second header, the second peripheral device identification code; and corresponding One of the second peripheral devices is a second extended read-only memory code. 一種電腦系統,其包含一基本輸入輸出系統,一匯流排及一第一週邊裝置,該第一週邊裝置並不電連接至該匯流排,該電腦系統更包含:一第一匯流排控制器,電連接至該第一週邊裝置;以及一第一虛擬匯流排控制器,電連接至該匯流排,其係具有一第一週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第一初始化程式碼,進而執行該第一初始化程式碼以完成該第一週邊裝置之初始化,其中該第一週邊裝置之初始化於作業系統載入前進行。 A computer system comprising a basic input/output system, a bus bar and a first peripheral device, the first peripheral device is not electrically connected to the bus bar, the computer system further comprising: a first bus bar controller, Electrically connected to the first peripheral device; and a first virtual busbar controller electrically connected to the busbar having a first peripheral device identification code, and when the computer system configures the busbar, the computer The system correspondingly finds a first initialization code in the basic input/output system according to the first peripheral device identification code, and then executes the first initialization code to complete initialization of the first peripheral device, wherein the first peripheral device The initialization is performed before the operating system is loaded. 如申請專利範圍第11項所述之電腦系統,其中該第一匯流排控制器與該匯流排係不同之傳輸介面規格。 The computer system of claim 11, wherein the first bus controller has a different transmission interface specification than the bus. 如申請專利範圍第11項所述之電腦系統,其中該第一匯流排控制器可為一通用串列匯流排控制器、一安全數位輸入輸出匯流排控制器或一通用非同步接收器傳輸匯流排控制器。 The computer system of claim 11, wherein the first bus controller can be a universal serial bus controller, a secure digital input/output bus controller, or a universal asynchronous receiver. Row controller. 如申請專利範圍第11項所述之電腦系統,其中該匯流排之傳輸介面規格為週邊元件內連接匯流排規格。 The computer system according to claim 11, wherein the transmission interface specification of the busbar is a connection busbar specification in the peripheral component. 如申請專利範圍第11項所述之電腦系統,其中該第一虛擬匯流排控制器係為包含有一暫存器組之一虛擬週邊元件內連接匯流排控制器,該暫存器組儲存該第一週邊裝置辨識碼。 The computer system of claim 11, wherein the first virtual busbar controller comprises a virtual peripheral component connection busbar controller including a register group, the register group storing the first A peripheral device identification code. 如申請專利範圍第15項所述之電腦系統,其中該第一週邊裝置辨識碼包括代表該第一週邊裝置之一廠商辨識 碼、一元件辨識碼以及一類別代碼。 The computer system of claim 15, wherein the first peripheral device identification code comprises a vendor identification representative of the first peripheral device A code, a component identification code, and a class code. 如申請專利範圍第15項所述之電腦系統,其中該基本輸入輸出系統中之該第一初始化程式碼係包含:一第一表頭,其包含該第一週邊裝置辨識碼;以及對應該第一週邊裝置之一第一擴充唯讀記憶體程式碼。 The computer system of claim 15, wherein the first initialization code in the basic input/output system comprises: a first header, the first peripheral device identification code; and a corresponding One of the peripheral devices first expands the read-only memory code. 如申請專利範圍第15項所述之電腦系統,其中該暫存器組平時預設成唯讀,而透過一後門暫存器之設定,可使該暫存器組轉變為可寫入。 The computer system of claim 15, wherein the register group is preset to be read only, and the register group is converted to be writable by a setting of a back door register. 如申請專利範圍第11項所述之電腦系統,其中更包括:一第二匯流排控制器,電連接至一第二週邊裝置;以及一第二虛擬匯流排控制器,電連接至該匯流排,其係具有一第二週邊裝置辨識碼,而當該電腦系統配置該匯流排時,該電腦系統根據該第二週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第二初始化程式碼,進而執行該第二初始化程式碼以完成該第二週邊裝置之初始化,其中該第二週邊裝置之初始化於作業系統載入前進行。 The computer system of claim 11, further comprising: a second busbar controller electrically connected to a second peripheral device; and a second virtual busbar controller electrically connected to the busbar The system has a second peripheral device identification code, and when the computer system configures the bus bar, the computer system correspondingly finds a second initialization code in the basic input/output system according to the second peripheral device identification code. And executing the second initialization code to complete initialization of the second peripheral device, wherein the initialization of the second peripheral device is performed before the operating system is loaded. 如申請專利範圍第19項所述之電腦系統,其中該基本輸入輸出系統中之該第二初始化程式碼係包含:一第二表頭,其包含該第二週邊裝置辨識碼;以及對應該第二週邊裝置之一第二擴充唯讀記憶體程式碼。 The computer system of claim 19, wherein the second initialization code in the basic input/output system comprises: a second header, the second peripheral device identification code; and a corresponding One of the two peripheral devices is a second extended read-only memory code. 一種週邊裝置初始化方法,應用於具有一基本輸入輸出系統與一匯流排之一電腦系統,該電腦系統中一第一匯流 排控制器電連接至該電腦系統的一第一週邊裝置,該初始化方法包含下列步驟:進行一基本輸入輸出系統載入程式;根據該電腦系統中電連接至該匯流排之一第一虛擬匯流排控制器中之一第一週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第一初始化程式碼;以及執行該第一初始化程式碼而完成該第一週邊裝置的初始化,其中該第一週邊裝置之初始化於作業系統載入前進行。 A peripheral device initialization method is applied to a computer system having a basic input/output system and a bus bar, and a first confluence in the computer system The row controller is electrically connected to a first peripheral device of the computer system, and the initialization method comprises the steps of: performing a basic input/output system loading program; and electrically connecting to the first virtual sink of the bus bar according to the computer system Corresponding to one of the first peripheral device identification codes in the row controller, corresponding to finding a first initialization code in the basic input/output system; and executing the first initialization code to complete initialization of the first peripheral device, wherein the first The initialization of a peripheral device is performed before the operating system is loaded. 如申請專利範圍第21項所述之週邊裝置初始化方法,其中該第一匯流排控制器與該匯流排係不同之傳輸介面規格。 The method for initializing a peripheral device according to claim 21, wherein the first bus bar controller and the bus bar are different in transmission interface specifications. 如申請專利範圍第21項所述之週邊裝置初始化方法,其應用於上之該第一匯流排控制器可為一通用串列匯流排控制器、一安全數位輸入輸出匯流排控制器或一通用非同步接收器傳輸匯流排控制器。 The method for initializing a peripheral device according to claim 21, wherein the first busbar controller is applied to a universal serial bus controller, a secure digital input/output bus controller, or a universal The asynchronous receiver transmits the bus controller. 如申請專利範圍第21項所述之週邊裝置初始化方法,其中該匯流排之傳輸介面規格為週邊元件內連接匯流排規格。 The peripheral device initialization method according to claim 21, wherein the transmission interface specification of the bus bar is a connection bus bar specification in the peripheral component. 如申請專利範圍第21項所述之週邊裝置初始化方法,其應用於上之該第一虛擬匯流排控制器係為包含有一暫存器組,該暫存器組儲存該第一週邊裝置辨識碼。 The method for initializing a peripheral device according to claim 21, wherein the first virtual bus controller is configured to include a register group, wherein the register group stores the first peripheral device identification code. . 如申請專利範圍第25項所述之週邊裝置初始化方法,其中該第一週邊裝置辨識碼包括代表該第一週邊裝置之一廠商辨識碼、一元件辨識碼以及一類別代碼。 The method for initializing a peripheral device according to claim 25, wherein the first peripheral device identification code comprises a manufacturer identification code representing one of the first peripheral devices, a component identification code, and a category code. 如申請專利範圍第21項所述之週邊裝置初始化方法,其中更包含:進行一匯流排配置程式來於該匯流排上掃描出該第一週邊裝置辨識碼。 The method for initializing a peripheral device according to claim 21, further comprising: performing a bus configuration program to scan the first peripheral device identification code on the bus bar. 如申請專利範圍第21項所述之週邊裝置初始化方法,其中對應找到該基本輸入輸出系統中之該第一初始化程式碼的步驟更包含:掃描該基本輸入輸出系統;以及檢查該第一初始化程式碼之一表頭中是否包含該第一週邊裝置辨識碼。 The method for initializing a peripheral device according to claim 21, wherein the step of finding the first initialization code in the basic input/output system further comprises: scanning the basic input/output system; and checking the first initialization program. Whether the first peripheral device identification code is included in one of the code headers. 如申請專利範圍第21項所述之週邊裝置初始化方法,該電腦系統中一第二匯流排控制器電連接至該電腦系統的一第二週邊裝置,該初始化方法更包含:根據該電腦系統中電連接至該匯流排之一第二虛擬匯流排控制器中之一第二週邊裝置辨識碼而對應找到該基本輸入輸出系統中之一第二初始化程式碼;以及執行該第二初始化程式碼而完成該第二週邊裝置的初始化,其中該第二週邊裝置之初始化於作業系統載入前進行。The method for initializing a peripheral device according to claim 21, wherein a second busbar controller in the computer system is electrically connected to a second peripheral device of the computer system, the initialization method further comprises: according to the computer system Electrically connecting to one of the second virtual bus controllers of the bus bar and corresponding to finding a second initialization code in the basic input/output system; and executing the second initialization code The initialization of the second peripheral device is completed, wherein the initialization of the second peripheral device is performed before the loading of the operating system.
TW098134667A 2009-10-13 2009-10-13 Core logic circuit, computer system and method for initializing peripheral device TWI502353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098134667A TWI502353B (en) 2009-10-13 2009-10-13 Core logic circuit, computer system and method for initializing peripheral device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098134667A TWI502353B (en) 2009-10-13 2009-10-13 Core logic circuit, computer system and method for initializing peripheral device

Publications (2)

Publication Number Publication Date
TW201113706A TW201113706A (en) 2011-04-16
TWI502353B true TWI502353B (en) 2015-10-01

Family

ID=44909740

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098134667A TWI502353B (en) 2009-10-13 2009-10-13 Core logic circuit, computer system and method for initializing peripheral device

Country Status (1)

Country Link
TW (1) TWI502353B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757770B1 (en) * 1999-04-15 2004-06-29 Kabushiki Kaisha Toshiba Computer system supporting a universal serial bus (USB) interface and method for controlling a USB corresponding I/O device
TW200625092A (en) * 2005-01-05 2006-07-16 Via Tech Inc Bus controller and controlling method for use in computer system
TW200728990A (en) * 2006-01-27 2007-08-01 Avalue Technology Inc Method for initializing and activating peripheral and device for executing the same
TW200933368A (en) * 2008-01-23 2009-08-01 Phison Electronics Corp Non-volatile memory storage system and method for reading an expansion read only memory image thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757770B1 (en) * 1999-04-15 2004-06-29 Kabushiki Kaisha Toshiba Computer system supporting a universal serial bus (USB) interface and method for controlling a USB corresponding I/O device
TW200625092A (en) * 2005-01-05 2006-07-16 Via Tech Inc Bus controller and controlling method for use in computer system
TW200728990A (en) * 2006-01-27 2007-08-01 Avalue Technology Inc Method for initializing and activating peripheral and device for executing the same
TW200933368A (en) * 2008-01-23 2009-08-01 Phison Electronics Corp Non-volatile memory storage system and method for reading an expansion read only memory image thereof

Also Published As

Publication number Publication date
TW201113706A (en) 2011-04-16

Similar Documents

Publication Publication Date Title
US6754817B2 (en) Apparatus and method for detecting a change in system hardware configuration to reduce the amount of time to execute a post routine
US6574695B1 (en) System and method for providing hot swap capability using existing circuits and drivers with minimal changes
EP2257880B1 (en) System and method for transforming pcie sr-iov functions to appear as legacy functions
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
US9542201B2 (en) Network bios management
US10509750B2 (en) System and method for controlling multi-function pins in management controller stack
US10642678B1 (en) PCI/PCIe-non-compliance-vulnerability detection apparatus and method
TWI620061B (en) Error detecting apparatus of server and error detecting method thereof
CN101699415B (en) Core logic circuit, computer system and method for initializing peripheral equipment
CN107729071B (en) A kind of method and device initializing network interface card
US20060265581A1 (en) Method for switching booting devices of a computer
CN103593281A (en) Test system and test method
US20100274999A1 (en) Control system and method for memory
CN110765032A (en) Method for reading and writing I2C memory based on system management bus interface
US20230115629A1 (en) SYSTEM AND METHOD FOR VALIDATING A POWER CYCLE FOR AN EMULATED PCIe BASED STORAGE DEVICE
US10762029B2 (en) Electronic apparatus and detection method using the same
US7636797B2 (en) LPC configuration sharing method
US20080021695A1 (en) ROM emulator and ROM testing method using the same
CN103842980A (en) Protocol neutral fabric
US20080294421A1 (en) Hard Disk Drive Adapter For Emulating Hard Disk Drive Interface
CN110688235A (en) System and method for sharing wireless connection information between UEFI firmware and OS
TWI502353B (en) Core logic circuit, computer system and method for initializing peripheral device
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
CN110955566B (en) Error detecting method
JP2014170271A (en) Information processing device, initialization method, preprocessing method, and program