JPH0458351A - General-purpose device driver - Google Patents

General-purpose device driver

Info

Publication number
JPH0458351A
JPH0458351A JP17202690A JP17202690A JPH0458351A JP H0458351 A JPH0458351 A JP H0458351A JP 17202690 A JP17202690 A JP 17202690A JP 17202690 A JP17202690 A JP 17202690A JP H0458351 A JPH0458351 A JP H0458351A
Authority
JP
Japan
Prior art keywords
device driver
control processor
distributed control
processing
processor
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP17202690A
Other languages
Japanese (ja)
Inventor
Toshiaki Ando
寿朗 安藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP17202690A priority Critical patent/JPH0458351A/en
Publication of JPH0458351A publication Critical patent/JPH0458351A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily obtain a device driver by defining a part of a decentralized control processor that is not dependent on its type as an independent part in terms of the standard processing and building the proper processing into the control processor as a built-in subroutine. CONSTITUTION:A part of a decentralized processor 3 that is not dependent on its type is defined as an independent part in terms of the standard processing, and the proper processing is built into the processor 3 as the subroutines 5a - 8a. That is, the standard processing independent of the processor 3 is carried out and then a fact whether the routines 5a - 8a are registered or not. If so, a proper processing routine is called out. If not, the next processing is carried out. Thus a device driver is easily produced to the processor 3 of a different type.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、計算機に付随する分散制御プロセッサを駆動
する汎用デバイスドライバに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a general-purpose device driver that drives a distributed control processor attached to a computer.

(従来の技術) 従来の分散制御プロセッサを駆動するデバイスドライバ
の構造を第3図に示し、分散制御プロセッサ及びアプリ
ケーションとの関係を第4図に示す。10はO5(オペ
レーティングシステム)、16は分散制御プロセッサ(
デバイス)、17はアプリケーションである。
(Prior Art) FIG. 3 shows the structure of a device driver that drives a conventional distributed control processor, and FIG. 4 shows the relationship between the distributed control processor and an application. 10 is O5 (operating system), 16 is distributed control processor (
device), 17 is an application.

ここで1、イニシャライズ処理部11は、メモリへの常
駐化、作業バッファの確保、ハードウェアの初期化を行
う。ハードウェア要求処理部12は、アプリケーション
17の要求受付、正当性のチエツクを行う。ハードウェ
ア要求処理部13は、ハードウェアに対する要求(スタ
ートl10)を行う。割込み受付処理部14は、上記要
求に対する完了通知の受付を行う。完了処理部15は、
ステータスの生成、アプリケーション17への完了通知
を行う。このデバイスドライバは、分散制御プロセッサ
ごとに用意されている。
Here, 1. The initialization processing unit 11 makes the data resident in the memory, secures a work buffer, and initializes the hardware. The hardware request processing section 12 accepts requests from the application 17 and checks their validity. The hardware request processing unit 13 makes a request to hardware (start l10). The interrupt acceptance processing unit 14 accepts a completion notification for the above request. The completion processing unit 15
Generates a status and notifies the application 17 of completion. This device driver is prepared for each distributed control processor.

(発明が解決しようとする課題) 従来においては、デバイスである分散制御プロセッサご
とに処理内容が異なるため、分散制御プロセッサが変る
とそれに応じてO8全体の変更が必要であることから、
分散制御プロセッサの種類によへそれぞれデバイスドラ
イバを作成しなくてはならず、開発に工数かかかるとい
った問題があった。
(Problems to be Solved by the Invention) Conventionally, since the processing contents differ for each distributed control processor that is a device, when the distributed control processor changes, the entire O8 needs to be changed accordingly.
There was a problem in that a device driver had to be created for each type of distributed control processor, which required a lot of man-hours for development.

本発明は、このような従来の欠点を除去するためになさ
れたもので、種類の異なる分散制御プロセッサに対し、
簡単に開発作成することのできる汎用デバイスドライバ
を提供することを目的とする。
The present invention was made in order to eliminate such conventional drawbacks, and it is possible to
The purpose is to provide a general-purpose device driver that can be easily developed and created.

[発明の構成] (課題を解決するための手段) 上記従来の目的を達成する本発明の汎用デバイスドライ
バは、分散制御プロセッサを駆動するデバイスドライバ
において、前記分散制御プロセッサの種類に依存しない
部分を標準処理として独立させ、分散制御プロセッサの
種類に依存しない固有処理をサブルーチンとして組込ん
だことを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) A general-purpose device driver of the present invention that achieves the above-mentioned conventional object includes a device driver that drives a distributed control processor that includes a part that does not depend on the type of the distributed control processor. It is characterized by incorporating as a subroutine a unique process that is made independent as a standard process and does not depend on the type of distributed control processor.

