JPH1027149A - Information processor and its device driver control method - Google Patents

Information processor and its device driver control method

Info

Publication number
JPH1027149A
JPH1027149A JP18347396A JP18347396A JPH1027149A JP H1027149 A JPH1027149 A JP H1027149A JP 18347396 A JP18347396 A JP 18347396A JP 18347396 A JP18347396 A JP 18347396A JP H1027149 A JPH1027149 A JP H1027149A
Authority
JP
Japan
Prior art keywords
device driver
driver
dispatch
registration information
processing apparatus
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
JP18347396A
Other languages
Japanese (ja)
Inventor
Kenji Watanabe
研二 渡辺
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP18347396A priority Critical patent/JPH1027149A/en
Publication of JPH1027149A publication Critical patent/JPH1027149A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate the need to change a conventional device driver when a device is added by making a dispatch device driver loads more than one device drivers according to device driver registration information and passing control to the corresponding device driver according to the device number. SOLUTION: An application program AP issues an application interface(API) to an operating system OS according to user's specification. The operating system OS receives the APT and passes the control to the dispatch device driver DDD. The dispatch device driver DDD loads device drivers DDA-DDX allocated to respective device numbers at system start time according to the device driver registration information, and distributes process requests to a device number, specified by an application, to the respective device drivers DDA DDX at the time of execution.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デバイスドライバ
制御装置及びその制御方法に関し、特にパーソナルコン
ピュータなどの情報処理装置におけるデバイスドライバ
の制御装置とその制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device driver control device and a control method thereof, and more particularly to a device driver control device and a control method thereof in an information processing device such as a personal computer.

【0002】[0002]

【従来の技術】パーソナルコンピュータには、キーボー
ド、マウス、フロッピーディスク装置、ディスプレイ、
プリンタ等の各種入出力用デバイスが備えられ、CPU
とメモリ(ROM及びRAM)等からなるデータ処理部
が、オペレーションシステムの制御によって種々のアプ
リケーション・プログラムソフトを実行して稼動し、画
像処理、文書作成編集処理、データ検索処理等の各種デ
ータ処理を行うが、その際、上記オペレーションシステ
ムには、上記各種入出力用デバイスをそれぞれ制御する
専用のデバイスドライバがデバイスの数だけ設けられて
いる。
2. Description of the Related Art Personal computers include a keyboard, a mouse, a floppy disk drive, a display,
Various input / output devices such as a printer are provided, and a CPU
And a data processing unit including a memory (ROM and RAM) executes various application programs under the control of the operation system and operates to perform various data processing such as image processing, document creation / editing processing, and data search processing. At this time, the operation system is provided with dedicated device drivers for controlling the various input / output devices as many as the number of devices.

【0003】従来のデバイスドライバ制御方法は特開平
3−68052号公報に記載されているように、異なる
特性のパーソナルコンピュータ上で同じアプリケーショ
ンプログラムを使用できるようにしたり、機能が若干異
なるようなデバイスを使用したりする場合に、他機種の
アプリケーションからの処理要求を元のアプリケーショ
ンの処理要求に読み換えるように変換して同じデバイス
ドライバを起動していた。図10に、従来例のパーソナ
ルコンピュータのブロック構成図を示して説明する。1
はデータ処理部であり、中央処理装置(以下、CPUと
称する)2と、メインメモリ3に格納された基本動作プ
ログラムであるオペレーションシステム(OS)4と、
画像処理、文書作成編集処理、データ検索処理等の各種
機能を実行するためのアプリケーション(プログラム)
5とによって構成されている。メインメモリ3には、こ
のパーソナルコンピュータが備えている各種の入出力デ
バイス8毎に、それを制御するためのプログラムである
汎用のデバイスドライバ6とその処理要求を前処理する
特殊ドライバ7とを格納している。
A conventional device driver control method, as described in Japanese Patent Application Laid-Open No. 3-68052, makes it possible to use the same application program on personal computers having different characteristics or to use a device having a slightly different function. When using the same device driver, the processing request from the application of another model is converted to be read as the processing request of the original application. FIG. 10 shows a block diagram of a conventional personal computer. 1
Denotes a data processing unit, a central processing unit (hereinafter, referred to as a CPU) 2, an operation system (OS) 4 which is a basic operation program stored in a main memory 3,
Application (program) for executing various functions such as image processing, document creation / editing processing, and data search processing
5. The main memory 3 stores, for each of the various input / output devices 8 included in the personal computer, a general-purpose device driver 6 that is a program for controlling the input / output devices 8 and a special driver 7 that pre-processes the processing request. doing.

