TWI227407B - Flexible driver structure and design method thereof - Google Patents

Flexible driver structure and design method thereof Download PDF

Info

Publication number
TWI227407B
TWI227407B TW91124726A TW91124726A TWI227407B TW I227407 B TWI227407 B TW I227407B TW 91124726 A TW91124726 A TW 91124726A TW 91124726 A TW91124726 A TW 91124726A TW I227407 B TWI227407 B TW I227407B
Authority
TW
Taiwan
Prior art keywords
module
driver
peripheral device
peripheral
patent application
Prior art date
Application number
TW91124726A
Other languages
Chinese (zh)
Inventor
Tze-Min Chen
Jiang-Wei Lin
Bo-Er Wei
Original Assignee
Inst Information Industry
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 Inst Information Industry filed Critical Inst Information Industry
Priority to TW91124726A priority Critical patent/TWI227407B/en
Application granted granted Critical
Publication of TWI227407B publication Critical patent/TWI227407B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a flexible driver structure and design method thereof, which primarily utilize a general-purpose device driver (GPDD) module to package at least a peripheral device as a device driver so as to drive the peripheral device. The peripheral device services perform the accessing function to the peripheral device by means of an application program interface (API) design and the GPDD module. The GPDD module registers peripheral device to system through a hardware management module and can also utilizes the expandable resident program designed by the hot-swap interface module to expand the capability of the GPDD module, making the design of driver more flexible.

Description

B7 尤指一種彈性 1227407 五、發明説明(1 ) 【本發明之領域】 本發明係關於一種開發驅動程式工具 化驅動程式架構及其設計方法。 【本發明之背景】 第1圖顯示目前系統設計週邊設備之波程圖,當開妒 奢手一新的系統週邊設備時,首 β 、 頁先必屑對系統及新的週邊 §又備進行需求及功能分析(步驟S1〇l)。接著,再對軟 硬體進行規劃並分工(步驟S102)。繼而,開始進行新 的週邊電路設計與電路佈局(步驟SH)3、步驟S1⑷。 在設計硬體時或硬體完成,開發人員必須學習該系統所使 用《作業系統核心、系統驅動程式開發工具(DDK )、 及系統應用程式介面(API)(步驟s1Q5),繼而開發相 關之驅動程式(步驟S106),並測試該驅動程式之效能 (步驟S 1 07 )。當驅動程式的執行效能不佳時,則必須 重新設計硬體或替換新的作業系統,尤其在發展另一作業 系統的驅動程式時,得重複進行學習系統驅動程式開發工 具、系統應用程式介面及開發驅動程式等工作(例如:學 習WinCE作業系統須要3_6個月),而延遲開發新產品的 時間與造成額外的負擔。 又,目前的開發驅動程式工具幾乎只支援微軟產品 (Windows系列),而不具跨多個作業系統的能力,且 未能滿足嵌入式系統之需求。 本紙張尺度適用中國國家標準A4規格(210x297公釐) (請先閲讀背面之注意事項再填寫本頁各欄) n_l ϋ m ^^1 ^^1 i^i—ϋ ϋ n 1227407 A7 B7 五、發明説明(2 ) ' 發明人爰因於此,本於積極發明之精神,亟思一種可 以解決上述問題之「彈性化驅動程式架構及其設計方 法」,幾經研究實驗終至完成此項嘉惠世人之發明。 【本發明之概述】 本發明之主要目的係在提供一種彈性化驅動程式架構 及其设计方法,俾能提供一致性的設計介面來開發驅動程 式,並可支援多種作業系統。 本發明之另一目的係在提供一種彈性化驅動程式架構 及其設計方法,俾能加速開發新產品的時間與降低開發成 本。 本發明之又一目的係在提供一種彈性化驅動程式架構 及其設計方法,俾能支援多種擴充介面以及允許開發者自 行組態驅動程式的常駐程式部份。 依據本發明之一特色,本發明之彈性化驅動程式架構 係用以開發一週邊裝置,該週邊裝置係與一主機裝置電氣 連接,該彈性化驅動程式架構並配合一作業系統,該作業 系統具有複數函式模組,該彈性化驅動程式架構主要包 括· 一通用週邊驅動程式(General-Purpose DeviceB7 especially a kind of flexibility 1227407 V. Description of the invention (1) [Field of the invention] The present invention relates to a tool driver structure for developing a driver and a design method thereof. [Background of the invention] Figure 1 shows the wave path diagram of the current system design peripherals. When you are envious of a new system peripheral, the first β and the page must be chipped on the system and the new peripheral. Requirements and functions analysis (step S101). Next, the hardware and software are planned and divided (step S102). Then, new peripheral circuit design and circuit layout (step SH) 3 and step S1⑷ are started. When designing or completing the hardware, developers must learn the operating system core, system driver development tools (DDK), and system application programming interface (API) (step s1Q5) used by the system, and then develop related drivers Program (step S106), and test the performance of the driver (step S 107). When the performance of the driver is not good, you must redesign the hardware or replace the new operating system, especially when developing the driver of another operating system, you must repeat the learning system driver development tools, system application program interface, and Development of drivers and other tasks (for example: learning WinCE operating system takes 3_6 months), and delaying the development of new products and causing additional burdens. In addition, the current development driver tools only support Microsoft products (Windows series), not the ability to span multiple operating systems, and fail to meet the needs of embedded systems. This paper size is applicable to the Chinese national standard A4 (210x297 mm) (please read the notes on the back before filling in the columns on this page) n_l ϋ m ^^ 1 ^^ 1 i ^ i—ϋ ϋ n 1227407 A7 B7 V. Explanation of the invention (2) 'Because of this, the inventor, based on the spirit of active invention, urgently thinks about a "flexible driver program architecture and its design method" that can solve the above problems. After several research experiments, this bonus has been completed. Inventions of the world. [Summary of the invention] The main purpose of the invention is to provide a flexible driver architecture and design method, which can provide a consistent design interface to develop drivers, and can support a variety of operating systems. Another object of the present invention is to provide a flexible driver program structure and a design method thereof, which can accelerate the development time and reduce the development cost of new products. Another object of the present invention is to provide a flexible driver program structure and a design method thereof, which cannot support a variety of extended interfaces and allows developers to configure the resident program part of the driver program by themselves. According to a feature of the present invention, the flexible driver program structure of the present invention is used to develop a peripheral device, the peripheral device is electrically connected to a host device, the flexible driver program structure is matched with an operating system, and the operating system has Plural function modules, the flexible driver architecture mainly includes a general-Purpose Device

