Thanks for your thoguhts. It's helped me a lot. http://lnujuacdv.com [url=http://mglehy.com]mglehy[/url] [link=http://muapxwhkvwe.com]muapxwhkvwe[/link] *CIS (PCMCIA関係) [#v43146c1] -[[PCMCIA]]のカード属性情報。 *基礎知識 [#vbbdaaa8] -属性メモリ空間のアドレス0から記述されている -偶数番地にのみ書かれている -CISタプルという構造体が連なっている -CISを読むときは、PCカードをI/Oモードではなくメモリカードモードにすること! --これがなかなか分からなくて泣かされました。 -- [[K]] --最初メモリカードモードで起動し、後でI/Oモードにすれば良い。 *CISタプルの基本構造 [#k04ca448] [タプル番号(1byte)] [タプルパラメータ長(1byte)] [タプルパラメータ(nbytes)] [次のタプル番号] ...~ -(例) [01 04 df 72 01 ff] [1c 04 03 d9 01 ff] [18 02 df 01] ... -なお、パラメータ長0xffはCISタプル構造体の終端を表わす *いろいろなCISタプル [#ze9a7825] -00:Empty tuple --このタプルは特別で、タプルパラメータ長フィールドやタプルパラメータフィールドを持たない -01:Device descriptor, common memory -02:Long link -03:Indirect -04:Config -05:CF table entry -06:Long link -07:BAR (?) -08:Power management -09:Ext device -0a~0f:? -10:Checksum -11:Link to Attribute memory -12:Link to Common memory -13:Link target -14:No link -15:Card info data (ver.1) -16:Alternate language string -17:Device descriptor, Attribute memory -18:JEDEC descr for common memory -19:JEDEC descr for Attribute memory -1a:Card Configuration map -1b:Card Configuration entry -1c:Other conditions info - common memory -1d:Other conditions info - attribute memory -1e:Geometry info for common memory -1f:Geometry info for attribute memory -20:Card manufacturer's ID -21:Function of card --カードの大まかな種類を表わすタプルらしい。[[PCI]]でいうところのベースクラスみたいな感じかな? --タプルパラメータは最低2つ。PCカードの初期化に必要な情報があれば拡張タプルが続く。 --最初のパラメータはカード機能コード ---0x00:マルチファンクションカード ---0x01:メモリカード(いわゆるピュアなメモリカードで、最大容量が64MBなんだろう。[[PCカードATA]]はこれには含まれないと思う) ---0x02:シリアルポートカード ---0x03:パラレルポートカード ---0x04:固定ディスク(たぶん[[PCカードATA]]はこれになる) ---0x05:ビデオカード ---0x06:ネットワークアダプタカード ---0x07:AIMSカード ---0x08:SCSIカード ---0x09:セキュリティカード ---0x0a:インスツルメントカード ---0x0b:高速シリアルバスアダプタ(USBやIEEE1394など) ---0x0c~0xfd:リザーブ ---0xfe:ベンダ定義 ---0xff:使用不可 --次のパラメータはシステム初期化ビットマスク ---bit0:POST ---bit1:ROM ---bit2-4:リザーブ ---bit5:RFU(0) ---bit6-7:リザーブ -22:Functional extension -23:Software interleave -40:Card info data (ver.2) -41:Memory card format -42:Disk sector layout -43:Byte order of memory data -44:Format date/time -45:Battery replacement date -46:Organization of data on card -47:Format (?) -48~8f:? -90:(使われることがあるらしいが、とりあえず不明) -91~fe:? -ff:Termination *参考になるリンク? [#ub4e1dc5] -http://www.linkclub.or.jp/~clover/cis/ --CIS Tupleの一覧。BSDのPAO関連の情報はPCカードのプログラミングに役立つかもしれない。 * こめんと欄 [#b7964fec] -CISの規格はJEITAから有料(\40,000-)にて入手可能です。高い! -- ''limeG'' SIZE(10){2007-02-16 (金) 17:13:39} --PC Card Standard Release 8.1 メタフォーマット仕様 --http://www.jeita.or.jp/japanese/public/list/detail.asp?id=130&cateid=6 #comment