【0004】入出力デバイス8としては、例えば入力デ
バイスであるキーボードやマウス、出力デバイスである
ディスプレイやプリンタ、入出力兼用デバイスであるデ
ィスクドライブ装置などがある。
The input / output device 8 includes, for example, a keyboard and a mouse as input devices, a display and a printer as output devices, and a disk drive as an input / output device.

【0005】本例では、オペレーションシステム4によ
って動作するデータ処理部1のCPU2が、ハードウェ
アによって発生される割り込み及びアプリケーション5
によって発生される割り込みによる各入出力用デバイス
8の処理要求を、それぞれ特殊ドライバ7へ出力し、そ
れによって特殊ドライバ7がその処理要求に対する前処
理によって自己でできる処理を実行すると共に、所要の
デバイスドライバ6を起動して、入出力用デバイス8に
対する処理、すなわちデータの入力あるいは出力を実行
する。メインメモリ3内には、図11のメモリマップに
示すように、その最上位アドレスに割り込みベクタテー
ブルと呼ばれる割り込みの番号に対応した分岐先アドレ
スを格納した領域がある。さらに、OS領域、多数のデ
バイスドライバ、コマンドインタプリタ、アプリケーシ
ョンの各領域とフリーエリアがあり、そこに特殊ドライ
バの格納領域を設けている。
[0005] In this example, the CPU 2 of the data processing unit 1 operated by the operation system 4 controls the interrupt generated by the hardware and the application 5
The processing request of each input / output device 8 due to the interrupt generated by the special driver 7 is output to the special driver 7, whereby the special driver 7 executes processing that can be performed by preprocessing for the processing request, The driver 6 is activated to execute processing for the input / output device 8, that is, input or output of data. As shown in the memory map of FIG. 11, the main memory 3 has an area in which a branch destination address corresponding to an interrupt number called an interrupt vector table is stored at its highest address. Furthermore, there are an OS area, a number of device drivers, command interpreters, application areas, and a free area, in which a special driver storage area is provided.

【0006】割り込みベクタテーブルは図12に示すよ
うに、割り込み番号NO.0から順に、それぞれ分岐先
アドレスをオフセット(上位アドレス)とセグメント
(下位アドレス)で格納している。各アドレスは4バイ
トで構成され、64個の割り込みをサポートする。図1
0に示したCPU2は、ハードウェアから発生する割り
込み(例えば図示しないタイマから数ms毎に定期的に
発生する)及びアプリケーション5にソフトウエアで書
かれた割り込み命令(INT XX)により、メインメモリ3
の割り込みベクタテーブルに書かれた当該割り込み番号
のアドレスへジャンプする。この割り込みがデバイスド
ライバ6への処理要求であり、そのアドレス(オフセッ
トとセグメント)がシステム常駐のデバイスドライバ6
の位置(入口)を指している。
[0006] As shown in FIG. The branch destination addresses are stored as offsets (upper addresses) and segments (lower addresses) in order from 0. Each address is composed of 4 bytes and supports 64 interrupts. FIG.
The CPU 2 shown in FIG. 0 receives an interrupt generated from hardware (for example, periodically generated every several ms from a timer (not shown)) and an interrupt instruction (INT XX) written in software to the application 5.
Jump to the address of the corresponding interrupt number written in the interrupt vector table of FIG. This interrupt is a processing request to the device driver 6, and its address (offset and segment) is stored in the system-resident device driver 6.
Point (entrance).

【0007】すなわち、各種入出力用デバイスとデータ
処理部とを備え、そのデータ処理部がアプリケーション
・プログラムによって入出力用デバイスをそれぞれ汎用
のデバイスドライバを介して制御し、入力用デバイスか
ら入力したデータを処理して出力用デバイスに出力する
パーソナルコンピュータにおいて、上記データ処理部と
各デバイスドライバとの間に、それぞれ前記データ処理
部からの処理要求を前処理する特殊ドライバを設けたも
のである。こうして、データ処理部が入出力用デバイス
を制御する処理要求を発すると、まず特殊ドライバに割
り込みをかけ、この特殊ドライバが前処理によって自己
でできる処理を実行すると共に、所要のデバイスドライ
バを起動して入出力デバイスに対する処理を実行させ
る。
That is, the system includes various input / output devices and a data processing unit. The data processing unit controls each of the input / output devices via a general-purpose device driver by an application program, and outputs data input from the input device. And a special driver for pre-processing a processing request from the data processing unit between the data processing unit and each device driver. When the data processing unit issues a processing request for controlling an input / output device in this way, the special driver first interrupts the special driver, executes the processing that can be performed by the preprocessing itself, and starts a required device driver. To execute the processing for the input / output device.