Driver,GPDD )模組,係分別與複數函式模組相連接, 以驅動週邊裝置;一應用程式介面(API )模組,係提供 一週邊裝置資料工具函式集、一週邊裝置服務函式集、及 一資源管理服務函式集,並透過複數函式模組與通用週邊 驅動程式(GPDD)模組提供至少一應用程式以直接進行 (請先閲讀背面之注意事項再填寫本頁各攔) 裝---------訂---- ,線!Driver, GPDD) modules, which are connected to plural function modules respectively to drive peripheral devices; an application program interface (API) module, which provides a peripheral device data tool function set and a peripheral device service function Set, and a resource management service function set, and provide at least one application directly through plural function modules and general peripheral driver (GPDD) modules (please read the precautions on the back before filling in the blocks on this page) ) Install --------- Order ----, line!

五、發明説明(3 ) 取功能’· 一硬體管理模組,係具有一對應於週 該“理機制,t透過通用週邊驅動程式模組來管理 ^^^(P1Ug-In Interf^) 叙和、、疋供5又计,丨面及—延伸空間,以供通用週邊驅 2模組使用’其中,依據熱插拔介面模組所設計之成 =擴充性常駐程式(ExtenslonDaemon)物件,俾 供擴展通用週邊驅動程式模組之能力。 依據本發明之另—特色,本發明之彈性化驅動程式之 万法係用以開發-週邊裝置,該週邊裝置係電氣連接 =機裝置,該主機裝置係採用—嵌人式作業系統,彼入 ,乍業系統具有複數複數函式模組,該設計方法主要包括 :述步驟:(A)對一週邊裝置進行系統及需求解析,並 '週邊裝置需要設計之軟體及硬體進行切割;(B)對硬 -部知進行%路设计及佈局處理;(c)學習嵌入式作業 ㈣及其應用程式介面;以及(D)撰寫該 動程式及其應用程式。 、由於本發明構造新穎,能提供產業上利@,且確有增 進功效,故依法申請發明專利。 【圖式簡單説明】 第1圖係習知開發新週邊設備之流程圖。 第2圖係本發明之功能模組方塊圖。 第3圖係利用本發明開發週邊設備之流程圖。 1227407 A7 B7 五、發明説明(4 ) -- 【圖號説明】 通用週邊驅動程式模組2丨應用程式介面模組22 硬體管理模、组 23熱插拔介面模、組24 作業系統 25自行開發模組 26 【較佳具體實施例之詳細説明】 有關本發明之較佳實施例,係以開發一例如為擴充卡 <週邊裝置為例説明,參照第2圖顯示本發明彈性化驅動 私式采構之功犯模組方塊圖,其主要由一通用週邊驅動程 式(General-Purpose Device Driver,GPDD )模組 21、一應用程式介面(API )模組22、一硬體管理模組 23及一熱插拔介面(Plug-In Interface)模組24等主 要功能模組所構成。其中,該上述功能模組必須與一作業 系統25搭配。於本實施例中,所搭配之作業系統25係可 為較系見之Win CE作業系統、Linux作業系統、paim作 業系統、…、及其他作業系統。 作業系統2 5 —般包含有複數組函式庫,例如:資源管 理函式庫、匯流排驅動程式函式庫、及檔案系統/裝置管 理函式庫。前述之通用週邊驅動程式模組(GPDD ) 21係 與作業系統2 5中的複數組函式庫相連結,以使用作業系統 25所&供之基本功能’並將核心模式(Kerilal Mode ) 下的擴充卡服務包裝為一驅動程式並向系統註冊。 應用程式介面(API)模組22為一組應用程式發展介 面,其主要提供三種功能:擴充卡資料工具函式集、擴充 ____7 本紙張尺度適用中關家標準(CNS) A4規格(210X297公釐) -- (請先閱讀背面之注意事項再填寫本頁各欄) 裝---------訂---- 線! 1227407 A7 B7 五、發明説明(5 ) 卡服務函式集、及資源管理服務函式集。擴充卡資料工具 函式集係用以進行存取擴充卡CIS與暫存器資料等功能。 擴充卡服務函式集用以進行回報擴充卡服務資訊、註冊資 訊、及狀態資訊,或進行重置、物件遮罩設定等功能◦資 源管理服務函式集則用以進行系統資源的檢查與配置,其 中’系統資源包括記憶體、中斷要求(I R Q )、直接記憶 體存取(Direct Memory Access,DMA)、及I/O位址 等〇 應用程式介面(API)模組22除了提供上述三種功能 外’更與作業系統2 5中的複數組函式庫相連結,俾供透過 相連結之函式庫與通用週邊驅動程式模組(GPDD) 21相 連結,以使得驅動程式開發者在使用者模式(User Mode )下,藉由應用程式介面模組22開發擴充卡服務, 亦即自行開發模組2 6,例如:存取擴充卡相關功能、存取 系統資源、特定功能模組、及要求自動組態。以直接進行 擴充卡服務,其中,該等應用程式實際上是透過通用週邊 驅動程式模組2 1來控制擴充卡。提供應用程式可以直接進 行擴充卡存取功能,即應用程式介面模組22所提供的自行 開發模組2 6 (應用程式)是透過通用週邊驅動程式模組 2 1所釋放出來。 硬體管理模組2 3透過與通用週邊驅動程式模組2 1之 連結置於作業系統2 5中,以用來管理使用者個別註冊的擴 充卡資訊,並協助擴充卡驅動程式的註冊功能,以及負責 比對擴充卡上的識別資料是否符合利用本發明開發出來的 ____8____ 本紙張尺度適用中國國家標準(CNS) A4規格(210X297公釐) (請先閲讀背面之注意事項再填寫本頁各欄) 裝---------訂---- ,線! I227407 A7 五、發明~ ---— 應用程式或比對驅動程式的註冊資料。因此,當擴充卡插 =一王機(例如·· PDA)時,作業系統的擴充卡管理服務 θ為問所有已註冊的驅動程式是否對應到擴充卡識別碼, 且通用週邊驅動程式(GPDD)模組21會攔截該訊號,並 進一步與硬體管理模組23進行溝通,以比對目前系統内利 用本發明開發的驅動程式是否有吻合者。當然,若擴充卡 (週邊裝置)所搭配的作業系統不同時,設計的方法和註 冊的方法係可彈性地加以更改。 熱插拔介面模組2 4是一套設計介面,以在核心模式 (Kernal Mode)提供擴充通用週邊驅動程式模組21之 玉間。而藉由該熱插拔介面模組24所設計出來的成果即為 二、、且心的擴充性常駐程式(e X t e n s i ο n D e m ο η ),以供 2動私式開發者根據其需要開發新的功能,以擴充通用週 延驅動程式模組2丨之能力。因此,本發明彈性化驅動程式 架構係透過通用週邊驅動程式(GpDD)模組21、應用程 式介面(API )模組22、硬體管理模組23、及一熱插拔介 面模組24來簡化驅動程式開發的複雜度,並且帶來可同時 支援多種作業系統與多種擴充介面之效益。 第3圖顯示利用本發明彈性化驅動程式架構之流程 圖,當開發一新的週邊裝置時,僅需要下述步騾;先對週 =裝置(例如··用以插拔於一 pDA的擴充卡)進行系統及 需2解才斤,並對擴充卡所需要設計之軟體及硬體進行切割 ^分工)(步騾S301、S302 ),接著對擴充卡硬體部份 進行電路設計及佈局處理(步騾S3〇3、S3〇4),並開始 力氏張尺家鮮(CNS) A4規格(21〇χ2997公釐)--~~---- (請先閲讀背面之注意事項再填寫本頁各欄) 裝 ------、可-------- 1227407 五、發明説明(7 ) 學習搭配該擴充卡之作業系統的應用程式介面(API) (步驟S305 ),繼而開始撰寫擴充卡之驅動程式及 无應用(步驟S306 ),當搭配該擴 時,僅需學習應用程式介面(API)部份而2 = 學習系統驅動程式開發工具(贿),以縮短從 產TO彡又计與開發所需要的時程。 由以上之説明可知,本發明利用通用週邊驅動程式 (GPDD)模組將週邊裝置服務包裝為一個驅動程式,通 用週邊驅動程式模組並透過硬體管理模組來將週邊裝置向 系統註冊,通用週邊驅動程式模組更可透過熱插拔介二模 組設計擴充性常駐程式,以擴增通用週邊驅動程式模组的 能力,並使得設計驅動程式更具有彈性,本發明並利用週 邊裝置存取應用程式介面提供驅動程式開發者開發驅動程 式’且所開發出來的成果係能透過通用週邊驅動程式模組 來對週邊裝置進行存取功能,俾能提供一致性的設計介面 來開發驅動程式,並可支援多種作業系統,加速開發新產 品的時間與降低開發成本,以及支援多種擴充介面並允許 開發者自行組態驅動程式的常駐程式部份。 综上所陳,本發明無論就目的、手段及功效,在在均 員示其迎異於^知技術之特徵,實為一極具實用價値之發 明。惟應注意的是,上述實施例係為了便於説明而已,本 發明所主張之權利範圍非僅限於上述實施例,而凡與本發 明有關之技術構想,均屬於本發明之範轉。 10 本紙張尺度適用中國國家標準(CNS) A4規格(210X297公釐) ^訂 . (請先閲讀背面之注意事項再填寫本頁各攔)V. Description of the invention (3) Access function '· A hardware management module, which has a corresponding "mechanism", which is managed by a universal peripheral driver module ^^^ (P1Ug-In Interf ^) And, 5 are counted, and the surface and-extension space for the use of universal peripheral drive 2 module 'Among them, designed based on the hot-swap interface module = ExtenslonDaemon object, 俾Provides the ability to expand the universal peripheral driver module. According to another feature of the present invention, the method of the flexible driver of the present invention is used to develop-peripheral devices, the peripheral devices are electrical connections = mechanical devices, the host device The system adopts an embedded operating system. The system has multiple function modules. The design method mainly includes the following steps: (A) System and requirement analysis of a peripheral device, and 'peripheral device needs Design the software and hardware to cut; (B)% -design and layout processing of the hard-brain knowledge; (c) learn embedded operations and its application program interface; and (D) write the mobile program and its application Program 2. As the invention has a novel structure, can provide industrial benefits, and indeed has an enhanced effect, it applies for an invention patent in accordance with the law. [Schematic description] Figure 1 is a flowchart of the conventional development of new peripheral equipment. Figure 2 is Block diagram of the functional module of the present invention. Figure 3 is a flowchart of developing peripheral equipment using the present invention. 1227407 A7 B7 V. Description of the invention (4)-[Illustration of drawing number] Universal peripheral driver module 2 丨 Application program Interface module 22 hardware management module, group 23 hot-swap interface module, group 24 operating system 25 self-developed module 26 [detailed description of preferred embodiments] The preferred embodiment of the present invention is to develop a For example, the expansion card < peripheral device is taken as an example. Referring to FIG. 2, a block diagram of the power-off module for driving the private acquisition of the present invention with elasticity is shown, which is mainly composed of a General-Purpose Device Driver (GPDD). ) Module 21, an application programming interface (API) module 22, a hardware management module 23, and a plug-in interface (Plug-In Interface) module 24 and other major functional modules. Among them, the above Work The energy module must be matched with an operating system 25. In this embodiment, the matched operating system 25 is a Win CE operating system, a Linux operating system, a paim operating system, ..., and other operating systems. The operating system 2 5 generally includes a complex array function library, such as: a resource management function library, a bus driver function library, and a file system / device management function library. The aforementioned general peripheral driver module (GPDD ) 21 is linked with the complex array function library in the operating system 2 5 to use the basic functions provided by the operating system 25 & and package the expansion card service under the Kerilal Mode as a driver and Register with the system. Application programming interface (API) module 22 is a set of application development interfaces, which mainly provide three functions: expansion card data tool function set, expansion ____7 This paper standard is applicable to Zhongguanjia Standard (CNS) A4 specification (210X297 public Li)-(Please read the notes on the back before filling in the columns on this page) Install --------- Order ---- Line! 1227407 A7 B7 5. Description of the invention (5) Card service function set and resource management service function set. Expansion card data tools Function sets are used to access expansion card CIS and register data and other functions. Expansion card service function set is used to report expansion card service information, registration information, and status information, or to perform functions such as reset and object mask setting. ◦ Resource management service function set is used to check and configure system resources. Among them, the system resources include memory, interrupt request (IRQ), direct memory access (DMA), and I / O address, etc. Application programming interface (API) module 22 provides the above three functions in addition to Wai 'is also linked with the complex array function library in the operating system 25, and is provided for linking with the General Peripheral Driver Module (GPDD) 21 through the linked function library, so that the driver developer can In the User Mode, the expansion card service is developed by the application program interface module 22, that is, the self-developed module 2 6 is used, for example, access to expansion card related functions, access to system resources, specific function modules, and requirements. Automatic configuration. To directly perform the expansion card service, in which these applications actually control the expansion card through the universal peripheral driver module 2 1. The provided application program can directly access the expansion card access function, that is, the self-developed module 2 6 (application program) provided by the application program interface module 22 is released through the universal peripheral driver module 2 1. The hardware management module 2 3 is placed in the operating system 2 5 through the connection with the universal peripheral driver module 21 to manage the individual expansion card information registered by the user and assist the registration function of the expansion card driver. And it is responsible for comparing whether the identification information on the expansion card meets the ____8____ developed by the present invention. This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm) (Please read the precautions on the back before filling in each page Column) Install --------- Order ----, line! I227407 A7 V. Invention ~ ---— Registration information of application or comparison driver. Therefore, when the expansion card is inserted = a king machine (such as PDA), the expansion card management service θ of the operating system asks whether all registered drivers correspond to the expansion card identification code, and the general peripheral driver (GPDD) The module 21 intercepts the signal and further communicates with the hardware management module 23 to compare whether there is a match between the driver program developed by the present invention in the current system. Of course, if the operating system of the expansion card (peripheral device) is different, the design method and the registration method can be flexibly changed. The hot-swap interface module 24 is a set of design interfaces to provide the Yuma that expands the universal peripheral driver module 21 in Kernel Mode. And the result designed by the hot-swap interface module 24 is a two-in-one and extensible resident program (e X tensi ο n Dem ο η) for 2 mobile private developers according to their New functions need to be developed to expand the capabilities of the universal peripheral driver module 2 丨. Therefore, the flexible driver architecture of the present invention is simplified through a general peripheral driver (GpDD) module 21, an application program interface (API) module 22, a hardware management module 23, and a hot-plug interface module 24. The complexity of driver development and the benefits of supporting multiple operating systems and multiple expansion interfaces simultaneously. Figure 3 shows the flow chart of utilizing the flexible driver structure of the present invention. When developing a new peripheral device, only the following steps are needed; first, week = device (for example, · for plugging in a pDA expansion) Card) to carry out the system and it takes 2 solutions to cut the weight, and cut the software and hardware required for the expansion card design ^ division of labor) (steps S301, S302), and then carry out circuit design and layout processing on the hardware part of the expansion card (Steps S3〇3, S3 04), and began to force the Zhang's Zhangjiaxian (CNS) A4 specifications (21〇2997 mm)-~~ ---- (Please read the precautions on the back before filling Each column on this page) Install ------, can -------- 1227407 V. Description of the invention (7) Learning the application program interface (API) of the operating system with the expansion card (step S305), Then began to write the driver and application of the expansion card (step S306). When using the extension, only the application program interface (API) part needs to be learned and 2 = the system driver development tool (bribery) is learned to shorten the production time. TO 彡 calculates the time required for development. As can be seen from the above description, the present invention uses the General Peripheral Driver (GPDD) module to package peripheral device services as a driver. The general peripheral driver module registers the peripheral devices with the system through the hardware management module. Peripheral driver modules can also use the hot-swappable two modules to design an expandable resident program to expand the capabilities of the universal peripheral driver module and make the design of the driver program more flexible. The present invention utilizes peripheral device access Application program interface provides driver developers to develop driver programs, and the developed results are able to access peripheral devices through the universal peripheral driver module, and can provide a consistent design interface to develop drivers, and It can support multiple operating systems, speed up the development of new products and reduce development costs, and support multiple expansion interfaces and allow developers to configure the resident program part of the driver. To sum up, regardless of the purpose, means and effect of the present invention, the present invention shows that it is different from the known technology, and it is a very practical invention. It should be noted that the above-mentioned embodiments are merely for convenience of explanation. The scope of the claimed rights of the present invention is not limited to the above-mentioned embodiments, and all technical ideas related to the present invention belong to the scope of the present invention. 10 This paper size applies to China National Standard (CNS) A4 (210X297 mm) ^ order. (Please read the precautions on the back before filling in the blocks on this page)

