1306198 - 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種電腦資訊技術,特別是有關於一 種電源管理單元與開機主控單元間資料交流控制方法及系 統,其可應用於搭載至一電腦平台,且該電腦平台須至少 配備有一支援 SMI (System Management Interrupt)系統管 理中斷功能的BIOS(Basic Input/Output System)開機主控 單元和一 ACPI (Advanced Configuration and Power 籲Interface)電源管理單元,用以對該ACPI電源管理單元和 該BIOS開機主控單元之間提供一資料交流控制功能。 【先前技術】 ACPI (Advanced Configuration and Power Interface)為 一種高效能之電腦組態及電源管理技術,目前已廣泛地被 應用於各式之電腦平台,包括網路伺服器、桌上型個人電 腦、筆記型電腦、等等,用以對此些電腦平台提供一高效 鲁能之組態及電源管理功能,藉此而讓電源的應用更為經濟 且有效率。 於ACPI功能的研發工作上,目前業界大都採用ASL (ACPI Source Language)程式語言來撰寫ACPI的功能模 組;且於實際應用時,有需要先將ASL原始程式碼編譯 成機器石馬形式之AML(ACPI Machine Language)程式碼, 再將AML程式碼燒錄至快閃記憶體(Flash ROM)中,然後 由ACPI驅動程式(ACPI driver)來執行所需之電源管理功 5 19212 13061981306198 - IX. Description of the Invention: [Technical Field] The present invention relates to a computer information technology, and more particularly to a method and system for controlling data exchange between a power management unit and a power-on main control unit, which can be applied to To a computer platform, the computer platform must be equipped with at least one BIOS (Basic Input/Output System) boot control unit supporting SMI (System Management Interrupt) system management interrupt function and an ACPI (Advanced Configuration and Power) interface power management The unit is configured to provide a data exchange control function between the ACPI power management unit and the BIOS boot control unit. [Prior Art] ACPI (Advanced Configuration and Power Interface) is a high-performance computer configuration and power management technology. It has been widely used in various computer platforms, including network servers and desktop PCs. Notebook computers, etc., are used to provide a highly efficient configuration and power management function for these computer platforms, thereby making the application of the power supply more economical and efficient. In the research and development of ACPI functions, most of the current industry uses ASL (ACPI Source Language) programming language to write ACPI function modules; and in practical applications, it is necessary to compile ASL original code into AML in machine-rock form. (ACPI Machine Language) code, then burn the AML code into the flash ROM, and then use the ACPI driver to perform the required power management functions. 5 19212 1306198
' ‘ 於實際操作時,ACPI驅動程式常有需要與BIOS -(Basic Input/Output System)開機主控單元,特別是其中之 POST(Power On Self Test)電源開啟自行涓ij試程式,來產生 一些互動之資料交流關係。然而於實務上,由於BIOS功 能模組於研發上目前大都係採用C程式語言或組合語言來 撰寫,因此電腦工程師於發展某一 ACPI功能時,便有需 要同時以ASL程式語言來撰寫ASL程式碼並同時用C程 式語言(或組合語言)來撰寫相關之BIOS程式碼。由於ASL ®和C (或組合語言)為二種語法完全不同的程式語言,因此 顯然會對ACPI的研發人員造成很大的不便和困擾。此外, 每當晶片組需更換、硬體設計需修改、或BIOS程式碼需 要修正時,電腦工程師不僅需修正相關之BIOS程式碼, 且亦需同時修正相關之ASL程式碼,使得ACPI功能的修 正過程頗為費時費力而沒有效率。再且,由於ACPI功能 之ASL/AML程式碼與晶片組和硬體有關,因此使得ACPI 籲功能的ASL/AML程式碼不具有跨平台的執行能力。 【發明内容】 鑒於以上所述習知技術之缺點,本發明之主要目的便 是在於提供一種電源管理單元與開機主控單元間資料交流 控制方法及系統,其可讓電腦工程師於有需要修改ACPI 功能時,完全不必去修改相關之ASL/AML程式碼,使得 ACPI功能的修正過程更為方便而有效率。 本發明之另一目的在於提供一種電源管理單元與開 機主控單元間資料交流控制方法及系統,其可讓ACPI功 6 19212 1306198 •能的ASL/AML程式碼具有跨平台的執行能力。 < 纟發明t電源管理單元與開@主控單元間資料交流 控制方法及系統係設計來應用於搭载— 電腦平台須至少配備有-支請系統管^ 則s開機主控單元和―ACPI電源管理單元,用以= :C:I電源管理單元和該腦開機主控單元之間提供一資 料父流控制功能。 、 押制= 月?Γ管理單元與開機主控單元間資料交流 法至>、包含:⑴回應該電源管理單^以系統管理中 該電;:=的各種要求訊息而產生對應之致能訊息;若 理单凡發出-開機主控單元資料讀取要求訊自, :::r機主控單元資料讀取致能訊息;若該電源Ϊ理 單元議送要求訊息,物-開 =控單元功能啟動要求訊息,則發出一開機主= 訊息而執行^開機主控單元資料讀取致能 主控單亓所雇機早兀貧料讀取程序’藉以從該開機 " 屬之一系統組態資料暫存區中讀取出其中所暫 :系統組態資料;並將所讀取出之系統組 自 ’(回應該職主控單元資料傳送致能訊 二機主控單元f料傳送程序,藉此而將一組操 回庫兮源管理單元傳送給該開機主控單元;以及⑷ 口應5亥開機主如^置; () 單元Μ 力能啟動致能訊息而啟動該開機主控 早兀來執行一對應之功能。 19212 7 1306198 ‘於實體架構上,本發明 元間資料交流控制系統至少包含理早-與開機主控單 回應模組,其可回應該電源管理中斷訊息 所發出的各種要求訊息而產生對 ^先官理中斷方式 營理單元發出一開機主控單 ^ 若該電源 一開機主控單元資4項取要求訊息,則發 早兀貝科躓取致能訊息 出一開機主控單元資料傳送要立、白 原官理早元發 單元資料傳送致能訊自.若/一則發出-開機主控 控單元功能啟動要求訊息,則發出 =:=出:開機主 動致能訊息;(B)—開機-少 控單兀功能啟 應該系統管理中斷1自!貝料靖取模組’其可回 料讀取致能所發出的開機主控單元資 貝取级以息而執行一開機貝 以從該開機主控單元所屬夕β 凡貝科§貝取程序,藉 出盆由糾心系統組態資料暫存區中續取 出其中所暫存之系統纽態資料;並將所 中項取 資料再透過該线管理+斷 …统組態 管理單元.rr、-叫擔 果組來回傳給該電源 兮备γ 幵機主控單元資料傳送模組,1可回岸 該糸統官理中斷訊息回應模 -口應 傳自n 听贫出的開機主控單元資料 :广訊息而執行一開機主控單元資 而將:組操細從該電源管理單元傳送給該開:二 疋’以及(D)㈤機主控單元功能啟動模組,其 ς 統管理中斷訊息回應模組所發出的開機主控單元功:= 致能訊息而啟動該開機主控單元來執行一對庫2動 .本發明之電源管理單元與開機主控單元間資料月^ 控制方法及系統的特點在於令簡電源管理單元完全利 k 19212 1306198 ' 用SMI系統管理中斷處理機制來處理其與BIOS開機主控 • 單元之間的資料交流。此特點可讓電腦工程師於有需要修 改ACPI功能時,完全不必去修改ACPI驅動程式所屬之 ASL/AML程式碼,使得ACPI功能的修正過程更為方便而 有效率,且可讓ACPI功能的ASL/AML程式碼具有跨平台 的執行能力。 【實施方式】 以下即配合所附之圖式,詳細揭露說明本發明之電源 •管理單元與開機主控單元間資料交流控制方法及系統之實 施例。 第1圖即顯示本發明之電源管理單元與開機主控單元 間資料交流控制系統(如標號100所指之方塊)的應用方 式。如圖所示,本發明之電源管理單元與開機主控單元間 資料交流控制系統100於實際應用上係搭載至一電腦平台 10,例如為網路伺服器、桌上型個人電腦、或筆記型電腦, •且該電腦平台10須至少配置有一開機主控單元20和一電 源管理單元30 ;其中該開機主控單元20例如為一 BIOS(BasicInput/OutputSystem)功能模組,而該電源管 理單元 30 則例如一 ACPI (Advanced Configuration and Power Interface)之高階組態及電源介面的功能模組。 於實際操作時’本發明之電源管理單元與開機主控單 元間資料交流控制系統1 〇〇即可對該ACPI電源管理單元 3〇和該BIOS開機主控單元2〇二者之間提供一資料交流機 制’藉此而讓ACPI電源管理單元3〇可從bI〇s開機主控 9 19212 1306198' ' In actual operation, ACPI drivers often need to boot with the BIOS - (Basic Input / Output System), especially the POST (Power On Self Test) power-on 涓 ij test program to generate some Interactive data exchange relationship. However, in practice, since most of the BIOS function modules are written in C programming language or combination language, it is necessary for computer engineers to write ASL programming code in ASL programming language when developing an ACPI function. At the same time, the C program language (or combination language) is used to write the relevant BIOS code. Since ASL ® and C (or combination language) are two completely different programming languages, it is obviously inconvenient and troublesome for ACPI developers. In addition, whenever the chipset needs to be replaced, the hardware design needs to be modified, or the BIOS code needs to be corrected, the computer engineer not only needs to correct the relevant BIOS code, but also needs to correct the relevant ASL code at the same time to make the correction of the ACPI function. The process is time consuming and labor inefficient. Moreover, since the ASL/AML code of the ACPI function is related to the chipset and hardware, the ASL/AML code of the ACPI call function does not have cross-platform execution capability. SUMMARY OF THE INVENTION In view of the above disadvantages of the prior art, the main purpose of the present invention is to provide a data exchange control method and system between a power management unit and a boot main control unit, which allows a computer engineer to modify ACPI as needed. In the function, it is not necessary to modify the relevant ASL/AML code, so that the correction process of the ACPI function is more convenient and efficient. Another object of the present invention is to provide a data exchange control method and system between a power management unit and a power-on main control unit, which can enable ACPI function 6 19212 1306198 • capable ASL/AML code to have cross-platform execution capability. < 纟Invention t power management unit and open@main control unit data exchange control method and system design to be applied to the piggyback - computer platform must be equipped with at least - support system management ^ then s boot master unit and "ACPI power supply The management unit is configured to provide a data parent flow control function between the =:C:I power management unit and the brain boot control unit. , 押制 = month?资料The data exchange method between the management unit and the power-on main control unit is:>, including: (1) responding to the power management sheet, and generating the corresponding enabling message according to various requirements of the system management; Send-start the main control unit data read request message, :::r machine main control unit data read enable message; if the power processing unit negotiates the request message, the object-open = control unit function start request message, Then issue a boot main = message and execute ^ boot master control unit data read enable master control unit 亓 雇 兀 兀 兀 兀 ' ' ' ' ' ' ' ' ' ' ' 属 属 属 属 属 属 属 属 属 属Read out the temporary system configuration data; and read out the system group from '(return to the job master unit data transmission enable signal two machine main control unit f material transfer program, thereby A set of operation back to the library management unit is transmitted to the boot main control unit; and (4) the port should be turned on and off; () the unit can activate the enable message and start the boot master to execute the first Corresponding function. 19212 7 1306198 'In the physical architecture The meta-information exchange control system of the present invention includes at least an early-and-start-up master control response module, which can respond to various request messages issued by the power management interrupt message and generate a response to the A power on the main control unit ^ If the power supply is turned on, the main control unit 4 items take the request message, then the early release of the Becco capture message is sent out, the main control unit data transmission is to be established, the white original official reason is issued Unit data transmission enable message from. If / one issue - start the main control unit function start request message, then issue =: = out: start active enable message; (B) - boot - less control single function enable system Management interrupt 1 from the shell material intake module 'there can be returned to the reading enable enable the power-on master unit to take the level to perform a boot to the slave control unit from the night of the beta §Beitake program, borrowing the basin from the correction system configuration data temporary storage area to continue to take out the temporarily stored system state data; and the middle item to take the data through the line management + break ... configuration management unit .rr, - called the fruit group Passed to the power supply γ 幵 主 主 主 主 主 主 主 , 主 主 主 主 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官 官A power-on master unit transmits: the group operation is transmitted from the power management unit to the open: two-way and (D) (five) machine main control unit function activation module, and the system management interrupt message response module sends out The power-on main control unit: = enable message and start the power-on main control unit to perform a pair of library 2 movements. The data management unit and the power-on main control unit of the present invention are characterized by a control method and system. The power management unit is fully k 19212 1306198 'The SMI system manages the interrupt handling mechanism to handle the data exchange between it and the BIOS boot master unit. This feature allows the computer engineer to modify the ACPI function without having to modify the ASL/AML code that the ACPI driver belongs to, making the ACPI function correction process more convenient and efficient, and allowing the ACPI function to be ASL/ AML code has cross-platform execution capabilities. [Embodiment] Hereinafter, an embodiment of a data exchange control method and system between a power supply management unit and a power-on main control unit according to the present invention will be described in detail with reference to the accompanying drawings. Fig. 1 shows the application of the data exchange control system (e.g., the block indicated by reference numeral 100) between the power management unit and the power-on main control unit of the present invention. As shown in the figure, the data exchange control system 100 between the power management unit and the power-on main control unit of the present invention is mounted on a computer platform 10 in practical applications, such as a network server, a desktop personal computer, or a notebook type. The computer platform 10 and the computer platform 10 are configured with at least one power-on main control unit 20 and a power management unit 30; wherein the power-on main control unit 20 is, for example, a BIOS (Basic Input/Output System) function module, and the power management unit 30 For example, a high-level configuration of ACPI (Advanced Configuration and Power Interface) and a functional module of the power interface. In the actual operation, the data communication control system 1 between the power management unit and the power-on main control unit of the present invention can provide a data between the ACPI power management unit 3 and the BIOS boot control unit 2 The communication mechanism 'by this allows the ACPI power management unit 3 to boot from bI〇s 9 19212 1306198
J ’單元20讀取所需之系統組態資料(例如通訊埠COM-A/B、 ^ PS2-KB/MS、軟碟機、並列埠、等等,其目前為致能狀態 或禁能狀態)、將相關之操作資料(例如為目前所執行之作 業系統的名稱)傳送給該BIOS開機主控單元20、以及命令 該BIOS開機主控單元20來代為執行某些功能,例如為致 能PS2-KB/MS喚醒機制、致能遠端喚醒機制(Wakeup on LAN)、致能電話喚醒機制(Wakeup on Ring)、清除喚醒狀 態旗標、停止風扇的運轉、設定電源指示燈的狀態、將目 籲前之系統休眠狀態(SO, Sl,S4或S5)通知給BMC (Baseboard Management Controller)主機管控單元、等等。 如第2圖所示,本發明之電源管理單元與開機主控單 元間資料交流控制系統100的物件導向元件模型 (object-oriented component model)的基本架構至少包 含:(A)—系統管理中斷訊息回應模組101 ; (B)—開機主控 單元資料讀取模組110 ; (C)—開機主控單元資料傳送模組 籲120 ;以及(D)—開機主控單元功能啟動模組130。於具體 實施上,本發明之電源管理單元與開機主控單元間資料交 流控制系統100可完全以電腦程式來實現,並將此電腦程 式例如以一軔體之附加模組(add-on module)方式整合至該 電腦平台 10 中的 BIOS (Basic Input/Output System)基本輸 出入系統中的系統管理中斷處理單元(SMI Handler),並完 全透過ACPI電源管理單元30所發出的SMI系統管理中斷 訊息,例如透過軟體之系統管理中斷訊息(Software SMI) 或休眠模式系統管理中斷訊息(Sleep SMI)來傳遞SMI系統 10 19212 1306198 * •管理中斷訊息,以藉由此些SMI系統管理中斷訊息來啟動 - 及執行所需之ACPI與BIOS間之資料交流控制功能。 以下即首先分別說明本發明之電源管理單元與開機 主控單元間資料交流控制系統100中的各個構成模組 101、110、120、130的個別屬性及功能。 系統管理中斷訊息回應模組101可回應該ACPI電源 管理單元30以SMI系統管理中斷方式所發出的各種要求 訊息而產生對應之致能訊息;亦即若該ACPI電源管理單 籲元30以SMI方式發出一開機主控單元資料讀取要求訊 息,則回應地發出一開機主控單元資料讀取致能訊息至開J 'unit 20 reads the required system configuration data (such as communication 埠 COM-A/B, ^ PS2-KB/MS, floppy disk, parallel port, etc., which is currently enabled or disabled) Transferring related operational data (for example, the name of the currently operating operating system) to the BIOS boot control unit 20, and instructing the BIOS boot control unit 20 to perform certain functions, for example, enabling the PS2 -KB/MS wake-up mechanism, enable Wakeup on LAN, Wakeup on Ring, clear wake-up status flag, stop fan operation, set power indicator status, The system sleep state (SO, Sl, S4 or S5) is notified to the BMC (Baseboard Management Controller) host control unit, and so on. As shown in FIG. 2, the basic structure of the object-oriented component model of the data communication control system 100 between the power management unit and the booting control unit of the present invention includes at least: (A) - system management interrupt message Responsive module 101; (B) - boot master unit data reading module 110; (C) - boot master unit data transfer module call 120; and (D) - boot master unit function start module 130. In a specific implementation, the data exchange control system 100 between the power management unit and the power-on main control unit of the present invention can be implemented by a computer program, and the computer program is, for example, a add-on module. The method is integrated into a BIOS (Basic Input/Output System) in the computer platform 10 to basically input and output a system management interrupt processing unit (SMI Handler) in the system, and completely manages the interrupt message through the SMI system issued by the ACPI power management unit 30. For example, through the software system management interrupt message (Software SMI) or sleep mode system management interrupt message (Sleep SMI) to pass the SMI system 10 19212 1306198 * • management interrupt message to start by the SMI system management interrupt message - and Perform the required data exchange control between ACPI and BIOS. Hereinafter, the individual attributes and functions of the respective constituent modules 101, 110, 120, and 130 in the data exchange control system 100 between the power management unit and the power-on main control unit of the present invention will be separately described first. The system management interrupt message response module 101 can respond to the various request messages sent by the ACPI power management unit 30 in the SMI system management interrupt mode to generate a corresponding enable message; that is, if the ACPI power management unit calls the call 30 in an SMI manner. Send a power-on master unit data read request message, then send a power-on master unit data read enable message to the open
X 機主控單元資料讀取模組110 ;若該ACPI電源管理單元 30以SMI方式發出一開機主控單元資料傳送要求訊息,則 回應地發出一開機主控單元資料傳送致能訊息至該開機主 控單元資料傳送模組120 ;若該ACPI電源管理單元30以 SMI方式發出一開機主控單元功能啟動要求訊息,則回應 春地發出一開機主控單元功能啟動致能訊息至該開機主控單 元功能啟動模組130。於具體實施上,ACPI電源管理單元 30所採用之ASL程式語言包括有一 SMI呼叫指令,其格 式例如為 CALL—SMI (Command, Input Data, Output ,其中” 代表所需執行之功能的指令、 代表所欲傳送至BIOS開機主控單元20的資 料、而Daia"代表BIOS開機主控單元20所回傳 的資料。此處須注意的一點是,此處所用之 (Commcmd, Input Data, Output Data)僅為示範性的格式·,於 11 19212 1306198 ’具體實施上,例如於asl程式語mSMI呼叫指令 可能係以不同的等效格式來撰寫。 7 開機主控單疋資料讀取模組11〇可回應上述之系 理中斷訊息回應模組101所發出的開機主控單元資料讀取 致能訊息而執行一開機主控單元資料讀取程序,藉 ,開機主控單元所屬之一系統組態資料暫存區2Γ 中貝取出,、中所暫存之系統組態資料;並將所讀取出之系 統組態貝料透過該系統管理中斷訊息回應模組101來回傳 給該ACPI雷调答 -斜#卢「’ 具體實施上,此系統組態 ^4 # # ^ 2 H,j ^ ^ - SMM RAM (System Management Mode, Random Access Memory)之記憶體區域、或一 ebda (Extended BIOS Data Area)之記憶體區域。當 βΙ 控單元2。執行完成一贿電源開啟自行測試程序二 通常會自行將其所搜集到的硬體配備(例如包括通訊埠 、PS2_KB/MS、軟碟機、並列埠、等等)的系統组 恶貧料(即此些硬體配備為致能狀態或禁能狀態),全部暫 存^此系統組態資料暫存區21;因此開機主控單元資料讀 取輪組11G即可從此系統組態資料暫存區21讀取到所需之 系統組態資料’並將其回傳給ach電源管理單元30。 開機主控單π #料傳送模組12G其可回應該系統管理 中斷訊息回應模組1G1所發㈣關主控單元轉傳送致 能訊息而執行1機主控單元f料傳送程序,藉此而將一 组細作貧料(例如為目前所執行之作㈣統的名稱)從該 ACPI電源管理單元%傳送給該則s開機主控單元別。 19212 12 1306198 ‘此功能可讓ACPI電源管理單元30透過SMI係統中斷處理 ^ 機制來傳送任何資料給BIOS開機主控單元20。 開機主控單元功能啟動模組130可回應上述之系統管 理中斷訊息回應模組101所發出的開機主控單元功能啟動 致能訊息而啟動該BIOS開機主控單元20來執行一對應之 功能,例如為致能PS2-KB/MS喚醒機制、致能遠端喚醒機 制(Wakeup on LAN)、致能電話喚醒機制(Wakeup on Ring)、清除喚醒狀態旗標、停止風扇的運轉、設定電源指 鲁示燈的狀態、將目前之系統休眠狀態(SO, S1,S4或S5)通 知給 BMC (Baseboard Management Controller)主機管控單 元、等等。此功能可讓ACPI電源管理單元30透過SMI 係統中斷處理機制來命令BIOS開機主控單元20來代為執 行某些不適合由ACPI電源管理單元30來執行的功能。舉 例來說,在電腦平台10進入休眠狀態之前,有2個時間點 的工作必須有BIOS開機主控單元20之介入來執行;其中 φ 第1個時間點為ACPI中的_PTS程序(Method)被執行時, 而第2個時間點則為系統之硬體要進入S1-S5的休眠狀態 之最後時間點時。在電腦平台1 〇離開休眠狀態後有1個時 間點的工作必須有BIOS開機主控單元20之介入來執行; 此時間點為ACPI中的—WAK程序(Method)被執行時(亦即 從S1-S5的休眠狀態被喚醒時)。 以下即利用一應用實例來說明本發明之電源管理單 元與開機主控單元間資料交流控制系統100於實際應用時 的操作方式。 13 19212 1306198The X-machine main control unit data reading module 110; if the ACPI power management unit 30 sends a power-on main control unit data transmission request message in an SMI manner, responds to a power-on main control unit data transmission enable message to the power-on The main control unit data transmission module 120; if the ACPI power management unit 30 issues a boot main control unit function start request message in an SMI manner, responds to the spring ground to issue a boot main control unit function start enable message to the boot master The unit function activates the module 130. In an implementation, the ASL programming language used by the ACPI power management unit 30 includes an SMI call instruction, and the format thereof is, for example, CALL-SMI (Command, Input Data, Output, where) an instruction representing a function to be executed, a representative office. The data to be transmitted to the BIOS boot control unit 20, and Daia" represents the data returned by the BIOS boot control unit 20. It should be noted here that (Commcmd, Input Data, Output Data) is only used here. For the exemplary format, in 11 19212 1306198 'Specific implementation, for example, the asl program mSMI call instruction may be written in a different equivalent format. 7 The boot master control unit data read module 11 can respond The above-mentioned system interrupt data response module 101 sends a power-on master unit data read enable message to execute a power-on master unit data read program, and borrows one of the system configuration data of the boot master unit to temporarily store Zone 2Γ Zhongbei takes out the system configuration data temporarily stored in the system, and transmits the read system configuration data to the system management interrupt message response module 101. ACPI 雷调答-斜斜#卢"' In concrete implementation, this system configuration ^4 # # ^ 2 H,j ^ ^ - SMM RAM (System Management Mode, Random Access Memory) memory area, or an ebda ( The memory area of the Extended BIOS Data Area. When the beta control unit 2 is executed, the self-test program is usually installed by itself (for example, communication port, PS2_KB/MS, floppy disk). The system group of the machine, parallel, etc.) is poor (that is, the hardware is equipped with the enabled state or the disabled state), all temporarily stored in the system configuration data temporary storage area 21; therefore, the boot control unit The data reading wheel set 11G can read the required system configuration data from the system configuration data temporary storage area 21 and transfer it back to the ach power management unit 30. The power-on main control unit π # material transfer module 12G can respond to the system management interrupt message response module 1G1 issued (4) off the master control unit to transfer the enable message and execute the 1 machine master unit f material transfer program, thereby making a group of poor materials (for example, current The name of the executed (four) system) from the ACPI power management The %% is sent to the s boot master unit. 19212 12 1306198 'This function allows the ACPI power management unit 30 to transmit any data to the BIOS boot control unit 20 through the SMI system interrupt handling mechanism. The booting module 130 can activate the BIOS booting control unit 20 to perform a corresponding function in response to the booting main control unit function enable enable message sent by the system management interrupt message response module 101, for example, to enable the PS2- KB/MS wake-up mechanism, enable Wakeup on LAN, Wakeup on Ring, clear wake-up status flag, stop fan operation, set power indicator light status, The current system sleep state (SO, S1, S4 or S5) is notified to the BMC (Baseboard Management Controller) host control unit, and so on. This function allows the ACPI power management unit 30 to command the BIOS boot master unit 20 to perform certain functions that are not suitable for execution by the ACPI power management unit 30 through the SMI system interrupt handling mechanism. For example, before the computer platform 10 enters the sleep state, the work of two time points must be performed by the intervention of the BIOS boot control unit 20; wherein the first time point of φ is the _PTS program in the ACPI (Method). When it is executed, the second time point is when the hardware of the system enters the last time point of the sleep state of S1-S5. After the computer platform 1 〇 leaves the sleep state, there is a time point for the work to be executed by the BIOS boot control unit 20; this time point is when the WAK program (Method) is executed in the ACPI (that is, from S1) - When the sleep state of S5 is woken up). The following is an application example to illustrate the operation mode of the data exchange control system 100 between the power management unit and the power-on main control unit of the present invention in actual application. 13 19212 1306198
‘請同時參閱第1圖和第2圖,於實際應用時,當AW 電源管理單元30欲從BI0S開機主控單元2〇讀取該電腦 平台1〇的系統組態資料(即BI0S P0ST程序所搜集到 組態資料)時,其即可湘SMI“f理中斷方式來發出 控單元資料讀取要求訊息至本發明之電源管理單 控單元間資料交流控制系統1〇〇,令系統管理 中斷訊息回應模組⑻回應地發出一開機主控單元資料綠 ==息㈣機主控單元資料讀取模組㈣,令開機主貝 控皁元資料讀取模組丨丨〇岸地 =序,™ 開; 二區21中讀取出其中所暫存之系統組態資 ^回歸之系統組gf料再透過該系統管理中斷 D 二回傳給該ACPi電源管理單元30。 BIOS ; ^ , ;;;" ;" ^ " 二:料傳送致能訊息至開機主控單元資料二::主控 7開機主控單元資料傳送模組^ : 序,藉此而將該組操二='Please refer to FIG. 1 and FIG. 2 at the same time. In actual application, when the AW power management unit 30 wants to read the system configuration data of the computer platform from the BI0S boot main control unit 2 (ie, the BI0S P0ST program program) When collecting the configuration data), it can send the control unit data read request message to the power management unit control unit data exchange control system of the present invention, so that the system management interrupt message The response module (8) responds by issuing a power-on master unit data == interest (four) machine master unit data reading module (4), so that the main shell-controlled soap element data reading module 丨丨〇 shore = sequence, TM The system group gf in which the system configuration data stored in the second area 21 is read out is transmitted back to the ACPi power management unit 30 through the system management interrupt D. BIOS; ^ , ;;; ";" ^ " Two: material transmission enable message to the boot control unit data two:: master 7 boot master control unit data transfer module ^: order, thereby the group fuck two =
當AC: 給該BK)S_主控單元I 20來代為執::理:元:,命令職開機主控單元 特疋之功能時’其即可利用S奶系統管 19212 14 1306198 方式來發出發出一開機主控單元功能啟 令知a心电你s理早兀與開機主控單元古 系統_,令线管理中斷訊息回應模㈣控制 一開機主控單元功能啟動致能訊息至開機主控單:功:: 動模組削,令開機主控單元功能啟動模組i3〇m 動,画關主控單元2G來執行所需之功^: 能:™錢_、致能遠端錢機制、致能電= 醒機制、清除喚醒狀態旗標、停止風扇的運轉雷、 2示燈的狀態、將目前之系統休眠狀態(so,si,s::= 資料傳送給BMC主機管控單元、等等。 一 本發明之電源管理單元與開機主控單元間資料交& ㈣系統⑽於具體實施及應用上(即具體以電腦程式1 貫現及應用時)的—項優點為可讓A C PI驅動程式的 fL/AML程式碼具有跨平台的執行能力;亦㈣式開發人 、所開發之ACPI驅動程式可不必修改其asl/a紙程 於其它配備有不同型式之控制晶片模組和硬體的電 細平。上來執行。為了 mACpi驅動程式具有跨平台的執 行能力’其相關之ASL/AML程式碼可從其原先所屬之晶 片組和硬體(例如為北橋晶片模組、南橋晶片模組、⑽: 級輸出入晶片模組、和BMC晶片模組)被抽離出來,並完 全由BIOS開機主控單元來執行此些原絲屬至此些 晶片模組的功能。此作法可使得程式設計卫作更為簡工易。 时總而言之,本發明提供了 一種電源管理單元與開機主 控單元間資料交流控制方法及系統,其可搭载至一電腦平 19212 15 1306198 * ’台,用以提供一電源管理單元與開機主控單元間資料交流 * 控制功能;且其特點在於令ACPI電源管理單元完全利用 SMI系統管理中斷處理機制來處理其與BIOS開機主控單 元之間的資料交流。此特點可讓電腦工程師於有需要修改 ACPI功能時,完全不必去修改ACPI驅動程式所屬之 ASL/AML程式碼,使得ACPI功能的修正過程更為方便而 有效率,且可讓ACPI功能的ASL/AML程式碼具有跨平台 的執行能力,並使得程式設計工作更為簡易。本發明因此 •較先前技術具有更佳之進步性及實用性。 以上所述僅為本發明之較佳實施例而已,並非用以限 定本發明之實質技術内容的範圍。本發明之實質技術内容 係廣義地定義於下述之申請專利範圍中。若任何他人所完 成之技術實體或方法與下述之申請專利範圍所定義者為完 全相同、或是為一種等效之變更,均將被視為涵蓋於本發 明之申請專利範圍之中。 * 【圖式簡單說明】 第1圖為一應用示意圖,用以顯示本發明之電源管理 單元與開機主控單元間資料交流控制系統搭載至一電腦平 台的應用方式; 第2圖為一系統架構示意圖,用以顯示本發明之電源 管理單元與開機主控單元間資料交流控制系統的物件導向 元件模型的基本架構。 【主要元件符號說明】 10 電腦平台 16 19212 1306198 ' '20 開機主控單元(BIOS) 21 系統組態資料暫存區(SMM RAM/EBDA) 30 電源管理單元(ACPI) 100 本發明之電源管理單元與開機主控單元間資料交流控制系統 101 系統管理中斷訊息回應模組 110 開機主控單元資料讀取模組 120 開機主控單元資料傳送模組 130 開機主控單元功能啟動模組 17 19212When AC: Give the BK) S_Master Unit I 20 to perform the following:: Reason: Yuan: When the command is activated, the function of the main control unit is selected, 'It can be issued by the S milk system tube 19212 14 1306198 Issue a power-on master unit function to start knowing a heart-powered you and the power-up master unit _, the line management interrupt message response mode (four) control a boot master unit function start enable message to the boot master Single: Work:: Dynamic module cutting, so that the boot main control unit function start module i3〇m move, draw the main control unit 2G to perform the required work ^: Can: TM money _, enable remote money mechanism , enable the power = wake up mechanism, clear the wake-up status flag, stop the operation of the fan, the status of the 2 lights, the current system sleep state (so, si, s:: = data transfer to the BMC host control unit, etc. Etc. The data exchange between the power management unit and the power-on master unit of the invention (4) system (10) in the specific implementation and application (that is, when the computer program 1 is implemented and applied) The driver's fL/AML code has cross-platform execution capability; also (4) developer The developed ACPI driver can be executed without having to modify its asl/a paper path to other control chip modules and hardware with different types of control. For the mACpi driver, it has cross-platform execution capability. The associated ASL/AML code can be extracted from its original chipset and hardware (for example, Northbridge chipset, Southbridge die, (10): Level output chip module, and BMC chip module). And the BIOS boot control unit performs the functions of the original silk to the chip modules. This method can make the programming security easier and easier. In summary, the present invention provides a power management unit and The data exchange control method and system between the main control units can be carried to a computer 19212 15 1306198 * ', which is used to provide a data exchange between the power management unit and the power-on main control unit* control function; The ACPI power management unit fully utilizes the SMI system management interrupt handling mechanism to handle the data exchange between it and the BIOS boot control unit. This feature allows computer engineers When it is necessary to modify the ACPI function, it is not necessary to modify the ASL/AML code to which the ACPI driver belongs, so that the ACPI function correction process is more convenient and efficient, and the APL/AML code of the ACPI function can be cross-platform. </ RTI> </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; The scope of the technical content of the present invention is broadly defined in the following claims. If any technical entity or method completed by another person is identical to the scope defined in the following patent application, or It is an equivalent change that is considered to be covered by the scope of the present invention. * [Simple diagram of the diagram] Figure 1 is an application diagram showing the application mode of the data communication control system between the power management unit and the power-on main control unit of the present invention to a computer platform; Figure 2 is a system architecture The schematic diagram shows the basic structure of the object-oriented component model of the data exchange control system between the power management unit and the power-on main control unit of the present invention. [Main component symbol description] 10 Computer platform 16 19212 1306198 ' '20 Power-on main control unit (BIOS) 21 System configuration data temporary storage area (SMM RAM/EBDA) 30 Power management unit (ACPI) 100 Power management unit of the present invention Data communication control system 101 with system power-on main control unit System management interrupt message response module 110 Power-on main control unit data reading module 120 Power-on main control unit data transmission module 130 Power-on main control unit function startup module 17 19212