【0008】したがって、他機種のアプリケーション・
プログラムの利用や機能の付加等を行なう際には、この
特殊ドライバのみを追加あるいは変更すればよい。
Therefore, other types of applications
When using a program, adding functions, or the like, only this special driver needs to be added or changed.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、第1の
問題点は、従来のデバイスドライバ制御方法では、特殊
ドライバの追加、変更が必要であるということである。
その理由は、デバイスドライバを変更する代わりに処理
要求を読み換えるように変換する手段が必要なためであ
る。
However, the first problem is that the conventional device driver control method requires addition or change of a special driver.
The reason is that a means for converting the processing request so as to be read instead of changing the device driver is required.

【0010】[発明の目的]本発明の目的は、デバイス
ドライバを変更せずに、デバイスドライバ登録情報を変
更することにより、デバイスの追加を容易に行うための
デバイスドライバ制御方法及びこの制御方法を用いた情
報処理装置を提供することである。
[Object of the Invention] An object of the present invention is to provide a device driver control method for easily adding a device by changing device driver registration information without changing a device driver, and a control method for the device driver. An object of the present invention is to provide an information processing apparatus used.

【0011】[0011]

【課題を解決するための手段】本発明は、上記目的を達
成するために、デバイスを制御するデバイスドライバ
と、システム起動時に複数のデバイスドライバをロード
し、デバイス番号により各デバイスドライバへ処理を振
り分けるディスパッチ・デバイスドライバとデバイス番
号とデバイスドライバの関係を記述したデバイスドライ
バ登録情報とデバイス番号選択手段とを有することを特
徴とする。
In order to achieve the above object, the present invention loads a device driver for controlling a device and a plurality of device drivers at the time of system startup, and distributes processing to each device driver according to a device number. It is characterized by having device driver registration information describing a relationship between a dispatch device driver, a device number and a device driver, and device number selection means.

【0012】また、本発明によるデバイスドライバ制御
方法は、デバイスを制御するデバイスドライバと、シス
テム起動時に複数の前記デバイスドライバをロードし、
前記デバイスドライバのデバイス番号により前記各デバ
イスドライバへ処理を振り分けるディスパッチデバイス
ドライバと、前記デバイス番号と前記デバイスドライバ
の関係を記述したデバイスドライバ登録情報と、前記デ
バイスドライバ登録情報に従って前記デバイスドライバ
を選択するデバイス番号選択手段と、を備えたことを特
徴とする。
Also, a device driver control method according to the present invention includes a device driver for controlling a device and a plurality of the device drivers when a system is started.
A dispatch device driver that distributes processing to each device driver according to the device number of the device driver, device driver registration information describing a relationship between the device number and the device driver, and the device driver is selected according to the device driver registration information. Device number selecting means.

【0013】さらに、本発明による情報処理装置は、複
数のデバイスドライバに接続された複数のデバイスを制
御する情報処理装置において、ユーザの指定に従って、
オペレーティングシステムに対してアプリケーションイ
ンタフェイス(API)を発行するアプリケーションプ
ログラムと、前記APIを受け取り、ディスパッチデバ
イスドライバに制御を渡す前記オペレーティングシステ
ムと、前記デバイスドライバに制御を振り分ける前記デ
ィスパッチデバイスドライバと、デバイスを制御するそ
れぞれ対応するデバイスドライとを備え、前記ディスパ
ッチデバイスドライバがシステムの起動時に前記デバイ
スの番号によって前記デバイスドライバに処理を振り分
けることを特徴とする。また、この情報処理装置におい
て、システムを統括するCPUは、前記ディスパッチデ
バイスドライバをメモリ上にロードし、前記ロードされ
たディスパッチデバイスドライバは、デバイスドライバ
登録情報を参照してデバイス番号に対応したデバイスド
ライバをメモリ上にロードすることを特徴とする。
Further, an information processing apparatus according to the present invention is an information processing apparatus for controlling a plurality of devices connected to a plurality of device drivers, according to a user's specification.
An application program that issues an application interface (API) to an operating system; the operating system that receives the API and passes control to a dispatch device driver; the dispatch device driver that distributes control to the device driver; And a corresponding device driver to be controlled, wherein the dispatch device driver distributes processing to the device driver according to the number of the device at the time of system startup. Further, in this information processing apparatus, the CPU controlling the system loads the dispatch device driver onto the memory, and the loaded dispatch device driver refers to the device driver registration information, and registers the device driver corresponding to the device number. Is loaded on a memory.