Claims (1)

1227407 A8 B8 C8 D8 六、申請專利範圍 :、、/ ·種彈性化驅動程式架構,用以開發一週邊裝置, Z週邊裝置係與_主機裝置電氣連接,該彈性化驅動程式 A構並配合—作業⑽,該作業系、統具有複數函式模組, 該彈性化驅動程式架構主要包括: ^ 用週邊驅動程式(General-Purpose Device Dnver ’ GPDD )模組,係分別與該複數函式模組相連 :、將至y 週邊裝置服務包裝為一驅動程式,俾供驅 動該週邊裝置; 一應用程式介面(API )模組,係提供一週邊裝置資 料工具函式集、一週邊裝置服務函式集、及一資源管理服 務函式集’並透過該複數函式模組與該通用週邊驅動程式 (GPDD)模組提供至少一應用程式以直接進行該週邊裝 置存取功能; 一硬體管理模組,係具有一對應於該週邊裝置的管理 機制,並透過該通用週邊驅動程式模組來管理該週邊裝 置;以及 一熱插拔介面(PlUg_In Interface)模組,係提供 一設計介面及一延伸空間,以供該通用週邊驅動程式模組 使用,其中,依據該熱插拔介面模組所設計之成果為一擴 充性常駐程式(Extension Daemon)物件,俾供擴展該 通用週邊驅動程式模組之能力。 2 ·如申請專利範園第丨項所述之彈性化驅動程式架 構,其中,該擴充性常駐程式物件係能選擇性加入該通用 11 本紙張尺度適用中國國家標準(CNS) A4規格(210X297公釐) (請先閲讀背面之注意事項再填寫本頁各攔) 裝 -----訂----- 線丨 1227407 A8 B8 C8 D8 六、申請專利範圍 — 週邊驅動程式模組,以使得該通用週邊驅動程式模組更具 有彈性。 3.如申請專利範圍第1項所述之彈性化驅動程式架 構,其具有一使用者模式(user mode )與一核心模式 (kernel mode ),該應用程式介面模組係位於該使用者 模式’該通用週邊驅動程式模組、該硬體管理模組、及該 熱插拔介面模組係位於該核心模式。 4 ·如申請專利範圍第1項所述之彈性化驅動程式架 構,其中,該週邊裝置係為一擴充卡。 5 ·如申請專利範圍第4項所述之彈性化驅動程式架 構,其中,該硬體管理模組係用以管理該擴充卡註冊資 訊,並協助該通用週邊驅動程式模組之註冊功能。 6 ·如申請專利範圍第1所述之彈性化驅動程式架構, 其中’該應用程式介面(A PI )模組用以設計該至少一週 邊裝置服務,該至少一週邊裝置服務係為存取週邊裝置相 關功能、存取系統資源、特定功能模組管理、及要求自動 組態。 7 ·如申請專利範圍第1項所述之彈性化驅動程式架 構,其中’該週邊裝置資料工具函式集用係以存取該週邊 裝置識別資料與暫存器資料。 8 ·如申請專利範圍第1項所述之彈性化驅動程式架 構’其中’該週邊裝置服務函式集係用以回報該週邊裝置 服務資訊、註冊資訊、及狀態資訊,並提供重置與物件遮 軍設定功能。 12 (請先閲讀背面之注意事項再填寫本頁各欄) 裝 -----訂----- 線丨 本紙張尺度適用中國國家標準(CNS) A4規格(210X297公釐) 1227407 A8 B8 C8 D8 K、申請專利範圍 9 ·如申請專利範圍第1項所述之彈性化驅動程式架 構,其中,該資源管理服務函式集係用以進行系統資源的 檢查與配置。 10· —種彈性化驅動程式之設計方法,用以開發一週 邊裝置,該週邊裝置係電氣連接一主機裝置,該主機裝置 係採用一嵌入式作業系統,該嵌入式作業系統具有複數複 數函式模組’該設計方法主要包括下述步驟: (A) 對一週邊裝置進行系統及需求解析,並對該週 邊裝置需要設計之軟體及硬體進行切割; (B) 對硬體部份進行電路設計及佈局處理; (C) 學習該嵌入式作業系統及其應用程式介面;以 及 (D) 寫該週邊裝置之驅動程式及其應用程式。 11·如申請專利範圍第1 〇項所述之設計方法,其 中,於步騾(D)中,係透過一應用程式介面(Αρι)模 組開發驅動程式,並透過一通用週邊驅動程式模組 (General-Purpose Device Driver,GPDD)將至少 一週邊裝置服務包裝為一驅動程式,以控制該週邊裝置。 12·如申請專利範園第11項所述之設計方法,其 中,m通用週邊驅動程式模組係分別與該複數函式模組相 連接,該應用程式介面模組係提供一週邊裝置資料工具函 式集、一週邊裝置服務函式集、及一資源管理服務函式 集以扼供至少一應用程式,俾供該通用週邊驅動程式模 組對該週邊裝置進行存取功能。 (請先閲讀背面之注意事項再填寫本頁各櫊) 裝 -----訂----- 線丨 13 1227407 A8 B8 C8 D8 述之设汁方法,其 ^、申請專利範圍 13·如申請專利範圍第1 〇項所 中,於步驟(D)中,該通用週邊驅動稃式模組係透過一 硬體管理模組來管理該週邊裝置,該硬體管理模組具有一 與該週邊裝置相對應的管理機制。 14.如申請專利範園第1 1項所述之設計方法,其 中,該通用週邊驅動程式模組藉由一熱插拔介面(Plugin Interface ) 模組 所提供 之一擴 充性常 駐程式 (Extension Daemon)物件達成擴展能力0 (請先閲讀背面之注意事項再填寫本頁各欄) 裝 14 -----訂----- 線丨 本紙張尺度適用中國國家標準(CNS) A4規格(210X297公釐)1227407 A8 B8 C8 D8 VI. Patent application scope: ,, / · A flexible driver program structure for developing a peripheral device, Z peripheral device is electrically connected to the host device, the flexible driver program A structure and cooperates- Operation: The operation system has plural function modules. The flexible driver architecture mainly includes: ^ General-Purpose Device Dnver 'GPDD module, which is separate from the plural function modules. Connected: Package the peripheral device service to a driver for driving the peripheral device; An application programming interface (API) module provides a peripheral device data tool function set and a peripheral device service function set And a resource management service function set 'and provide at least one application program through the plurality of function modules and the general peripheral driver (GPDD) module to directly access the peripheral device; a hardware management module , Has a management mechanism corresponding to the peripheral device, and manages the peripheral device through the universal peripheral driver module; and a hot plug interface (Pl Ug_In Interface) module, which provides a design interface and an extension space for the universal peripheral driver module. Among them, an extension daemon (Extension Daemon) is based on the design result of the hot-plug interface module. ) Object to expand the capabilities of the universal peripheral driver module. 2 · The flexible driver program structure described in Item 丨 of the patent application park, where the extensible resident program object can be optionally added to the universal 11 paper size applicable to the Chinese National Standard (CNS) A4 specification (210X297) (Please read the precautions on the back before filling in the blocks on this page) Installation ----- Order ----- Line 丨 1227407 A8 B8 C8 D8 VI. Patent Application Scope-Peripheral driver module, so that The universal peripheral driver module is more flexible. 3. The flexible driver program structure described in item 1 of the scope of the patent application, which has a user mode and a kernel mode, and the application program interface module is located in the user mode. The universal peripheral driver module, the hardware management module, and the hot-swap interface module are located in the core mode. 4 · The flexible driver structure described in item 1 of the scope of patent application, wherein the peripheral device is an expansion card. 5 · The flexible driver structure described in item 4 of the scope of patent application, wherein the hardware management module is used to manage the registration information of the expansion card and assist the registration function of the universal peripheral driver module. 6 · The flexible driver program structure described in the first patent application scope, wherein the application programming interface (A PI) module is used to design the at least one peripheral device service, and the at least one peripheral device service is to access the peripheral device. Device related functions, access to system resources, management of specific function modules, and automatic configuration requirements. 7 · The flexible driver program structure described in item 1 of the scope of the patent application, wherein ‘the peripheral device data tool function set is used to access the peripheral device identification data and register data. 8 · The flexible driver architecture described in item 1 of the scope of the patent application, where 'the peripheral device service function set is used to report the peripheral device service information, registration information, and status information, and provide reset and objects Cover army setting function. 12 (Please read the precautions on the back before filling out the columns on this page) Binding ----- Order ----- Thread 丨 This paper size applies to China National Standard (CNS) A4 (210X297 mm) 1227407 A8 B8 C8 D8 K, patent application scope 9 · The flexible driver program architecture described in item 1 of the patent application scope, wherein the resource management service function set is used to check and configure system resources. 10 · —A method for designing a flexible driver program for developing a peripheral device which is electrically connected to a host device. The host device adopts an embedded operating system. The embedded operating system has a plurality of functions. Module 'The design method mainly includes the following steps: (A) analyze the system and requirements of a peripheral device, and cut the software and hardware that need to be designed for the peripheral device; (B) circuit the hardware part Design and layout processing; (C) Learn the embedded operating system and its application program interface; and (D) Write the driver and application program for the peripheral device. 11. The design method described in item 10 of the scope of patent application, wherein in step (D), the driver is developed through an application program interface (Αρι) module, and a universal peripheral driver module is used. (General-Purpose Device Driver, GPDD) packages at least one peripheral device service as a driver to control the peripheral device. 12. The design method described in item 11 of the patent application park, wherein the m universal peripheral driver module is respectively connected to the plurality of function modules, and the application program interface module provides a peripheral device data tool A function set, a peripheral device service function set, and a resource management service function set to condense at least one application program, and for the universal peripheral driver module to access the peripheral device. (Please read the precautions on the back before filling in this page.) Installation ----- Order ----- Line 丨 13 1227407 A8 B8 C8 D8 The method of setting juice is described in ^, the scope of patent application13. Such as In item 10 of the scope of the patent application, in step (D), the universal peripheral driver module manages the peripheral device through a hardware management module. The hardware management module has a The corresponding management mechanism of the device. 14. The design method described in item 11 of the patent application park, wherein the universal peripheral driver module is an extension daemon provided by a plug-in interface module. ) Objects reach expansion capability 0 (Please read the notes on the back before filling in the columns on this page) Pack 14 ----- Order ----- Line 丨 This paper size applies to China National Standard (CNS) A4 specification (210X297 Mm)
TW91124726A 2002-10-24 2002-10-24 Flexible driver structure and design method thereof TWI227407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91124726A TWI227407B (en) 2002-10-24 2002-10-24 Flexible driver structure and design method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91124726A TWI227407B (en) 2002-10-24 2002-10-24 Flexible driver structure and design method thereof