(作 用) 本発明では、まず分散制御プロセッサに依存しない標準
処理を実行し、標準処理の実行終了後に、組込みサブル
ーチンが登録されてるかどうかを調べる。登録されてい
る場合は、その固有処理ルーチンを呼出す。また、登録
されていない場合は、次の処理へ移行する。種類の異な
る分散制御プロセッサに対し、簡単にそのデバイスドラ
イバを作成することができる。
(Operation) In the present invention, first, standard processing that does not depend on the distributed control processor is executed, and after the execution of the standard processing is completed, it is checked whether a built-in subroutine has been registered. If it is registered, its specific processing routine is called. If it is not registered, the process moves to the next step. Device drivers can be easily created for different types of distributed control processors.

(実施例) 以下、本発明の実施例について図面を参照して詳細に説
明する。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例による汎用デバイスドライバ
の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a general-purpose device driver according to an embodiment of the present invention.

図において、1はデバイスの初期化やドライバへの要求
を行うアプリケーション、2はO5(オペレーティング
システム)、3は例えば、ディスク制御装置2通信制御
装置等の分散制御プロセッサ(デバイス)である。本実
施例のデバイスドライバは、メモリへの常駐化、作業バ
ッファの確保及びハードウェアの初期化を行うイニシャ
ライズ処理部4と、アプリケーション1の要求受付、正
当性のチエツクを行うハードウェア要求処理部5と、ハ
ードウェアに対する要求(スタ、−ト110)を行うハ
ードウェア要求処理部6と、上記要求に対する完了通知
の受付を行う割込み受付処理部7と、ステータスの生成
、アプリケーション1への完了通知を行う完了処理部8
を備える。
In the figure, 1 is an application that initializes devices and makes requests to drivers, 2 is an O5 (operating system), and 3 is a distributed control processor (device) such as a disk controller 2 and a communication controller. The device driver of this embodiment includes an initialization processing section 4 that makes the device resident in memory, secures a work buffer, and initializes the hardware, and a hardware request processing section 5 that receives requests from the application 1 and checks validity. , a hardware request processing unit 6 that makes a request to hardware (start 110), an interrupt reception processing unit 7 that accepts a completion notification for the above request, and a status generation and completion notification to the application 1. Completion processing unit 8
Equipped with

さらに、本実施例のデバイスドライバの要求受付処理部
5、ハードウェア要求処理部6、割込み受付処理部7及
び完了処理部8については、それぞれ分散制御プロセッ
サ3の種類に依存しない部分を標準処理として独立させ
、分散制御プロセッサ3に固有の処理は組込みサブルー
チン5a、6a、7a、8aとして組込んでいる。また
、各処理部で必要な固有処理を実行するサブルーチン5
g、6a、7a、8aのアドレスを格納した固有処理ル
ーチンベクタテーブル9を有している。
Furthermore, regarding the request reception processing section 5, hardware request processing section 6, interrupt reception processing section 7, and completion processing section 8 of the device driver of this embodiment, the parts that do not depend on the type of distributed control processor 3 are set as standard processing. Processes unique to the distributed control processor 3 are incorporated as built-in subroutines 5a, 6a, 7a, and 8a. In addition, subroutine 5 executes specific processing required in each processing unit.
It has a specific processing routine vector table 9 that stores addresses of g, 6a, 7a, and 8a.

次に、第2図のフローチャートを参照してデバイスドラ
イバの処理について説明する。
Next, the processing of the device driver will be explained with reference to the flowchart shown in FIG.

例として、要求受付処理の場合を説明する。まず、分散
制御プロセッサ3に依存しない標準処理を実行する(ス
テップSl)。標準処理の実行終了後に、固有処理ルー
チンベクタテーブル9を参照して、組込みサブルーチン
が登録されてるかどうかを調べる(ステップS2)。登
録されている場合は、その固有処理ルーチンを呼出す(
ステップS3)。また、登録されていない場合は、次の
処理(ハードウェア要求処理)へ移行する。
As an example, the case of request reception processing will be explained. First, standard processing that does not depend on the distributed control processor 3 is executed (step Sl). After the standard processing has been executed, the specific processing routine vector table 9 is referred to to check whether any built-in subroutines are registered (step S2). If it is registered, call its specific processing routine (
Step S3). If it is not registered, the process moves to the next process (hardware request process).

以上のように、分散制御プロセッサ3の種類に依存しな
い部分を標準処理として独立させ、分散制御プロセッサ
3に固有の処理を組込みサブルーチン5a、6a、7a
、8aとして組込んだことから、種類の異なる分散制御
プロセッサに対し、簡単にそのデバイスドライバを作成
することができる。
As described above, parts that do not depend on the type of distributed control processor 3 are made independent as standard processes, and processes specific to the distributed control processor 3 are incorporated into subroutines 5a, 6a, and 7a.
, 8a, it is possible to easily create device drivers for different types of distributed control processors.

