<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Idwer, thanks for the info,<br>
<br>
How come it's different with:<br>
80 81 82 83<br>
<pre wrap="">80: 10 00 <b>07 34 </b>01 08 3c 00 91 02 1c 00 00 00 00 00
change this to pci_write_config16(PCI_DEV(0, 0x1f, 0), 0x82, 0x<b>3407</b>);
It's reversing backward,
</pre>
<br>
On 31/10/2016 7:35 AM, Idwer Vollering wrote:<br>
</div>
<blockquote
cite="mid:CAPp9OrmV1GhhUPdE-MaFUDmHa2HuUjZopaigfgxfmERjihKMOA@mail.gmail.com"
type="cite">
<pre wrap="">2016-10-31 0:18 GMT+01:00 Riko Ho <a class="moz-txt-link-rfc2396E" href="mailto:antonius.riko@gmail.com"><antonius.riko@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Idwer,
80 81 82 83 84
80: 10 00 07 34 <b>01 08 3c 00</b> 91 02 1c 00 00 00 00 00
</pre>
</blockquote>
<pre wrap="">0x84 starts here: ^^</pre>
</blockquote>
it's going forward, which way is the right one ? I'll have a
read of that link may be 32bits and 16bits causing it...? I
misunderstand it I reckon...<br>
<blockquote
cite="mid:CAPp9OrmV1GhhUPdE-MaFUDmHa2HuUjZopaigfgxfmERjihKMOA@mail.gmail.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">
isn't it :
pci_write_config32(PCI_DEV(0, 0x1f, 0), 0x84, 0x00073401);
?
</pre>
</blockquote>
<pre wrap="">
The byte ordering has to do with endianness, see this webpage:
<a class="moz-txt-link-freetext" href="https://docs.oracle.com/cd/E26505_01/html/E27000/hwovr-66.html">https://docs.oracle.com/cd/E26505_01/html/E27000/hwovr-66.html</a>
</pre>
<blockquote type="cite">
<pre wrap="">
(correct me if I'm wrong)
change this to pci_write_config32(PCI_DEV(0, 0x1f, 0), 0x84,<b> 0x003c0801</b>);
--
/*===
Kind regards,
Riko Ho
===*/
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<p><br>
</p>
<div class="moz-signature">-- <br>
<b>/*===<br>
Kind regards,<br>
Riko Ho<br>
===*/
</b></div>
</body>
</html>