【0014】[作用]ディスパッチデバイスドライバが
デバイスドライバ登録情報により複数のデバイスドライ
バをロードし、デバイス番号によって対応するデバイス
ドライバに制御を渡すために、デバイスを追加した場
合、従来のデバイスドライバを変更する必要がない。
[Operation] When a dispatch device driver loads a plurality of device drivers based on device driver registration information and adds a device to transfer control to a corresponding device driver by a device number, the conventional device driver is changed. No need.

【0015】[0015]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

[第1実施形態]本発明による第1実施形態の物理的構
成は、図10に示した従来例とほぼ同様であるので、そ
の説明は省略する。つぎに、図1を参照して第1実施形
態の動作を説明する。図1は本発明の一実施形態のソフ
トウエア的なブロック図である。図1を参照すると本実
施形態は、アプリケーションプログラムAP、オペレー
ティングシステムOS、ディスパッチデバイスドライバ
DDD、デバイスドライバDDA、DDB、DDX、デ
バイスDA、DB、DXから構成されている。また、デ
バイスDA、DB、DX以外は、全てプログラムソフト
で設定できる。これらのプログラムに従って、主制御系
を営む不図示のCPUはメインプログラムに従って、起
動時から処理が終了するまで、システム全体を種々制御
する。
[First Embodiment] The physical configuration of a first embodiment according to the present invention is almost the same as that of the conventional example shown in FIG. 10, and a description thereof will be omitted. Next, the operation of the first embodiment will be described with reference to FIG. FIG. 1 is a software block diagram of an embodiment of the present invention. Referring to FIG. 1, this embodiment includes an application program AP, an operating system OS, a dispatch device driver DDD, device drivers DDA, DDB, DDX, devices DA, DB, and DX. Except for the devices DA, DB, and DX, all can be set by program software. In accordance with these programs, a CPU (not shown) operating a main control system variously controls the entire system from the time of activation to the end of processing in accordance with the main program.

【0016】アプリケーションプログラムAPは、ユー
ザの指定に従って、オペレーティングシステムOSに対
してアプリケーションインタフェイス(API)を発行
する。オペレーティングシステムOSは、APIを受け
取り、ディスパッチデバイスドライバDDDに制御を渡
す。ディスパッチデバイスドライバDDDは、いわば分
配ソフトともいわれ、制御をデバイスドライバDA、D
B、DXに制御を振り分ける。デバイスドライDDA、
DDB、DDXはそれぞれ対応するデバイスDA、D
B、DXを制御する。
The application program AP issues an application interface (API) to the operating system OS according to the user's specification. The operating system OS receives the API and passes control to the dispatch device driver DDD. The dispatch device driver DDD is also called distribution software, and controls the device drivers DA and D.
Distribute control to B and DX. Device dry DDA,
DDB and DDX are corresponding devices DA and D, respectively.
B and DX are controlled.

【0017】次に、ディスパッチデバイスドライバDD
Dの初期化処理を図2のフローチャートによって説明す
る。システム起動時にシステムは、特にシステムの制御
系を統括するCPUは、ディスパッチデバイスドライバ
DDDをメモリ(RAMやキャッシュメモリ等)上にロ
ードし(S1)、ロードされたディスパッチデバイスド
ライバDDDは、図4のデバイスドライバ登録情報を参
照して、デバイス番号に対応したデバイスドライバDD
A,DDB,DDXをメモリ上にロードする(S2)。
デバイスドライバ登録情報の書式は図4に示すように、
左辺にデバイスDA,DB,DXのデバイス番号を記述
し、右辺にデバイスドライバ名を記述する。
Next, the dispatch device driver DD
The initialization processing of D will be described with reference to the flowchart of FIG. At the time of system startup, the system, particularly the CPU that controls the control system of the system, loads the dispatch device driver DDD on a memory (RAM, cache memory, or the like) (S1). Device driver DD corresponding to the device number by referring to the device driver registration information
A, DDB, and DDX are loaded on the memory (S2).
The format of the device driver registration information is as shown in FIG.
The device numbers of the devices DA, DB, and DX are described on the left side, and the device driver name is described on the right side.

