252 lines
24 KiB
Plaintext
252 lines
24 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="generator" content="TempleOS V5.03">
|
||
|
<meta name="viewport" content="width=device-width">
|
||
|
<link rel="stylesheet" href="/style/templeos.css">
|
||
|
<script src="/script/templeos.js"></script>
|
||
|
<style type="text/css">
|
||
|
.cF0{color:#000000;background-color:#ffffff;}
|
||
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
||
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
||
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
||
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
||
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
||
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
||
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
||
|
.cF8{color:#555555;background-color:#ffffff;}
|
||
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
||
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
||
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
||
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
||
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
||
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
||
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<pre id="content">
|
||
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"PCI;Processor;Devices;Info"</span><span class=cF0>
|
||
|
<a name="l2"></a>
|
||
|
<a name="l3"></a></span><span class=cF2>//The file was downloaded from</span><span class=cF0>
|
||
|
<a name="l4"></a></span><span class=cF2>//http://www.pcidatabase.com/reports.php?type=tab-delimeted</span><span class=cF0>
|
||
|
<a name="l5"></a>
|
||
|
<a name="l6"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>PCI_DEV_FILE</span><span class=cF0> </span><span class=cF6>"::/Misc/PCIDevices.DD.Z"</span><span class=cF0>
|
||
|
<a name="l7"></a>
|
||
|
<a name="l8"></a></span><span class=cF2>/****</span><span class=cF0>
|
||
|
<a name="l9"></a></span><span class=cF2>//1) Download http://www.pcidatabase.com/reports.php?type=tab-delimeted</span><span class=cF0>
|
||
|
<a name="l10"></a></span><span class=cF2>//2) Rename to ::/Misc/PCIDevices.DD.Z</span><span class=cF0>
|
||
|
<a name="l11"></a></span><span class=cF2>//3) ToDolDoc("::/Misc/PCIDevices.DD.Z");</span><span class=cF0>
|
||
|
<a name="l12"></a></span><span class=cF2>//4) Edit and remove file header and tail</span><span class=cF0>
|
||
|
<a name="l13"></a></span><span class=cF2>//5) Text find-and-replace "=0A=" with "". (Doesn't seem necessary anmore.)</span><span class=cF0>
|
||
|
<a name="l14"></a></span><span class=cF2>//6) Run PCIDevFileGen(). (Doesn't seem necessary anmore.)</span><span class=cF0>
|
||
|
<a name="l15"></a>
|
||
|
<a name="l16"></a></span><span class=cF2>public U0 PCIDevFileGen()</span><span class=cF0>
|
||
|
<a name="l17"></a></span><span class=cF2>{</span><span class=cF0>
|
||
|
<a name="l18"></a></span><span class=cF2> Bool first=TRUE,del=FALSE,del2=FALSE,cont=FALSE;</span><span class=cF0>
|
||
|
<a name="l19"></a></span><span class=cF2> CDoc *doc=DocRead(PCI_DEV_FILE,</span><span class=cF0>
|
||
|
<a name="l20"></a> </span><span class=cF2>DOCF_PLAIN_TEXT|DOCF_DBL_DOLLARS|DOCF_NO_CURSOR);</span><span class=cF0>
|
||
|
<a name="l21"></a></span><span class=cF2> CDocEntry *doc_e=doc->head.next,*doc_e2;</span><span class=cF0>
|
||
|
<a name="l22"></a></span><span class=cF2> while (doc_e!=doc) {</span><span class=cF0>
|
||
|
<a name="l23"></a></span><span class=cF2> doc_e2=doc_e->next;</span><span class=cF0>
|
||
|
<a name="l24"></a></span><span class=cF2> if (first) {</span><span class=cF0>
|
||
|
<a name="l25"></a></span><span class=cF2> if (doc_e->type_u8==DOCT_TEXT) {</span><span class=cF0>
|
||
|
<a name="l26"></a> </span><span class=cF2>if (doc_e->tag[0]==';')</span><span class=cF0>
|
||
|
<a name="l27"></a> </span><span class=cF2> del=TRUE;</span><span class=cF0>
|
||
|
<a name="l28"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l29"></a></span><span class=cF2> first=FALSE;</span><span class=cF0>
|
||
|
<a name="l30"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l31"></a></span><span class=cF2> if (doc_e->type_u8==DOCT_TEXT && doc_e->tag[StrLen(doc_e->tag)-1]=='=' &&</span><span class=cF0>
|
||
|
<a name="l32"></a> </span><span class=cF2> doc_e2->type_u8==DOCT_NEW_LINE) {</span><span class=cF0>
|
||
|
<a name="l33"></a></span><span class=cF2> doc_e->tag[StrLen(doc_e->tag)-1]=CH_SPACE;</span><span class=cF0>
|
||
|
<a name="l34"></a></span><span class=cF2> cont=TRUE;</span><span class=cF0>
|
||
|
<a name="l35"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l36"></a></span><span class=cF2> del2=del;</span><span class=cF0>
|
||
|
<a name="l37"></a></span><span class=cF2> if (doc_e->type_u8==DOCT_NEW_LINE) {</span><span class=cF0>
|
||
|
<a name="l38"></a></span><span class=cF2> first=TRUE;</span><span class=cF0>
|
||
|
<a name="l39"></a></span><span class=cF2> del2=FALSE;</span><span class=cF0>
|
||
|
<a name="l40"></a></span><span class=cF2> if (cont) {</span><span class=cF0>
|
||
|
<a name="l41"></a> </span><span class=cF2>del=TRUE;</span><span class=cF0>
|
||
|
<a name="l42"></a> </span><span class=cF2>cont=FALSE;</span><span class=cF0>
|
||
|
<a name="l43"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l44"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l45"></a></span><span class=cF2> if (del)</span><span class=cF0>
|
||
|
<a name="l46"></a></span><span class=cF2> DocEntryDel(doc,doc_e);</span><span class=cF0>
|
||
|
<a name="l47"></a></span><span class=cF2> del=del2;</span><span class=cF0>
|
||
|
<a name="l48"></a></span><span class=cF2> doc_e=doc_e2;</span><span class=cF0>
|
||
|
<a name="l49"></a></span><span class=cF2> }</span><span class=cF0>
|
||
|
<a name="l50"></a></span><span class=cF2> DocWrite(doc);</span><span class=cF0>
|
||
|
<a name="l51"></a></span><span class=cF2>}</span><span class=cF0>
|
||
|
<a name="l52"></a></span><span class=cF2>****/</span><span class=cF0>
|
||
|
<a name="l53"></a>
|
||
|
<a name="l54"></a></span><span class=cF2>//</span><a href="/Wb/Misc/PCIDevices.DD.HTML#l1"><span class=cF4>::/Misc/PCIDevices.DD</span></a><span class=cF0>
|
||
|
<a name="l55"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PCILookUpSingle</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>I64</span><span class=cF0> m,</span><span class=cF9>I64</span><span class=cF0> d,</span><span class=cF1>U8</span><span class=cF0> **_vendor,</span><span class=cF1>U8</span><span class=cF0> **_dev)
|
||
|
<a name="l56"></a>{
|
||
|
<a name="l57"></a> </span><span class=cF1>Bool</span><span class=cF0> first=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l58"></a> </span><span class=cF1>U8</span><span class=cF0> buf[8],*vendor=</span><span class=cF3>NULL</span><span class=cF0>,*</span><span class=cFB>dev</span><span class=cF0>=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l59"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->head.next;
|
||
|
<a name="l60"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l61"></a> </span><span class=cF1>if</span><span class=cF0> (first) {
|
||
|
<a name="l62"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TEXT</span><span class=cF0> && doc_e->tag[0]!=</span><span class=cF6>';'</span><span class=cF0> &&
|
||
|
<a name="l63"></a> </span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>doc_e->tag</span><span class=cF7>)</span><span class=cF0>>=4) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l64"></a> buf[0](</span><span class=cF9>U16</span><span class=cF0>)=</span><span class=cF6>'0x'</span><span class=cF0>;
|
||
|
<a name="l65"></a> buf[2](</span><span class=cF9>U32</span><span class=cF0>)=doc_e->tag(</span><span class=cF9>U32</span><span class=cF0> *)[0];
|
||
|
<a name="l66"></a> buf[6]=0;
|
||
|
<a name="l67"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>buf</span><span class=cF7>)</span><span class=cF0>==m) {
|
||
|
<a name="l68"></a> doc_e=doc_e->next->next;
|
||
|
<a name="l69"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TEXT</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l70"></a> vendor=</span><span class=cF5>AStrNew</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l71"></a> first=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l72"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l73"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l74"></a> }
|
||
|
<a name="l75"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l76"></a> first=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l77"></a> }
|
||
|
<a name="l78"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_NEW_LINE</span><span class=cF0>)
|
||
|
<a name="l79"></a> first=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l80"></a> doc_e=doc_e->next;
|
||
|
<a name="l81"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l82"></a>
|
||
|
<a name="l83"></a> </span><span class=cF1>if</span><span class=cF0> (vendor) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l84"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) {
|
||
|
<a name="l85"></a> </span><span class=cF1>if</span><span class=cF0> (first) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l86"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TAB</span><span class=cF0>) {
|
||
|
<a name="l87"></a> doc_e=doc_e->next;
|
||
|
<a name="l88"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TEXT</span><span class=cF0> && </span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>doc_e->tag</span><span class=cF7>)</span><span class=cF0>>=4) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l89"></a> buf[0](</span><span class=cF9>U16</span><span class=cF0>)=</span><span class=cF6>'0x'</span><span class=cF0>;
|
||
|
<a name="l90"></a> buf[2](</span><span class=cF9>U32</span><span class=cF0>)=doc_e->tag(</span><span class=cF9>U32</span><span class=cF0> *)[0];
|
||
|
<a name="l91"></a> buf[6]=0;
|
||
|
<a name="l92"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>buf</span><span class=cF7>)</span><span class=cF0>==d) {
|
||
|
<a name="l93"></a> doc_e=doc_e->next->next;
|
||
|
<a name="l94"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TEXT</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l95"></a> </span><span class=cFB>dev</span><span class=cF0>=</span><span class=cF5>AStrNew</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l96"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l97"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l98"></a> }
|
||
|
<a name="l99"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l100"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l101"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l102"></a> first=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l103"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l104"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_NEW_LINE</span><span class=cF0>)
|
||
|
<a name="l105"></a> first=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l106"></a> doc_e=doc_e->next;
|
||
|
<a name="l107"></a> }
|
||
|
<a name="l108"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l109"></a>
|
||
|
<a name="l110"></a> </span><span class=cF1>if</span><span class=cF0> (vendor)
|
||
|
<a name="l111"></a> *_vendor=vendor;
|
||
|
<a name="l112"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l113"></a> *_vendor=</span><span class=cF5>AStrNew</span><span class=cF0>(</span><span class=cF6>"Unknown"</span><span class=cF0>);
|
||
|
<a name="l114"></a>
|
||
|
<a name="l115"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>dev</span><span class=cF0>)
|
||
|
<a name="l116"></a> *_dev=</span><span class=cFB>dev</span><span class=cF0>;
|
||
|
<a name="l117"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l118"></a> *_dev=</span><span class=cF5>AStrNew</span><span class=cF0>(</span><span class=cF6>"Unknown"</span><span class=cF0>);
|
||
|
<a name="l119"></a>}
|
||
|
<a name="l120"></a>
|
||
|
<a name="l121"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PCILookUpDevs</span><span class=cF0>()
|
||
|
<a name="l122"></a>{
|
||
|
<a name="l123"></a> </span><span class=cF9>CPCIDev</span><span class=cF0> *tmppci;
|
||
|
<a name="l124"></a> </span><span class=cF9>I64</span><span class=cF0> w1,w2,b,d,f,timeout=32*8*2;
|
||
|
<a name="l125"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc;
|
||
|
<a name="l126"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>dev</span><span class=cF0>.pci_head.next!=&</span><span class=cFB>dev</span><span class=cF0>.pci_head)
|
||
|
<a name="l127"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l128"></a> doc=</span><span class=cF5>DocRead</span><span class=cF0>(</span><span class=cF3>PCI_DEV_FILE</span><span class=cF0>,</span><span class=cF3>DOCF_PLAIN_TEXT</span><span class=cF0>|</span><span class=cF3>DOCF_NO_CURSOR</span><span class=cF0>);
|
||
|
<a name="l129"></a> </span><span class=cF1>for</span><span class=cF0> (b=0;b<</span><span class=cFB>sys_pci_busses</span><span class=cF0>;b++)
|
||
|
<a name="l130"></a> </span><span class=cF1>for</span><span class=cF0> (d=0;d<32;d++)
|
||
|
<a name="l131"></a> </span><span class=cF1>for</span><span class=cF0> (f=0;f<8;f++) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l132"></a> w1=</span><span class=cF5>PCIReadU16</span><span class=cF0>(b,d,f,0);
|
||
|
<a name="l133"></a> </span><span class=cF1>if</span><span class=cF0> (w1!=0xFFFF) {
|
||
|
<a name="l134"></a> tmppci=</span><span class=cF5>ACAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CPCIDev</span><span class=cF7>)</span><span class=cF0>);
|
||
|
<a name="l135"></a> tmppci->bus=b;
|
||
|
<a name="l136"></a> tmppci-></span><span class=cFB>dev</span><span class=cF0>=d;
|
||
|
<a name="l137"></a> tmppci->fun=f;
|
||
|
<a name="l138"></a> tmppci->vendor=w1;
|
||
|
<a name="l139"></a> tmppci->dev_id=w2=</span><span class=cF5>PCIReadU16</span><span class=cF0>(b,d,f,2);
|
||
|
<a name="l140"></a> tmppci->sub_code=</span><span class=cF5>PCIReadU8</span><span class=cF0>(b,d,f,0xA);
|
||
|
<a name="l141"></a> tmppci->base_code=</span><span class=cF5>PCIReadU8</span><span class=cF0>(b,d,f,0xB);
|
||
|
<a name="l142"></a> </span><span class=cF5>PCILookUpSingle</span><span class=cF0>(doc,w1,w2,&tmppci->vendor_str,&tmppci->dev_id_str);
|
||
|
<a name="l143"></a> </span><span class=cF5>QueIns</span><span class=cF0>(tmppci,</span><span class=cFB>dev</span><span class=cF0>.pci_head.last);
|
||
|
<a name="l144"></a> timeout=32*8*2;
|
||
|
<a name="l145"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>sys_pci_busses</span><span class=cF0>==256 && --timeout<=0)
|
||
|
<a name="l146"></a> </span><span class=cF1>goto</span><span class=cF0> lud_done;
|
||
|
<a name="l147"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l148"></a>lud_done:
|
||
|
<a name="l149"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
||
|
<a name="l150"></a>}
|
||
|
<a name="l151"></a>
|
||
|
<a name="l152"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PCIRep</span><span class=cF0>()
|
||
|
<a name="l153"></a>{</span><span class=cF2>//Report description of PCI devices.</span><span class=cF0>
|
||
|
<a name="l154"></a> </span><span class=cF9>CPCIDev</span><span class=cF0> *tmppci;
|
||
|
<a name="l155"></a> </span><span class=cF6>"PCI Busses:%d\n"</span><span class=cF0>,</span><span class=cFB>sys_pci_busses</span><span class=cF0>;
|
||
|
<a name="l156"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>FileFind</span><span class=cF7>(</span><span class=cF3>PCI_DEV_FILE</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l157"></a> </span><span class=cF6>"You don't have the PCI device file.\n"</span><span class=cF0>;
|
||
|
<a name="l158"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l159"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l160"></a> </span><span class=cF5>PCILookUpDevs</span><span class=cF0>;
|
||
|
<a name="l161"></a> tmppci=</span><span class=cFB>dev</span><span class=cF0>.pci_head.next;
|
||
|
<a name="l162"></a> </span><span class=cF1>while</span><span class=cF0> (tmppci!=&</span><span class=cFB>dev</span><span class=cF0>.pci_head) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l163"></a> </span><span class=cF6>"%02X:%02X:%01X %02X%02X $GREEN$%s $CYAN$%s$FG$\n"</span><span class=cF0>,
|
||
|
<a name="l164"></a> tmppci->bus,tmppci-></span><span class=cFB>dev</span><span class=cF0>,tmppci->fun,
|
||
|
<a name="l165"></a> tmppci->base_code,tmppci->sub_code,
|
||
|
<a name="l166"></a> tmppci->vendor_str,tmppci->dev_id_str;
|
||
|
<a name="l167"></a> tmppci=tmppci->next;
|
||
|
<a name="l168"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l169"></a>}
|
||
|
<a name="l170"></a>
|
||
|
<a name="l171"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Info;Memory/Info"</span><span class=cF0>
|
||
|
<a name="l172"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>MemBIOSRep</span><span class=cF0>()
|
||
|
<a name="l173"></a>{</span><span class=cF2>//Report the memory ranges reported by the BIOS at boot.</span><span class=cF0>
|
||
|
<a name="l174"></a> </span><span class=cF9>U16</span><span class=cF0> *m01=</span><span class=cFD>MEM_E801</span><span class=cF0>;
|
||
|
<a name="l175"></a> </span><span class=cF9>CMemE820</span><span class=cF0> *m20=</span><span class=cFD>MEM_E820</span><span class=cF0>;
|
||
|
<a name="l176"></a> </span><span class=cF9>CMemRange</span><span class=cF0> *tmpmr;
|
||
|
<a name="l177"></a> </span><span class=cF6>"Standard Addresses\n"</span><span class=cF0>
|
||
|
<a name="l178"></a> </span><span class=cF6>"000A0000-000BFFFF VGA\n"</span><span class=cF0>
|
||
|
<a name="l179"></a> </span><span class=cF6>"FEE00000-FEE00FFF See $LK,\"APIC\",A=\"MN:LAPIC_BASE\"$\n\n"</span><span class=cF0>
|
||
|
<a name="l180"></a> </span><span class=cF6>"32 Bit Device Mem\n"</span><span class=cF0>;
|
||
|
<a name="l181"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF5>LBts</span><span class=cF7>(</span><span class=cF0>&</span><span class=cFB>sys_semas</span><span class=cF0>[</span><span class=cF3>SEMA_DEV_MEM</span><span class=cF0>],0</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l182"></a> </span><span class=cF5>Yield</span><span class=cF0>;
|
||
|
<a name="l183"></a> tmpmr=</span><span class=cFB>dev</span><span class=cF0>.mem32_head.next;
|
||
|
<a name="l184"></a> </span><span class=cF1>while</span><span class=cF0> (tmpmr!=&</span><span class=cFB>dev</span><span class=cF0>.mem32_head) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l185"></a> </span><span class=cF6>"%02X:%016X-%016X\n"</span><span class=cF0>,
|
||
|
<a name="l186"></a> tmpmr->type,tmpmr->base,tmpmr->base+tmpmr->size-1;
|
||
|
<a name="l187"></a> tmpmr=tmpmr->next;
|
||
|
<a name="l188"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l189"></a> </span><span class=cF5>LBtr</span><span class=cF0>(&</span><span class=cFB>sys_semas</span><span class=cF0>[</span><span class=cF3>SEMA_DEV_MEM</span><span class=cF0>],0);
|
||
|
<a name="l190"></a>
|
||
|
<a name="l191"></a> </span><span class=cF6>"\nBIOS Memory Report 15:E801\n"</span><span class=cF0>
|
||
|
<a name="l192"></a> </span><span class=cF6>"01:0000000000000000-%016X\n"</span><span class=cF0>,0x100000+m01[0]<<10-1;
|
||
|
<a name="l193"></a> </span><span class=cF6>"01:0000000001000000-%016X\n"</span><span class=cF0>,</span><span class=cF3>SYS_16MEG_AREA_LIMIT</span><span class=cF0>+m01[1]<<16-1;
|
||
|
<a name="l194"></a>
|
||
|
<a name="l195"></a> </span><span class=cF1>if</span><span class=cF0> (m20->type) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l196"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
|
||
|
<a name="l197"></a> </span><span class=cF6>"BIOS Memory Report 15:E820\n"</span><span class=cF0>;
|
||
|
<a name="l198"></a> </span><span class=cF1>while</span><span class=cF0> (m20->type) {
|
||
|
<a name="l199"></a> </span><span class=cF6>"%02X:%016X-%016X\n"</span><span class=cF0>,m20->type,m20->base,m20->base+m20->len-1;
|
||
|
<a name="l200"></a> m20++;
|
||
|
<a name="l201"></a> }
|
||
|
<a name="l202"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l203"></a>}
|
||
|
<a name="l204"></a>
|
||
|
<a name="l205"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>MemPageRep</span><span class=cF0>()
|
||
|
<a name="l206"></a>{</span><span class=cF2>//Page Table Report.</span><span class=cF0>
|
||
|
<a name="l207"></a> </span><span class=cF6>"MAPPED\t :%010X with "</span><span class=cF0>,</span><span class=cFB>mem_mapped_space</span><span class=cF0>;
|
||
|
<a name="l208"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&</span><span class=cFB>mem_page_size</span><span class=cF0>,30</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l209"></a> </span><span class=cF6>"$RED$1GIG$FG$ pages\n"</span><span class=cF0>;
|
||
|
<a name="l210"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l211"></a> </span><span class=cF6>"$RED$2MEG$FG$ pages\n"</span><span class=cF0>;
|
||
|
<a name="l212"></a> </span><span class=cF6>"PML2\t :%010X 2MEG :%08X\n"</span><span class=cF0>,
|
||
|
<a name="l213"></a> *</span><span class=cFD>MEM_PML2</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *),*</span><span class=cFD>MEM_2MEG_NUM</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *);
|
||
|
<a name="l214"></a> </span><span class=cF6>"PML3\t :%010X 1GIG :%08X\n"</span><span class=cF0>,
|
||
|
<a name="l215"></a> *</span><span class=cFD>MEM_PML3</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *),*</span><span class=cFD>MEM_1GIG_NUM</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *);
|
||
|
<a name="l216"></a> </span><span class=cF6>"PML4\t :%010X 512GIG:%08X\n"</span><span class=cF0>,
|
||
|
<a name="l217"></a> *</span><span class=cFD>MEM_PML4</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *),*</span><span class=cFD>MEM_512GIG_NUM</span><span class=cF0>(</span><span class=cF9>U64</span><span class=cF0> *);
|
||
|
<a name="l218"></a> </span><span class=cF6>"FIXED_AREA:%010X\n"</span><span class=cF0>,</span><span class=cF3>SYS_FIXED_AREA</span><span class=cF0>;
|
||
|
<a name="l219"></a> </span><span class=cF6>"HEAP_BASE :%010X\nHEAP_LIMIT:%010X\n"</span><span class=cF0>,</span><span class=cFB>mem_heap_base</span><span class=cF0>,</span><span class=cFB>mem_heap_limit</span><span class=cF0>;
|
||
|
<a name="l220"></a>}
|
||
|
</span></pre></body>
|
||
|
</html>
|