JP3556309B2 - Computer system and I/O control device used in the system - Google Patents
Computer system and I/O control device used in the system Download PDFInfo
- Publication number
- JP3556309B2 JP3556309B2 JP04450395A JP4450395A JP3556309B2 JP 3556309 B2 JP3556309 B2 JP 3556309B2 JP 04450395 A JP04450395 A JP 04450395A JP 4450395 A JP4450395 A JP 4450395A JP 3556309 B2 JP3556309 B2 JP 3556309B2
- Authority
- JP
- Japan
- Prior art keywords
- environment setting
- register
- write
- written
- cpu
- 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.)
- Expired - Fee Related
Links
Images
Description
【0001】
【産業上の利用分野】
この発明はコンピュータシステムに関し、特にハードウェアリソースが変更可能なI/Oデバイスを含むコンピュータシステムおよびそのシステムで使用されるI/O制御装置に関する。
【0002】
【従来の技術】
近年、携行が容易でバッテリにより動作可能なノートブックタイプまたはラップトップタイプのポータブルパーソナルコンピュータが種々開発されている。この種のパーソナルコンピュータにおいては、オプションカードなどの拡張デバイスを必要に応じて接続するための拡張コネクタが設けられている。オプションカードとしては、ISA仕様のいわゆるISAカードなどが業界標準カードとして良く知られている。
【0003】
この種のオプションカードにおいては、そのカード毎にそれを使用するのに必要なハードウェア資源(割り込みレベル、DMAチャネル番号、I/Oアドレス空間など)が規定されている。また、オプションカードのほとんどは、ユーザによって操作可能なジャンパまたはディップスイッチを有しており、それらジャンパまたはディップスイッチの設定に応じて割り込みレベルなどが変更できるように構成されている。これらジャンパまたはディップスイッチの操作によってオプションカードの割り込みレベルおよびDMAチャネルの値を、他のI/Oデバイスによって使用されてない割り込みレベルおよびDMAチャネルに設定すれば、そのオプションカードを正常に使用する事ができる。
【0004】
しかしながら、ジャンパまたはディプスイッチの設定操作を正しく行うためには、ポータブルコンピュータ内蔵の各種周辺LSIコントローラなどの全てのI/Oデバイス、および拡張コネクタに既に接続されている他のオプションカードがどのようなハードウェアリソースを使用しているかなどを調べなければならず、その作業はユーザにとっては非常に困難である。
【0005】
もしオプションカードと他のI/Oデバイスとの割り込みレベルが重なっている場合には、CPUがそれらデバイスのどちらから割り込み要求が発生されたか区別できなくなり、オプションカードを正常に動作させる事ができなくなる。
【0006】
そこで、最近では、いわゆるPlag and Play(PNP)を提唱する次世代OS、すなわちシステム内蔵の特定のI/Oデバイスに割り当てるべき割り込みレベル、およびDMAチャネル番号などのハードウェアリソースを管理する機能を持つOSが開発され始めており、これに伴ってハードウェアリソースの変更が可能なI/Oデバイスの設計が要求されている。
【0007】
このようなハードウェアリソースの変更が可能なI/Oデバイスを実現するためには、そのI/Oデバイスに割り当てるハードウェアリソースを指定する環境設定レジスタを用意し、その環境設定レジスタにOSによって指定されたハードウェアリソースの情報を書き込むように構成する事が必要とされる。
【0008】
【発明が解決しようとする課題】
しかし、このようにハードウェアリソース管理機能をOSが持ち、ハードウェアリソースの変更が可能なI/Oデバイスを含むシステムであっても、実際にはそのシステムのハードウェア構成は機種毎に種々異なっているので、機種によってはOSによって指定されたハードウェアリソースを使用できるとは限らない。
【0009】
例えば、拡張バスを持たないシステムの場合には、そのシステム内ハードウェアによってサポートすべきDMAチャネル数は必要最小限に押さえられているのが普通である。この場合、OSによって指定されたDMAチャネルが実際にはサポートされておらず、これによって誤動作が引き起こされる危険がある。
【0010】
この発明はこのような点に鑑みてなされたもので、環境設定レジスタへの書き込みをハードウェア的に禁止できるようにし、OS環境に影響を及ぼすこと無くハードウェアリソースの変更による誤動作を防止することができるコンピュータシステムおよびI/O制御装置を提供することを目的とする。
【0011】
【課題を解決するための手段および作用】
この発明によるコンピュータシステムは、CPU、メモリ、およびハードウェアリソースが変更可能なI/Oデバイスから構成されるコンピュータシステムであって、前記CPUによってリード/ライト可能に構成され、前記I/Oデバイスに割り当てるべきDMAチャネルおよび割り込みレベルを前記I/Oデバイスのハードウェアリソースとして指定する環境設定情報がオペレーティングシステムによって書き込まれる環境設定レジスタと、前記CPUによってリード/ライト可能に構成され、前記環境設定レジスタへの書き込み禁止を指定するライトロック情報がシステムBIOSによって書き込み可能な制御レジスタと、この制御レジスタに前記ライトロック情報が書き込まれた場合は前記環境設定レジスタへの書き込みを禁止し、前記ライトロック情報が書き込まれていない場合は前記環境設定レジスタへの書き込みを許可する書き込み禁止回路とを具備することを特徴とする。
【0012】
このコンピュータシステムにおいては、オペレーティングシステムによって環境設定レジスタに書き込まれる環境設定情報の内容に従ってI/Oデバイスに割り当てるハードウェアリソースが決定されるが、システムBIOSによって制御レジスタにライトロック情報が書き込まれている場合には、書き込み禁止回路によって環境設定レジスタへの書き込みがハードウェア的に禁止され、一方、ライトロック情報が書き込まれていない場合には、環境設定レジスタへの書き込みが許可される。
【0013】
このため、例えば、拡張バスを持たないシステムのようにサポートしているハードウェアリソースが比較的少ない機種においては、システム起動時に環境設定レジスタにデフォルトの環境設定情報を書き込んだ後、制御レジスタにライトロック情報を書き込むことにより、以降、OSによる環境設定レジスタへの書き込みを禁止できる。従って、サポートされてないハードウェアリソースが指定されることによる誤動作を防止できる。一方、全てのハードウェアリソースをサポートしている機種においては、ライトロック情報を書き込まなければ、通常通り、OS管理下でI/Oデバイスに割り当てるハードウェアリソースを任意に変更することができる。
【0014】
【実施例】
以下、図面を参照してこの発明の実施例を説明する。図1には、この発明の一実施例に係わるパーソナルコンピュータのシステム構成が示されている。
このパーソナルコンピュータは、ラップトップタイプまたはノートブックタイプのシステムであり、図示のように、CPUローカルバス(プロセッサバス)10A、ISA仕様のシステムバス10B、CPU11、レベルシフト用ゲートアレイ12、システムメモリ13、表示コントローラ14、ビデオメモリ(VRAM)15、およびLCDなどのフラットパネルディスプレイ16を備えている。
【0015】
CPU11は、システム全体の制御を司るためのものであり、システムメモリ13に格納された処理対象のプログラムを実行する。CPU11としては、3.3V/5V動作可能なもの、例えば、米インテル社により製造販売されているマイクロプロセッサSL Enhanced Intel486などが使用されており、そのCPU11には後述の電源コントローラ23によって3.3Vの電源電圧が供給されている。このCPU11には、1ラインのデータサイズが32ビット×4のキャッシュメモリが内蔵されている。CPU11のローカルバス10Aには、32ビット幅のデータバス、32ビット幅のアドレスバス、および各種ステータス信号線などが定義されている。
【0016】
システムメモリ13は、オペレーティングシステム、処理対象のアプリケーションプログラム、およびアプリケーションプログラムによって作成されたユーザデータ等を格納する。オペレーティングシステム(OS)としては、I/Oデバイスのハードウェアリソース(割り込みレベル、DMAチャネル番号、I/Oアドレス空間など)管理機能を持つものが使用される。このシステムメモリ13は、5V動作のダイナミックRAMから構成されている。
【0017】
レベルシフト用ゲートアレイ12は、CPUローカルバス10A内に定義された32ビットデータバスとシステムメモリ13との間に接続されており、その間を転送するデータ信号の電圧レベルを3.3Vから5V、または5Vから3.3Vに変換する。データ信号の電圧レベル変換は、レベルシフト用ゲートアレイ12内のバッファ回路によって実行される。また、CPUバスサイクルとシステムメモリ13のリードアクセスサイクルとの非同期実行を可能にするために、バッファ回路にはシステムメモリ13からのリードデータをラッチするデータラッチ機能が設けられている。
【0018】
表示コントローラ14は、STNモノクロ、STNカラー、またはTFTカラーLCDパネルなどから構成されるフラットパネルディスプレイ16を表示制御するためのものであり、CPUローカルバス10Aを介してCPU11から表示データを受け取り、それをビデオメモリ(VRAM)15に書き込む。
【0019】
システムバス10Bには、BIOS ROM17、システムコントローラ18、およびI/Oコントローラ19が接続されている。
BIOS ROM17は、システムBIOS(Basic I/O System )を格納するためのものであり、プログラム書き替えが可能なようにフラッシュメモリによって構成されている。システムBIOSには、電源投入時に実行されるIRTルーチン、各種I/Oデバイスを制御するためのデバイスドライバ、システム管理プログラム、およびセットアッププログラムなどが含まれている。
【0020】
システムコントローラ18は、CPUローカルバス10Aとシステムバス10B間を接続するブリッジ装置、およびシステム内の各種メモリを制御するメモリ制御ロジック等から構成されている。
【0021】
I/Oコントローラ19は、シリアルポート20に接続されるI/O機器等の制御、および双方向パラレルポートであるECP(Extended Capabilities Port)21に接続されるプリンタ/外部FDD等の制御、および3.5インチの内蔵FDD22の制御を行なう。
【0022】
I/Oコントローラ19は1個のLSIによって構成されており、そこには図2に示されているように、ECP制御回路192を含むI/Oコントロールユニット191、I/Oデコーダ192、システムタイマ(PIT;Programmable Interval Timer )193、2つの割り込みコントローラ(PIC;Programmable Interrupt Controller )194、2つのDMAコントローラ195、2つのUART196、2つのフロッピーディスクコントローラ(FDC)197、およびVFO198を備えている。ECP制御回路192は、パラレルポート(ECP)21に割り当てる割り込みレベルとDMAチャネルをプログラマブルにするための機構などを有している。このECP制御回路192の構成はこの発明の特徴とする部分であり、その具体的な構成については図3以降で説明する。
【0023】
システムバス10Bには、さらに、内蔵HDD24、リアルタイムクロック(RTC)25、キーボードコントローラ(KBC)26、PCMCIAコントローラ27、CD−ROM34、およびサウンドカード35が接続されている。
【0024】
リアルタイムクロック(RTC)25は、独自の動作用電池を持つ時計モジュールであり、その電池から常時電源が供給されるCMOS構成のスタティックRAM(CMOSメモリと称する)を有している。このCMOSメモリは、システム動作環境を示す環境設定情報の保存等に利用される。
【0025】
キーボードコントローラ(KBC)26は、コンピュータ本体に組み込まれている内蔵キーボード29を制御するためのものであり、内蔵キーボード29のキーマトリクスをスキャンして押下キーに対応する信号を受けとり、それを所定のキーコード(スキャンコード)に変換する。
【0026】
また、キーボードコントローラ26は、オプション接続される外部キーボード30を制御する機能、および専用プロセッサ(IPSコントローラ)28を用いてポインティングステイック31、およびマウス32を制御する機能を有している。ポインティングステイック31は、内蔵キーボード29のキーボードユニットと一体化されて設けられている。
【0027】
PCMCIAコントローラ27は、オプション装着されるJEIDA/PCMCIA仕様のPCカード33のアクセス制御を行う。サウンドカード25はPCM音源、および音声信号のデジタル信号処理回路などを備えており、このサウンドカード25にはライン入力端子36、ライン出力端子37、ヘッドホン端子38、マイク端子39、およびジョイスティック端子40が接続されている。
【0028】
図3には、ECP制御回路192の構成が示されている。
ECP制御回路192は、図示のように、ISAバスインタフェース201、ECP PNP回路202、I/O制御回路203、およびスルーレート制御回路213を備えており、I/O制御回路203には、デバイス制御レジスタDCR204、デバイスステータスレジスタDSR205、拡張コントロールレジスタECR206、コンフィグレシーションAレジスタ207、コンフィグレシーションBレジスタ208などの各種I/Oレジスタや、データ入出力制御のためのロジック209〜212などが設けられている。
【0029】
ECP PNP回路202は、コンフィグレシーションBレジスタ208に設定されている環境設定情報に従ってパラレルポート(ECP)21に割り当てられているDMAチャネル(DRQ)、および割り込みレベル(IREQ)を検出し、それらDMAチャネル(DRQ)および割り込みレベルを利用してバス10Bとのインタフェースを制御する。このECP PNP回路202には、コンフィグレシーションBレジスタ208の書き込み禁止/許可を指定するためのECP PNP制御レジスタも内蔵されている。
【0030】
図4には、ECP PNP制御レジスタ202とコンフィグレシーションBレジスタ208との関係が示されている。
コンフィグレシーションBレジスタ208は、CPU11によってリード/ライト可能な8ビットレジスタであり、ここにはECP21に割り当てるべき割り込みレベル(IREQ)を指定する情報(b5−3)と、ECP21に割り当てるべきDMAチャネルを指定する情報(b2−0)とがセットされる。
【0031】
コンフィグレシーションBレジスタ208のビットb5−3、およびビットb2−0は通常はリード/ライト可であるが、システムBIOSなどによってECP PNP回路202のECP PNP制御レジスタ202のビット0に“1”のライトロックフラグをセットすることにより、コンフィグレシーションBレジスタ208をリードオンリーにすることができる。
【0032】
すなわち、PNP制御レジスタ202のビット0には通常は“0”のライトロックフラグがセットされており、この状態では、コンフィグレシーションBレジスタ208はリード/ライト可能であり、ECP21に割り当てるべきIREQ,DMAチャネルをOSからの指示に応じて変更することができる。一方、PNP制御レジスタ202のビット0に“1”のライトロックフラグがセットされている状態では、コンフィグレシーションBレジスタ208はリードオンリーとなり、OSによるIREQ,DMAチャネルの変更が禁止される。
【0033】
次に、図5を参照して、ライトロックフラグに応じてコンフィグレシーションBレジスタ208の書き込みを無効化するための書き込み無効化回路の構成を説明する。
【0034】
この書き込み無効化回路はECP PNP回路202内に設けられており、図示のような2つのゲートG1,G2によって構成されている。これらゲートG1,G2はそれぞれ負論理のANDゲートである。
【0035】
CPU11がコンフィグレシーションBレジスタ208に情報を書き込むためのI/Oライトサイクルを実行した時、その時のバス10B上のI/OアドレスがECP PNP回路202によってデコードされ、そのI/OアドレスがECP21のI/Oアドレス空間に属するならば、IOデコード#信号がアクティブになる。また、この時、バス10B上のI/Oライト信号IOW#もアクティブになっている。
【0036】
したがって、この時、もしライトロックフラグが“0”であれば、コンフィグレシーションBレジスタ208を構成する各フリップフロップ301にラッチ信号が書き込み信号として供給され、バス10B上のデータがコンフィグレシーションBレジスタ208に書き込まれる。
【0037】
一方、ライトロックフラグが“1”であれば、コンフィグレシーションBレジスタ208を構成する各フリロップフロップ301への書き込み信号の供給は禁止され、CPU11のI/Oライトサイクルは無効化される。
【0038】
以上のように、この実施例においては、OSによってコンフィグレシーションBレジスタ208に書き込まれる情報の内容に従ってECP21に割り当てるハードウェアリソース(DMAチャネル、割り込みレベル)が決定されるが、ECP PNP制御レジスタ301に“1”のライトロックフラグが書き込まれている場合には、書き込み無効化回路(G1,G2)によってコンフィグレシーションBレジスタ208への書き込みがハードウェア的に禁止される。
【0039】
このため、例えば、拡張バスを持たないシステムのようにサポートしているハードウェアリソースが比較的少ない機種にI/Oコントローラ19が搭載されている場合においては、システム起動時にコンフィグレシーションBレジスタ208にデフォルトの設定情報を書き込んだ後、ECP PNP制御レジスタ301に“1”のライトロックフラグを書き込むことにより、以降、OSによるコンフィグレシーションBレジスタ208への書き込みを禁止できる。従って、サポートされてないハードウェアリソースが指定されることによる誤動作を防止できる。
【0040】
一方、全てのハードウェアリソースをサポートしている機種にI/Oコントローラ19が搭載されている場合においては、“1”のライトロックフラグを書き込まなければ、通常通り、OS管理下でECP21に割り当てるハードウェアリソースを任意に変更することができる。
【0041】
なお、この実施例では、ECP21のハードウェアリソースを変更するための書き込み禁止機構について説明したが、ハードウェアリソースが変更可能に構成されたI/Oデバイスであれば、ECP21の制御と同様にして、そのI/Oデバイスに割り当てられるハードウェアリソースが格納されるI/Oレジスタへの書き込みをハードウェア的に禁止することができる。
【0042】
例えば、図1のサウンドカード35にこの発明の機構を適用する場合には、ECP PNP制御レジスタ301に対応する専用レジスタと、書き込み無効化回路とを用意し、専用レジスタにライトロックフラグをセットするとことで、サウンドカード35内のコンフィグレシーションレジスタへの書き込みを禁止することが可能となる。
【0043】
【発明の効果】
以上説明したように、この発明によれば、OS等によって環境設定レジスタに書き込まれる環境設定情報の内容に従ってI/Oデバイスに割り当てるハードウェアリソースが決定されるが、制御レジスタにライトロック情報が書き込まれている場合には、書き込み禁止回路によって環境設定レジスタへの書き込みがハードウェア的に無効化される。このため、OS環境に影響を及ぼすこと無く、サポートされてないハードウェアリソースが指定されることによる誤動作などを防止することが可能となる。
【図面の簡単な説明】
【図1】この発明の一実施例に係るポータブルパーソナルコンピュータのシステム構成を示すブロック図。
【図2】図1のシステムに設けられたI/Oコントローラの構成を示すブロック図。
【図3】図2のI/Oコントローラに設けられたECP制御回路の構成を示すブロック図。
【図4】図3のECP制御回路に設けられている環境設定用レジスタとそのレジスタへのライトを無効化するための制御レジスタとの関係を説明するための図。
【図5】図3のECP制御回路に設けられている書き込み無効化回路の構成を示す回路図。
【符号の説明】
10A…CPUローカルバス(プロセッサバス)、11…CPU、12…レベルシフト用ゲートアレイ、13…システムメモリ、14…表示コントローラ、15…ビデオメモリ、16…フラットパネルディスプレイ、17…BIOS ROM、18…システムコントローラ、19…I/Oコントローラ、192…ECP制御回路、202…ECP PNP回路、208…コンフィグレーションBレジスタ、301…ECP PNP制御レジスタ。[0001]
[Industrial application field]
The present invention relates to a computer system, and more particularly to a computer system including an I/O device whose hardware resources are changeable, and an I/O control device used in the computer system.
[0002]
2. Description of the Related Art
In recent years, various types of portable personal computers, such as notebook or laptop type computers, have been developed that are easy to carry and can be operated by batteries. These types of personal computers are provided with expansion connectors for connecting expansion devices such as option cards as necessary. As option cards, the so-called ISA card, which conforms to the ISA specification, is well known as an industry standard card.
[0003]
For this type of option card, the hardware resources required to use it (interrupt level, DMA channel number, I/O address space, etc.) are specified for each card. Most option cards also have jumpers or DIP switches that can be operated by the user, and are configured so that the interrupt level, etc. can be changed according to the settings of these jumpers or DIP switches. By operating these jumpers or DIP switches, the option card's interrupt level and DMA channel values can be set to an interrupt level and DMA channel that are not being used by other I/O devices, and the option card can be used normally.
[0004]
However, in order to correctly set the jumpers or dip switches, it is necessary to check what hardware resources are being used by all I/O devices, such as the various peripheral LSI controllers built into the portable computer, and by other option cards already connected to the expansion connector, which can be a very difficult task for the user.
[0005]
If the interrupt levels of an option card and another I/O device overlap, the CPU will not be able to distinguish which of the two devices has generated an interrupt request, and the option card will not be able to operate normally.
[0006]
Recently, development has begun on next-generation OSs that advocate the so-called Plug and Play (PNP) approach, that is, OSs that have the functionality to manage hardware resources such as interrupt levels and DMA channel numbers to be assigned to specific I/O devices built into the system. This has created a demand for the design of I/O devices that allow hardware resources to be changed.
[0007]
In order to realize an I/O device that can change such hardware resources, it is necessary to prepare an environment setting register that specifies the hardware resources to be assigned to the I/O device, and to configure the environment setting register so that information on the hardware resources specified by the OS is written.
[0008]
[Problem to be solved by the invention]
However, even in a system in which the OS has a hardware resource management function and includes an I/O device whose hardware resources can be changed, the hardware configuration of the system actually varies from model to model, so that depending on the model, it is not always possible to use the hardware resources specified by the OS.
[0009]
For example, in the case of a system that does not have an expansion bus, the number of DMA channels that should be supported by the hardware in the system is usually kept to a minimum, and in this case, there is a risk that a DMA channel specified by the OS is not actually supported, which may cause a malfunction.
[0010]
This invention has been made in consideration of these points, and aims to provide a computer system and an I/O control device that can prohibit writing to environment setting registers in a hardware manner, thereby preventing malfunctions due to changes in hardware resources without affecting the OS environment.
[0011]
Means for solving the problems and actions
The computer system of the present invention is a computer system composed of a CPU, memory, and an I/O device whose hardware resources can be changed, and is characterized in having: an environment setting register configured to be readable/writable by the CPU, and into which an operating system writes environment setting information that specifies the DMA channel and interrupt level to be assigned to the I/O device as hardware resources of the I/O device; a control register configured to be readable/writable by the CPU, and into which a system BIOS can write write lock information that specifies a write prohibition to the environment setting register; and a write prohibition circuit that prohibits writing to the environment setting register when the write lock information is written to this control register, and allows writing to the environment setting register when the write lock information is not written .
[0012]
In this computer system, the hardware resources to be allocated to the I/O devices are determined according to the contents of the configuration information written to the configuration register by the operating system, but if the system BIOS has written write lock information to the control register, a write prohibition circuit prohibits writing to the configuration register in a hardware manner , whereas if no write lock information has been written, writing to the configuration register is permitted.
[0013]
For this reason, for example, in a model that supports relatively few hardware resources, such as a system without an expansion bus, by writing default environment setting information to the environment setting register at system startup and then writing write lock information to the control register, it is possible to prohibit the OS from writing to the environment setting register thereafter. This makes it possible to prevent malfunctions caused by the specification of unsupported hardware resources. On the other hand, in a model that supports all hardware resources, if write lock information is not written, the hardware resources assigned to I/O devices can be changed as desired under OS management as usual.
[0014]
EXAMPLES
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will now be described with reference to the accompanying drawings, in which: Fig. 1 shows the system configuration of a personal computer according to an embodiment of the present invention.
This personal computer is a laptop or notebook type system, and as shown in the figure, comprises a CPU local bus (processor bus) 10A, an ISA-compliant system bus 10B, a
[0015]
The
[0016]
The
[0017]
The level
[0018]
The
[0019]
A
The
[0020]
The
[0021]
The I/
[0022]
The I/
[0023]
Further connected to the system bus 10B are an
[0024]
The real-time clock (RTC) 25 is a clock module with its own operating battery, and has a CMOS-configured static RAM (called CMOS memory) that is constantly powered by the battery. This CMOS memory is used to store environment setting information that indicates the system operating environment.
[0025]
The keyboard controller (KBC) 26 controls a built-in
[0026]
The keyboard controller 26 also has a function of controlling an
[0027]
The PCMCIA controller 27 controls access to an optional JEIDA/PCMCIA PC card 33. The
[0028]
FIG. 3 shows the configuration of the
As shown in the figure, the
[0029]
The ECP PNP circuit 202 detects the DMA channel (DRQ) and interrupt level (IREQ) assigned to the parallel port (ECP) 21 according to the environment setting information set in the Configuration B register 208, and controls the interface with the bus 10B using the DMA channel (DRQ) and interrupt level. The ECP PNP circuit 202 also includes an ECP PNP control register for specifying whether to disable or enable writing to the
[0030]
FIG. 4 shows the relationship between the ECP PNP Control Register 202 and the
The
[0031]
Bits b5-3 and bits b2-0 of the
[0032]
That is, a write lock flag of "0" is normally set in bit 0 of the PNP control register 202, and in this state, the
[0033]
Next, the configuration of a write invalidation circuit for invalidating writing to the
[0034]
This write invalidation circuit is provided in the ECP PNP circuit 202, and is composed of two gates G1 and G2 as shown in the figure. These gates G1 and G2 are each a negative logic AND gate.
[0035]
When the
[0036]
Therefore, at this time, if the write lock flag is “0”, a latch signal is supplied as a write signal to each flip-
[0037]
On the other hand, if the write lock flag is "1", the supply of a write signal to each flip-
[0038]
As described above, in this embodiment, the hardware resources (DMA channel, interrupt level) to be assigned to the
[0039]
For this reason, for example, when the I/
[0040]
On the other hand, if the I/
[0041]
In this embodiment, a write prohibition mechanism for changing the hardware resources of ECP21 has been described, but if the hardware resources of an I/O device are configured to be changeable, writing to the I/O register in which the hardware resources assigned to that I/O device are stored can be prohibited in a hardware manner, in a manner similar to the control of ECP21.
[0042]
For example, when the mechanism of the present invention is applied to the sound card 35 of FIG. 1, it is possible to inhibit writing to the configuration register in the sound card 35 by preparing a dedicated register corresponding to the ECP
[0043]
Effect of the Invention
As described above, according to the present invention, the hardware resources to be assigned to the I/O devices are determined according to the contents of the environment setting information written to the environment setting register by the OS or the like, but when write lock information is written to the control register, the write prohibition circuit disables writing to the environment setting register in a hardware manner. This makes it possible to prevent malfunctions caused by the specification of unsupported hardware resources without affecting the OS environment.
[Brief description of the drawings]
FIG. 1 is a block diagram showing the system configuration of a portable personal computer according to an embodiment of the present invention.
FIG. 2 is a block diagram showing the configuration of an I/O controller provided in the system of FIG.
3 is a block diagram showing the configuration of an ECP control circuit provided in the I/O controller of FIG. 2;
4 is a diagram for explaining the relationship between an environment setting register provided in the ECP control circuit of FIG. 3 and a control register for invalidating writing to that register.
5 is a circuit diagram showing the configuration of a write invalidation circuit provided in the ECP control circuit of FIG.
[Explanation of symbols]
10A...CPU local bus (processor bus), 11...CPU, 12...level shifting gate array, 13...system memory, 14...display controller, 15...video memory, 16...flat panel display, 17...BIOS ROM, 18...system controller, 19...I/O controller, 192...ECP control circuit, 202...ECP PNP circuit, 208...configuration B register, 301...ECP PNP control register.
Claims (6)
前記CPUによってリード/ライト可能に構成され、前記I/Oデバイスに割り当てるべきDMAチャネルおよび割り込みレベルを前記I/Oデバイスのハードウェアリソースとして指定する環境設定情報がオペレーティングシステムによって書き込まれる環境設定レジスタと、
前記CPUによってリード/ライト可能に構成され、前記環境設定レジスタへの書き込み禁止を指定するライトロック情報がシステムBIOSによって書き込み可能な制御レジスタと、
この制御レジスタに前記ライトロック情報が書き込まれた場合は前記環境設定レジスタへの書き込みを禁止し、前記ライトロック情報が書き込まれていない場合は前記環境設定レジスタへの書き込みを許可する書き込み禁止回路とを具備することを特徴とするコンピュータシステム。A computer system comprising a CPU, a memory, and an I/O device whose hardware resources are changeable,
an environment setting register configured to be readable/writable by the CPU, into which environment setting information is written by an operating system, the environment setting information designating a DMA channel and an interrupt level to be assigned to the I/O device as hardware resources of the I/O device;
a control register configured to be readable/writable by the CPU, and in which write lock information for designating a write prohibition on the environment setting register can be written by a system BIOS;
A computer system comprising: a write prohibition circuit that prohibits writing to the environment setting register when the write lock information is written to the control register, and allows writing to the environment setting register when the write lock information is not written .
前記制御レジスタに前記ライトロック情報が書き込まれた場合、前記CPUが前記環境設定レジスタに環境設定情報を書き込むときに実行するI/Oライトサイクルに応じて前記環境設定レジスタに供給されるデータ書き込みパルスを無効化して、前記環境設定レジスタへの書き込みを禁止することを特徴とする請求項1記載のコンピュータシステム。 The write protection circuit includes:
2. The computer system according to claim 1, wherein when the write lock information is written to the control register, a data write pulse supplied to the environment setting register in response to an I/O write cycle executed when the CPU writes the environment setting information to the environment setting register is invalidated, thereby prohibiting writing to the environment setting register.
ハードウェアリソースが変更可能に構成されたI/Oデバイスと、
前記CPUによってリード/ライト可能に構成され、前記ハードウェアリソースが変更可能に構成されたI/Oデバイスに割り当てるべきDMAチャネルおよび割り込みレベルをハードウェアリソースとして指定する環境設定情報がオペレーティングシステムによって書き込まれる環境設定レジスタと、
前記CPUによってリード/ライト可能に構成され、前記環境設定レジスタへの書き込み禁止を指定するライトロック情報がシステムBIOSによって書き込み可能な制御レジスタと、
この制御レジスタに前記ライトロック情報が書き込まれていない場合は前記環境設定レジスタへの書き込みを許可し、前記制御レジスタに前記ライトロック情報が書き込まれた場合は、前記CPUが前記環境設定レジスタに環境設定情報を書き込むときに実行するI/Oライトサイクルに応じて前記環境設定レジスタに供給されるデータ書き込みパルスを無効化し、前記環境設定レジスタのアクセス形態をリードオンリーに変更する書き込み禁止回路とを具備することを特徴とするコンピュータシステム。In a computer system consisting of a CPU, memory, and various I/O devices,
an I/O device configured to have changeable hardware resources;
an environment setting register configured to be readable/writable by the CPU and into which environment setting information is written by an operating system, the environment setting information designating, as hardware resources, DMA channels and interrupt levels to be assigned to I/O devices configured to be changeable by the hardware resources;
a control register configured to be readable/writable by the CPU, and in which write lock information for designating a write prohibition on the environment setting register can be written by a system BIOS;
a write prohibition circuit which permits writing to the environment setting register when the write lock information is not written to the control register, and which, when the write lock information is written to the control register, invalidates a data write pulse supplied to the environment setting register in response to an I/O write cycle executed when the CPU writes environment setting information to the environment setting register, thereby changing the access mode of the environment setting register to read-only.
前記コンピュータシステムのCPUによってリード/ライト可能に構成され、前記I/Oデバイスに割り当てるべきDMAチャネルおよび割り込みレベルを前記I/Oデバイスのハードウェアリソースとして指定する環境設定情報がオペレーティングシステムによって書き込まれる環境設定レジスタと、
前記CPUによってリード/ライト可能に構成され、前記環境設定レジスタへの書き込み禁止を指定するライトロック情報がシステムBIOSによって書き込み可能な制御レジスタと、
この制御レジスタに前記ライトロック情報が書き込まれていない場合は前記環境設定レジスタへの書き込みを許可し、前記制御レジスタに前記ライトロック情報が書き込まれた 場合は、前記CPUが前記環境設定レジスタに環境設定情報を書き込むときに実行するI/Oライトサイクルに応じて前記環境設定レジスタに供給されるデータ書き込みパルスを無効化し、前記環境設定レジスタのアクセス形態をリードオンリーに変更する書き込み禁止回路とを具備することを特徴とするI/O制御装置。In an I/O control device for controlling an I/O device used in a computer system,
an environment setting register configured to be readable/writable by a CPU of the computer system, and into which environment setting information is written by an operating system, the environment setting information designating a DMA channel and an interrupt level to be assigned to the I/O device as hardware resources of the I/O device;
a control register configured to be readable/writable by the CPU, and in which write lock information for designating a write prohibition on the environment setting register can be written by a system BIOS;
and a write prohibition circuit which permits writing to the environment setting register when the write lock information is not written to the control register, and which, when the write lock information is written to the control register, invalidates a data write pulse supplied to the environment setting register in accordance with an I/O write cycle executed when the CPU writes environment setting information to the environment setting register, thereby changing the access mode of the environment setting register to read-only.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04450395A JP3556309B2 (en) | 1995-03-03 | 1995-03-03 | Computer system and I/O control device used in the system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04450395A JP3556309B2 (en) | 1995-03-03 | 1995-03-03 | Computer system and I/O control device used in the system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08241266A JPH08241266A (en) | 1996-09-17 |
| JP3556309B2 true JP3556309B2 (en) | 2004-08-18 |
Family
ID=12693362
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP04450395A Expired - Fee Related JP3556309B2 (en) | 1995-03-03 | 1995-03-03 | Computer system and I/O control device used in the system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3556309B2 (en) |
-
1995
- 1995-03-03 JP JP04450395A patent/JP3556309B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08241266A (en) | 1996-09-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4695082B2 (en) | A computer system employing a highly reliable execution environment, including a memory controller configured to clear memory | |
| US8327161B2 (en) | Command decoder for microcontroller based flash memory digital controller system | |
| US5138706A (en) | Password protected enhancement configuration register for addressing an increased number of adapter circuit boards with target machine emulation capabilities | |
| JP3869049B2 (en) | Method for preventing loss of device configuration during standby in computer system and controller circuit for capturing device configuration | |
| US20090112884A1 (en) | Information processing apparatus and control method | |
| JPH04229329A (en) | Personal computer apparatus | |
| US5734914A (en) | Computer system capable of shifting voltage level of data signal between processor and system memory | |
| CA2118781C (en) | System management interrupt address bit correction circuit | |
| JPH09237140A (en) | Computer system | |
| JPH0395650A (en) | Cache inoperative address random access memory | |
| JP3943277B2 (en) | Microcomputer and electronic equipment | |
| US5555423A (en) | Multi-mode microprocessor having a pin for resetting its register without purging its cache | |
| JP3556309B2 (en) | Computer system and I/O control device used in the system | |
| US20090307389A1 (en) | Switchable access states for non-volatile storage devices | |
| CN117075981A (en) | A control method and electronic device | |
| US5857116A (en) | Circuit for disabling an address masking control signal when a microprocessor is in a system management mode | |
| WO1993022726A1 (en) | Single map data destination facility | |
| JP5894044B2 (en) | Method and portable computer for storing data in a hybrid disk drive | |
| US6560698B1 (en) | Register change summary resource | |
| JPH07319569A (en) | Computer system | |
| US20050132095A1 (en) | Method and apparatus for controlling peripheral devices in a computer system | |
| JP3447835B2 (en) | RAM chip identification method | |
| CN118672630A (en) | Application program updating method, device, equipment and medium | |
| JP2010009453A (en) | Information processing apparatus and device setting control method | |
| JPH0764954A (en) | Peripheral controller and computer system using the peripheral controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040116 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040217 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040401 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040427 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040512 |
|
| LAPS | Cancellation because of no payment of annual fees |