【0018】次に、ディスパッチデバイスドライバDD
DがデバイスドライバDDA,DDB,DDXのデバイ
スドライバ番号を参照してデバイス番号に対応したデバ
イスドライバDDA,DDB,DDXをロードする。よ
り詳しくは、デバイス利用時のディスパッチデバイスド
ライバDDDの処理を図3のフローチャートによって説
明する。
Next, the dispatch device driver DD
D loads the device drivers DDA, DDB, and DDX corresponding to the device numbers with reference to the device driver numbers of the device drivers DDA, DDB, and DDX. More specifically, the process of the dispatch device driver DDD when using the device will be described with reference to the flowchart of FIG.

【0019】ユーザは図5のデバイス選択画面で使用す
るデバイス番号を選択する(S3)。アプリケーション
プログラムAPは、デバイス番号と共に、APIを発行
する(S4)。ディスパッチデバイスドライバDDDは
デバイス番号を判断し(S5)、デバイス番号が1なら
ば(S6)、デバイスドライバDDAに制御を渡す(S
7)。そしてデバイスデバイスDDAはデバイスDAを
制御する(S8)。同様に、デバイス番号が2ならば
(S9)、デバイスドライバDDBに制御を渡し(S1
0)、デバイスドライバDDBはデバイスDBを制御す
る(S11)。以後、同様に順次デバイス番号に従って
そのデバイスを制御する。その後、デバイス番号がNな
らば(S12)、デバイスドライバDDXに制御を渡し
(S13)、デバイスドライバDDXはデバイスDXを
制御する(S14)。また、デバイス番号がNでないな
らば(S12)、エラー処理を行い(S15)、例えば
出力装置のディスプレイにその旨を表示する。
The user selects a device number to be used on the device selection screen of FIG. 5 (S3). The application program AP issues an API together with the device number (S4). The dispatch device driver DDD determines the device number (S5), and if the device number is 1 (S6), passes control to the device driver DDA (S5).
7). Then, the device DDA controls the device DA (S8). Similarly, if the device number is 2 (S9), control is passed to the device driver DDB (S1).
0), the device driver DDB controls the device DB (S11). Thereafter, the devices are similarly controlled sequentially according to the device numbers. Thereafter, if the device number is N (S12), control is passed to the device driver DDX (S13), and the device driver DDX controls the device DX (S14). If the device number is not N (S12), error processing is performed (S15), and the fact is displayed on the display of the output device, for example.

【0020】[第2実施形態]次に、デバイスDYを追
加した場合について説明する。図6はデバイスDYを追
加した場合のブロック図である。デバイスDYを動作さ
せるデバイスデバイスをDDYとする。図7はデバイス
ドライバDDYをデバイス番号N+1に対応させるため
のデバイスドライバ登録情報である。デバイスDYを使
用する場合は、図8のデバイス選択画面でデバイス番号
N+1を選択することにより、ディスパッチデバイスド
ライバDDDがデバイスドライバDDYに制御を渡し、
デバイスドライバDDYがデバイスDYを制御する。
[Second Embodiment] Next, a case where a device DY is added will be described. FIG. 6 is a block diagram when a device DY is added. The device that operates the device DY is DDY. FIG. 7 shows device driver registration information for associating the device driver DDY with the device number N + 1. When the device DY is used, the dispatch device driver DDD transfers control to the device driver DDY by selecting the device number N + 1 on the device selection screen in FIG.
The device driver DDY controls the device DY.

【0021】本実施形態によるデバイス利用時のディス
パッチデバイスドライバDDDの処理については、図3
のフローチャートに示したものに、デバイス番号がN+
1であるのかどうかを判断し、デバイス番号がN+1な
らば、デバイスドライバDDYに制御を渡し、デバイス
ドライバDDYはデバイスDYを制御する手順を加え、
動作的に、ほぼ図3と同様に移行してゆく。
The processing of the dispatch device driver DDD at the time of using the device according to the present embodiment will be described with reference to FIG.
The device number is N +
1 is determined, and if the device number is N + 1, control is passed to the device driver DDY, and the device driver DDY adds a procedure for controlling the device DY.
Operationally, the transition is substantially similar to that of FIG.

【0022】次に、デバイス番号を変更する場合につい
て説明する。図9はデバイスDYをデバイス番号1、デ
バイスDXをデバイス番号2、デバイスDBをデバイス
番号N、デバイスDAをデバイス番号N+1に割り当て
る場合のデバイスドライバ登録情報である。デバイスD
Yを使用する場合には図8のデバイス選択画面でデバイ
ス番号1を選択することにより、ディスパッチデバイス
ドライバDDDがデバイスドライバDDYに制御を渡
し、デバイスドライバDDYがデバイスDYを制御す
る。同様に、デバイスDXを使用する場合には図8のデ
バイス選択画面でデバイス番号2を選択することによ
り、ディスパッチデバイスドライバDDDがデバイスド
ライバDDXに制御を渡し、デバイスドライバDDXが
デバイスDXを制御する。
Next, a case where the device number is changed will be described. FIG. 9 shows device driver registration information when the device DY is assigned to the device number 1, the device DX is assigned to the device number 2, the device DB is assigned to the device number N, and the device DA is assigned to the device number N + 1. Device D
When Y is used, the dispatch device driver DDD transfers control to the device driver DDY by selecting the device number 1 on the device selection screen in FIG. 8, and the device driver DDY controls the device DY. Similarly, when the device DX is used, by selecting the device number 2 on the device selection screen in FIG. 8, the dispatch device driver DDD transfers control to the device driver DDX, and the device driver DDX controls the device DX.

【0023】本実施形態では、ディスパッチデバイスド
ライバDDDがデバイス選択画面によりデバイスドライ
バを選択することで、デバイスを追加したり、変更する
ことが容易にできる。
In this embodiment, a device can be easily added or changed by the dispatch device driver DDD selecting a device driver on the device selection screen.

【0024】なお、本デバイスはデバイスドライバとは
対の関係で、図9に示したデバイスとデバイスドライバ
とを変更する場合も、同一種類の関係の必要がある。例
えば、デバイスがRS232C−Aであるならば、追加
するデバイスはRS232C−Bとなる。また、RS2
32C−Aしか持たないコンピュータにRS232C−
Bを追加するとき、ディスパッチデバイスドライバDD
Dをデバイスとデバイスドライバの間において、RS2
32C−A用のデバイスドライバにRS232C−Bを
制御する処理を入れるのではなく、もともとあるRS2
32C−B専用のデバイスドライバをそのまま使えるよ
うにするために、本ディスパッチデバイスドライバDD
Dが各デバイスドライバに処理を振り分けることができ
る。このようにできるのは、RS232Cというハード
ウエアを操作するためのAPIがオペレーティングシス
テムOSで統一されているからである。別個のハードウ
エアを追加する場合は、そのハードウエアを操作するた
めのAPIが異なるため、別個のディスパッチデバイス
ドライバDDDが必要になる。
Note that the present device has a paired relationship with the device driver, and the same type of relationship is required when changing the device and the device driver shown in FIG. For example, if the device is RS232C-A, the device to be added is RS232C-B. Also, RS2
RS232C- on a computer with only 32C-A
B, the dispatch device driver DD
D between the device and the device driver, RS2
Instead of putting the process for controlling the RS232C-B into the device driver for the 32CA, the original RS2
In order to use the device driver dedicated to 32C-B as it is, the dispatch device driver DD
D can distribute the processing to each device driver. This can be done because the API for operating the hardware called RS232C is standardized by the operating system OS. When separate hardware is added, a separate dispatch device driver DDD is required because APIs for operating the hardware are different.

【0025】[0025]

【発明の効果】本発明による第1の効果は、従来のデバ
イスドライバを変更せずにデバイスの追加ができるとい
うことである。これにより、デバイスの追加が容易にで
きるようになる。すなわち、ディスパッチデバイスドラ
イバがデバイスドライバ登録情報によってシステム起動
時に、各デバイス番号に割り当てられたデバイスドライ
バをロードし、実行時はアプリケーションから指定され
たデバイス番号への処理要求を各デバイスドライバに振
り分けるからである。
A first effect of the present invention is that a device can be added without changing a conventional device driver. This makes it possible to easily add a device. That is, the dispatch device driver loads the device driver assigned to each device number at the time of system startup according to the device driver registration information, and distributes a processing request to the specified device number from the application to each device driver at the time of execution. is there.

【0026】本発明による第2の効果は、デバイス番号
とデバイスの関連が変更できるということである。すな
わち、デバイス番号とデバイスドライバの関係を、変更
した状態でデバイスドライバ登録情報に記述するからで
ある。
A second effect of the present invention is that the association between a device number and a device can be changed. That is, the relationship between the device number and the device driver is described in the device driver registration information in a changed state.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のデバイスドライバ制御方法の一実施形
態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a device driver control method according to the present invention.

【図2】ディスパッチデバイスドライバの初期処理のフ
ローチャートである。
FIG. 2 is a flowchart of an initial process of a dispatch device driver.

【図3】ディスパッチデバイスドライバの実行時のフロ
ーチャートである。
FIG. 3 is a flowchart when a dispatch device driver is executed.