Publications (1)

Publication Number Publication Date
TWI227407B true TWI227407B (en) 2005-02-01

Family

ID=35696361

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91124726A TWI227407B (en) 2002-10-24 2002-10-24 Flexible driver structure and design method thereof

Country Status (1)

Country Link
TW (1) TWI227407B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI391824B (en) * 2009-12-18 2013-04-01 Feeling Technology Corp Drive the connection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI391824B (en) * 2009-12-18 2013-04-01 Feeling Technology Corp Drive the connection system

Similar Documents

Publication Publication Date Title
CN101739283B (en) Computer and method for virtual system to directly access computer hardware
US5717903A (en) Method and appartus for emulating a peripheral device to allow device driver development before availability of the peripheral device
TW498213B (en) Method and chipset for supporting interrupts of system management mode in multiple-CPU system
TW515959B (en) Method for memory data access by system management interrupt and computer system thereof
CN103092810A (en) Processor with programmable virtual ports
CN103412834A (en) Single SOC chip and multi-working mode multiplexing method of single SOC chip
TW200525365A (en) Optimization of SMI handling and initialization
JP2023545818A (en) Chip system, virtual interrupt handling method and corresponding device
CN101788947A (en) Method for monitoring system bus, system bus monitor and system on chip
CN104021101A (en) USB interface system and implementation method based on LPC1768 platform
US6038632A (en) Interrupt control on SMM
US20020107678A1 (en) Virtual computer verification platform
EP2761483B1 (en) Protocol neutral fabric
CN100570587C (en) The access processing method of dummy machine system and Advanced Programmable Interrupt Controllers APICs thereof
US20140373006A1 (en) System And Method For Virtual Machine Management
CN101299189A (en) DOS method of one of self-startup and multiple operating systems
US20080104303A1 (en) Low latency event communication system and method
KR900002438B1 (en) Inter-processor connecting system
EP2325747A2 (en) Virtual platform for prototyping system-on-chip designs
TWI227407B (en) Flexible driver structure and design method thereof
US6757770B1 (en) Computer system supporting a universal serial bus (USB) interface and method for controlling a USB corresponding I/O device
CN100361104C (en) User-defined interrupt signal response processing method and system under interrupt share mechanism
Nikkel NVM express drives and digital forensics
CN108958837B (en) Method, system and medium for dynamically configuring ME firmware
US20160314086A1 (en) Secure digital host controller virtualization

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees