<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 29, 2017, at 8:27 PM, Tarl Neustaedter <<a href="mailto:tarl-b2@tarl.net" class="">tarl-b2@tarl.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    <div class="moz-cite-prefix">[re-send, copying the list. For
      whatever reason, it seems messages aren't getting the reply-to:
      header.]<br class="">
      <br class="">
      On 2017-Dec-29 03:58 , Jd Lyons wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:373F3B10-22DF-4A79-B863-D1BF760C5512@yahoo.com" class="">
      <div class="">
        <div class="">0 > " /pci/@e" open-dev to my-self  ok</div>
        <div class="">0 > my-self . 5fc5ac34  ok</div>
        <div class="">0 > my-parent . 5fc5abfc  ok</div>
        <div class="">0 > my-space . 0  ok <<---Seems my-space isn't
          returning a correct value?</div>
        <div class="">0 > </div>
        <div class=""><br class="">
        </div>
      </div>
    </blockquote>
    <pre wrap="" class="">That's the problem. It appears that simply open-dev and assigning
my-self isn't enough. my-space (and my-address and my-unit) aren't
getting set up, so all config-space accesses are going to do the wrong
thing (they'll go to device 0, which may or may not be the root).

In the Sun/Oracle version, select would properly set things up, it
appears no equivalent is available under openbios.

I think you'll have to further debug this by getting the FCode to be
pulled in at startup in place of the built-in vga fcode, rather than
trying to fiddle things this way.

</pre></div></div></blockquote><div>Interestingly enough, SLOF has a file called psi-device_10de_0141.fs</div><div><br class=""></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ *****************************************************************************</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * Copyright (c) <span style="color: #272ad8" class="">2004</span>, <span style="color: #272ad8" class="">2008</span> IBM Corporation</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * All rights reserved.</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * This program and the accompanying materials</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * are made available under the terms of the BSD License</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * which accompanies this distribution, and is available at</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">\ * http:</span>//<a href="http://www.opensource.org/licenses/bsd-license.php" class="">www.opensource.org/licenses/bsd-license.php</a></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ *</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ * Contributors:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ *     IBM Corporation - initial implementation</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ ****************************************************************************/</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">my-space pci-class-name type</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">my-space pci-device-generic-setup</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">pci-io-enable</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">pci-mem-enable</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="color: #272ad8" class="">30</span> config-l@  pci-find-fcode execute-rom-fcode</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">: check-display ( nodepath len -- <span style="color: #ba2da2" class="">true</span>|<span style="color: #ba2da2" class="">false</span> ) \ <span style="color: #ba2da2" class="">true</span> <span style="color: #ba2da2" class="">if</span> display found and <span style="color: #d12f1b" class="">"screen"</span> alias set</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">\ check <span style="color: #ba2da2" class="">if</span> display available, set screen alias</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="color: #272ad8" class="">2</span>dup find-node \ ( path len phandle|<span style="color: #272ad8" class="">0</span> ) find node</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">?dup IF</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   \ node found, get <span style="color: #d12f1b" class="">"display-type"</span> property</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   s<span style="color: #d12f1b" class="">" display-type"</span> rot get-property ( path len <span style="color: #ba2da2" class="">true</span>|propaddr proplen <span style="color: #272ad8" class="">0</span> )</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   <span style="color: #272ad8" class="">0</span>= IF</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      ( path len propaddr proplen ) \ property found, check <span style="color: #ba2da2" class="">if</span> the value is <span style="color: #3e1e81" class="">not</span> <span style="color: #d12f1b" class="">"NONE"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      s<span style="color: #d12f1b" class="">" NONE"</span> <span style="color: #272ad8" class="">0</span> char-cat ( path len propaddr proplen str strlen ) \ null-terminated NONE string</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      str= <span style="color: #272ad8" class="">0</span>= IF</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">         ( path len ) \ <span style="color: #d12f1b" class="">"display-type"</span> property is <span style="color: #3e1e81" class="">not</span> <span style="color: #d12f1b" class="">"NONE"</span> so we can set <span style="color: #d12f1b" class="">"screen"</span> alias</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">         s<span style="color: #d12f1b" class="">" screen"</span> <span style="color: #272ad8" class="">2</span>swap set-alias </div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">         <span style="color: #ba2da2" class="">true</span> ( <span style="color: #ba2da2" class="">true</span> ) \  <span style="color: #ba2da2" class="">return</span> <span style="color: #ba2da2" class="">true</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      ELSE</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">         <span style="color: #272ad8" class="">2</span>drop <span style="color: #ba2da2" class="">false</span> ( <span style="color: #ba2da2" class="">false</span> ) \ <span style="color: #ba2da2" class="">return</span> <span style="color: #ba2da2" class="">false</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      THEN</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   THEN</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">THEN</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">get-node node>path s<span style="color: #d12f1b" class="">" /NVDA,DISPLAY-A"</span> $cat check-display</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="color: #272ad8" class="">0</span>= IF</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   \ no display found on DISPLAY-A ... check DISPLAY-B</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   get-node node>path s<span style="color: #d12f1b" class="">" /NVDA,DISPLAY-B"</span> $cat check-display</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">   drop \ drop result </div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">THEN</div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">s<span style="color: #d12f1b" class="">" name"</span> get-my-property drop s<span style="color: #d12f1b" class="">"  ( "</span> type type s<span style="color: #d12f1b" class="">"  ) "</span> type cr</div></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div text="#000000" bgcolor="#FFFFFF" class="">
  </div>

-- <br class="">OpenBIOS                 <a href="http://openbios.org/" class="">http://openbios.org/</a><br class="">Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" class="">http://lists.openbios.org/mailman/listinfo</a><br class="">Free your System - May the Forth be with you</div></blockquote></div><br class=""></body></html>