【図4】デバイスドライバ登録情報の一例を示す図であ
る。
FIG. 4 is a diagram illustrating an example of device driver registration information.

【図5】デバイス番号選択画面の一例を示す図である。FIG. 5 is a diagram illustrating an example of a device number selection screen.

【図6】デバイスドライバ制御方法のデバイス追加時の
ブロック図である。
FIG. 6 is a block diagram when a device is added in the device driver control method.

【図7】デバイス追加時のデバイスドライバ登録情報の
一例を示す図である。
FIG. 7 illustrates an example of device driver registration information when a device is added.

【図8】デバイス追加時のデバイス番号選択画面の一例
を示す図である。
FIG. 8 illustrates an example of a device number selection screen when a device is added.

【図9】デバイス番号変更時のデバイスドライバ登録情
報の一例を示す図である。
FIG. 9 is a diagram illustrating an example of device driver registration information when a device number is changed.

【図10】従来例のパーソナルコンピュータのブロック
構成図である。
FIG. 10 is a block diagram of a conventional personal computer.

【図11】従来のメインメモリのメモリマップである。FIG. 11 is a memory map of a conventional main memory.

【図12】従来例に示した割り込みベクタテーブルであ
る。
FIG. 12 is an interrupt vector table shown in the conventional example.

【符号の説明】[Explanation of symbols]

1 データ処理器 2 CPU 3 メインメモリ 8 入出力用デバイス AP アプリケーションプログラム OS オペレーティングシステム DDD ディスパッチデバイスドライバ DDA デバイスドライバA DDB デバイスドライバB DDX デバイスドライバX DA デバイスA DB デバイスB DX デバイスX 1 Data Processor 2 CPU 3 Main Memory 8 Input / Output Device AP Application Program OS Operating System DDD Dispatch Device Driver DDA Device Driver A DDB Device Driver B DDX Device Driver X DA Device A DB Device B DX Device X

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 デバイスを制御するデバイスドライバ
と、システム起動時に複数の前記デバイスドライバをロ
ードし、前記デバイスドライバのデバイス番号により前
記各デバイスドライバへ処理を振り分けるディスパッチ
デバイスドライバと、前記デバイス番号と前記デバイス
ドライバの関係を記述したデバイスドライバ登録情報
と、前記デバイスドライバ登録情報に従って前記デバイ
スドライバを選択するデバイス番号選択手段と、を備え
たことを特徴とするデバイスドライバ制御方法。
A device driver for controlling a device; a dispatch device driver for loading a plurality of device drivers at the time of system startup, and distributing processing to each device driver according to a device number of the device driver; A device driver control method, comprising: device driver registration information describing a relationship between device drivers; and device number selection means for selecting the device driver according to the device driver registration information.
【請求項2】 複数のデバイスドライバに接続された複
数のデバイスを制御する情報処理装置において、ユーザ
の指定に従って、オペレーティングシステムに対してア
プリケーションインタフェイス(API)を発行するア
プリケーションプログラムと、前記APIを受け取り、
ディスパッチデバイスドライバに制御を渡す前記オペレ
ーティングシステムと、前記デバイスドライバに制御を
振り分ける前記ディスパッチデバイスドライバと、デバ
イスを制御するそれぞれ対応するデバイスドライとを備
え、前記ディスパッチデバイスドライバがシステムの起
動時に前記デバイスの番号によって前記デバイスドライ
バに処理を振り分けることを特徴とする情報処理装置。
2. An information processing apparatus for controlling a plurality of devices connected to a plurality of device drivers, comprising: an application program for issuing an application interface (API) to an operating system according to a user's specification; Acceptance,
The operating system that transfers control to a dispatch device driver, the dispatch device driver that distributes control to the device driver, and a corresponding device driver that controls a device, wherein the dispatch device driver controls the device when the system starts up. An information processing apparatus, wherein a process is distributed to the device driver by a number.
【請求項3】 請求項2に記載の情報処理装置におい
て、システムを統括するCPUは、前記ディスパッチデ
バイスドライバをメモリ上にロードし、前記ロードされ
たディスパッチデバイスドライバは、デバイスドライバ
登録情報を参照してデバイス番号に対応したデバイスド
ライバをメモリ上にロードすることを特徴とする情報処
理装置。
3. The information processing apparatus according to claim 2, wherein the CPU controlling the system loads the dispatch device driver on a memory, and the loaded dispatch device driver refers to device driver registration information. An information processing apparatus characterized in that a device driver corresponding to a device number is loaded onto a memory by using a memory.
【請求項4】 請求項3に記載の情報処理装置におい
て、前記デバイスドライバ登録情報に新規なデバイスド
ライバを追加することができることを特徴とする情報処
理装置。
4. The information processing apparatus according to claim 3, wherein a new device driver can be added to the device driver registration information.
【請求項5】 請求項3に記載の情報処理装置におい
て、前記デバイスドライバ登録情報に前記デバイスと前
記デバイスドライバの関係を変更することができること
を特徴とする情報処理装置。
5. The information processing apparatus according to claim 3, wherein a relationship between the device and the device driver can be changed in the device driver registration information.
JP18347396A 1996-07-12 1996-07-12 Information processor and its device driver control method Pending JPH1027149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18347396A JPH1027149A (en) 1996-07-12 1996-07-12 Information processor and its device driver control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18347396A JPH1027149A (en) 1996-07-12 1996-07-12 Information processor and its device driver control method