[発明の効果] 以上説明したように本発明の汎用デバイスドライバによ
れば、分散制御プロセッサの種類に依存しない部分を標
準処理として独立させ、分散制御プロセッサに固有の処
理を組込みサブルーチンとして組込んだことから、従来
分散制御プロセッサ開発毎に作成していたデバイスドラ
イバの開発工数を極端に削減できる。
[Effects of the Invention] As explained above, according to the general-purpose device driver of the present invention, parts that do not depend on the type of distributed control processor are made independent as standard processing, and processing specific to the distributed control processor is incorporated as a built-in subroutine. Therefore, the number of man-hours required to develop a device driver, which has conventionally been created every time a distributed control processor is developed, can be drastically reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に係る汎用デバイスドライバ
の構成を示すブロック図、第2図は本実施例の汎用デバ
イスドライバによる処理動作を説明するフローチャート
、第3図は従来のデバイスデバイスの構造を示すブロッ
ク図、第4図はそのデバイスドライバとアプリケーショ
ン及び分散制御プロセッサ相互の構成を示すブロック図
である。 1・・・アプリケーション、2・・・0813・・・分
散制御プロセッサ、4・・・イニシャライズ処理部、5
・・・要求受付処理部、6・・・ハードウェア要求処理
部、7・・・割込み受付処理部、8・・・完了処理部、
9・・・固有処理ルーチンベクタテーブル、5a、6a
、7a、8a・・・組込みサブルーチン。 出願人     株式会社 東芝
FIG. 1 is a block diagram showing the configuration of a general-purpose device driver according to an embodiment of the present invention, FIG. 2 is a flowchart explaining processing operations by the general-purpose device driver of this embodiment, and FIG. 3 is a block diagram of a conventional device driver. FIG. 4 is a block diagram showing the mutual structure of the device driver, application, and distributed control processor. DESCRIPTION OF SYMBOLS 1...Application, 2...0813...Distributed control processor, 4...Initialization processing unit, 5
. . . request reception processing unit, 6 . . . hardware request processing unit, 7 . . . interrupt reception processing unit, 8 . . . completion processing unit.
9... Specific processing routine vector table, 5a, 6a
, 7a, 8a... built-in subroutines. Applicant: Toshiba Corporation

Claims (1)

【特許請求の範囲】 分散制御プロセッサを駆動するデバイスドライバにおい
て、 前記分散制御プロセッサの種類に依存しない部分を標準
処理として独立させ、分散制御プロセッサの種類に依存
しない固有処理をサブルーチンとして組込んだことを特
徴とする汎用デバイスドライバ。
[Scope of Claims] In a device driver that drives a distributed control processor, a part that does not depend on the type of distributed control processor is made independent as a standard process, and a specific process that does not depend on the type of distributed control processor is incorporated as a subroutine. A general-purpose device driver featuring:
JP17202690A 1990-06-27 1990-06-27 General-purpose device driver Pending JPH0458351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17202690A JPH0458351A (en) 1990-06-27 1990-06-27 General-purpose device driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17202690A JPH0458351A (en) 1990-06-27 1990-06-27 General-purpose device driver

Publications (1)

Publication Number Publication Date
JPH0458351A true JPH0458351A (en) 1992-02-25

Family

ID=15934148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17202690A Pending JPH0458351A (en) 1990-06-27 1990-06-27 General-purpose device driver

Country Status (1)

Country Link
JP (1) JPH0458351A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5915125A (en) * 1996-09-13 1999-06-22 Nec Corporation Device driver, control method for device drivers, and computer-readable medium for storing control program for device drivers
JP2003523656A (en) * 1999-12-30 2003-08-05 クゥアルコム・インコーポレイテッド Virtual device architecture for mobile phones

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5915125A (en) * 1996-09-13 1999-06-22 Nec Corporation Device driver, control method for device drivers, and computer-readable medium for storing control program for device drivers
JP2003523656A (en) * 1999-12-30 2003-08-05 クゥアルコム・インコーポレイテッド Virtual device architecture for mobile phones
JP4938192B2 (en) * 1999-12-30 2012-05-23 クゥアルコム・インコーポレイテッド Virtual device architecture for mobile phones

Similar Documents

Publication Publication Date Title
EP0192944B1 (en) Data processing system with a main processor and a co-processor sharing the same resources
JPH0458351A (en) General-purpose device driver
JPH0496167A (en) Interruption system for multi-processor system
JPH0158521B2 (en)
JP2507789B2 (en) Logical simulation processing method of virtual machine
JPS6338729B2 (en)
JPH02176832A (en) Microcomputer
JP3072772B2 (en) Compiling device
JPH03210651A (en) Reinstruction of interruption
JPH03182904A (en) Plant controller
JPH08272727A (en) System event processing mechanism
JPH08328883A (en) System program calling method
JPH03100853A (en) Inter-processor communication system
JPH0795296B2 (en) Information sharing processing method in data processing system
JPS62279431A (en) Input/output emulator
JPH0298745A (en) Inter-process communication processing system
JPH0133865B2 (en)
JPS633358A (en) Multiprocessor
JPH02211501A (en) Process input/output unifying system
JPH11167491A (en) General purpose card for personal computer and personal computer system mounting the card
Woods et al. 11 Patent Number: 45 Date of Patent
JP2001154861A (en) System and method for asynchronously ending process
JPH01185733A (en) Input/output emulation system
JPS62133533A (en) Switching system for os in electronic computer system
JPH05120203A (en) Dma control system