Publications (1)

Publication Number Publication Date
JPH1027149A true JPH1027149A (en) 1998-01-27

Family

ID=16136417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18347396A Pending JPH1027149A (en) 1996-07-12 1996-07-12 Information processor and its device driver control method

Country Status (1)

Country Link
JP (1) JPH1027149A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7046384B2 (en) 2001-01-11 2006-05-16 Sharp Laboratories Of America, Inc. Methods and systems for print-processor-based print task error recovery
US7365870B2 (en) 2001-08-17 2008-04-29 Sharp Laboratories Of America, Inc Methods and systems for page-independent spool file face-up emulation
US7480068B2 (en) 2001-01-11 2009-01-20 Sharp Laboratories Of America, Inc. Methods and systems for page-independent spool file sheet assembly
US7548331B2 (en) 2001-01-11 2009-06-16 Sharp Laboratories Of America, Inc. Methods and systems for print system component-based remote printing
JP2010165128A (en) * 2009-01-14 2010-07-29 Canon Inc Image-forming device, controlling method, and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7046384B2 (en) 2001-01-11 2006-05-16 Sharp Laboratories Of America, Inc. Methods and systems for print-processor-based print task error recovery
US7480068B2 (en) 2001-01-11 2009-01-20 Sharp Laboratories Of America, Inc. Methods and systems for page-independent spool file sheet assembly
US7548331B2 (en) 2001-01-11 2009-06-16 Sharp Laboratories Of America, Inc. Methods and systems for print system component-based remote printing
US7365870B2 (en) 2001-08-17 2008-04-29 Sharp Laboratories Of America, Inc Methods and systems for page-independent spool file face-up emulation
JP2010165128A (en) * 2009-01-14 2010-07-29 Canon Inc Image-forming device, controlling method, and program
US8139980B2 (en) 2009-01-14 2012-03-20 Canon Kabushiki Kaisha Image forming apparatus, control method, and program
US8351821B2 (en) 2009-01-14 2013-01-08 Canon Kabushiki Kaisha Image forming apparatus, control method, and program

Similar Documents

Publication Publication Date Title
US6763518B2 (en) Automatic client/server translation and execution of non-native applications
WO1993016437A1 (en) A programming model for a coprocessor on a computer system
JPH05216614A (en) Method and apparatus for providing shared off-screen pixel storage
US5630074A (en) Inter-program communication and scheduling method for personal computers
JPH11316686A (en) BIOS data storage device for computer system and method of driving the same
JPH0544054B2 (en)
JPH1027149A (en) Information processor and its device driver control method
JP3797371B2 (en) Image transfer using drawing command hook
JP3000319B2 (en) Window display control system
JPH09114557A (en) Information processing apparatus and method for calling power management function of the information processing apparatus
JPS63205731A (en) Program start processing system
JP3861925B2 (en) Emulation apparatus and method
JP2553526B2 (en) Multitasking processor
JP2544452B2 (en) Multitasking processor
JP3861924B2 (en) Emulation apparatus and method
JPH07219747A (en) System for installing software
JPH10207719A (en) Method for supporting task of computer terminal and device therefor
JPS62231369A (en) Picture switching system
JP3728048B2 (en) Information processing apparatus and display control method
JP2022132302A (en) PRINT LAYOUT SWITCHING DEVICE, PRINT LAYOUT SWITCHING METHOD, AND PRINT LAYOUT SWITCHING PROGRAM
JPH0651857A (en) Method for outputting voice and image
JPH02165323A (en) Multiwindow display device
JPH07219918A (en) System startup method for parallel computers
JPH04355834A (en) Operating system load system
JPH0887259A (en) Information processing device