<div dir="ltr"><div><p style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:19.5px">Hello,</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:19.5px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:19.5px">I tried with IOCTL, but problem was I couldn't  open driver file with CreateFile method because I couldn't find path ( something like this   \\\\.\\PCI#VEN_8086&DEV_0F0E&SUBSYS_72708086&REV_0C#3&11583659&0&F5#{badc33d6-be37-4372-b90e-bbf2d986b0eb}  ). For UART I have iaiouart.sys driver and I want to know if this driver return SerCx framework. I find for Windows 8 UART driver ( uart16550pc.sys ), but  I don't know if I need some kind of bridge driver between two drivers.    </p><br></div><div class="gmail_extra"><div><span style="white-space:pre-wrap;font-size:12.8000001907349px"><font face="verdana, sans-serif">Best regards</font></span><font face="verdana, sans-serif">, <br><br></font></div><div><font face="verdana, sans-serif" color="#000000">Anteja <br><br></font></div><div class="gmail_quote">>On Tue, Jun 30, 2015 at 7:33 AM, Anteja Vuk Macek <span dir="ltr"><<a href="mailto:anteja.vm@dolotron.com" target="_blank">anteja.vm@dolotron.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">>Hi Ivan, <br>><br>>Thank you for advice, but I want two COM ports.  I found  LPC_DEV.ASL ACPI_table  in Vlv2TbltDeviceRefCodePkg where was ASL code for the device IUR3  HID - PNP0501.  <div><br></div><div><div>Device(IUR3) // Internal UART</div><div>{</div><div>  Name(_HID, EISAID("PNP0501"))</div><div><br></div><div>  Name(_UID,1)</div><div><br></div><div>  // Status Method for internal UART</div><div><br></div><div>  Method(_STA,0,Serialized)</div><div>  {</div><div>    // Only report resources to the OS if internal UART is</div><div>    // not set to Disabled in BIOS Setup.</div><div><br></div><div>    If(LEqual(USEL,0))</div><div>    {</div><div>      If(LEqual(PU1E,1))</div><div>      {</div><div>        Store(1,UI3E) // Enable IRQ3 for UART</div><div>        Store(1,UI4E) // Enable IRQ4 for UART</div><div>        Store(1,C1EN) // Enable UART</div><div>        Return(0x000F)</div><div>      }</div><div>    }</div><div><br></div><div>    Return(0x0000)</div><div>  }</div><div><br></div><div>  // Disable Method for internal UART</div><div><br></div><div>  Method(_DIS,0,Serialized)</div><div>  {</div><div>    Store(0,UI3E)</div><div>    Store(0,UI4E)</div><div>    Store(0,C1EN)</div><div>  }</div><div><br></div><div>  // Current Resource Setting Method for internal UART</div><div><br></div><div>  Method(_CRS,0,Serialized)</div><div>  {</div><div>    // Create the Buffer that stores the Resources to</div><div>    // be returned.</div><div><br></div><div>    Name(BUF0,ResourceTemplate()</div><div>    {</div><div>      IO(Decode16,0x03F8,0x03F8,0x01,0x08)</div><div>      IRQNoFlags() {3}</div><div>    })</div><div><br></div><div>    Name(BUF1,ResourceTemplate()</div><div>    {</div><div>      IO(Decode16,0x03F8,0x03F8,0x01,0x08)</div><div>      IRQNoFlags() {4}</div><div>    })</div><div><br></div><div>    If (LLessEqual(SRID, 0x04))</div><div>    {</div><div>      Return(BUF0)</div><div>    } Else</div><div>    {</div><div>      Return(BUF1)</div><div>    }</div><div>  }</div><div>}</div><div><br></div><div>I want to make second IUR device.  I don't know value of variables : SEL, PU1E, UI3E, UI4E and C1EN  and where it was defined.  Also,  I would like to know what I need to change to write ASL code for second IURx device. </div><div class="gmail_extra">Best regards,<br><br>Anteja<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">>On Thu, Jun 25, 2015 at 11:16 AM, Rouzanov, Ivan <span dir="ltr"><<a href="mailto:ivan.rouzanov@intel.com" target="_blank">ivan.rouzanov@intel.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">>Anteja,<br>
><br>>As far as I understand we have 2 UARTs but only one follows legacy COM-interface and the other one does not so Windows inbox driver serial.sys does not work with it so you only have one COM port.<br>>(Basically COMx is just a symbolic link serial.sys creates to point to its device object, so if it does not service a device like in the case of the second HSUART, then it is not a COM-port).<br></span><span class="">
>f you need to use COM-port and have ability to debug, I'd suggest to use Ethernet for debugging and free up COM1 for your other needs.<br>
><br>>I hope this helps.<br>>Best regards,<br></span><div><div class="h5">
>van Rouzanov.<br>
><br>
><br>
><br>>Message: 3<br>>Date: Wed, 24 Jun 2015 10:06:02 +0200<br>>From: Anteja Vuk Macek <<a href="mailto:anteja.vm@dolotron.com" target="_blank">anteja.vm@dolotron.com</a>><br>>To: EDK2 email list <<a href="mailto:edk2-devel@lists.sourceforge.net" target="_blank">edk2-devel@lists.sourceforge.net</a>>,  MinnowMax<br>>       Community <<a href="mailto:elinux-minnowboard@lists.elinux.org" target="_blank">elinux-minnowboard@lists.elinux.org</a>><br>>Subject: [MinnowBoard] UART and COM ports problem<br>>Message-ID:<br>>       <<a href="mailto:CAOPTR2BQg0h5KT8dogxr60t3%2B%2Bi4tCHPFchyo6qWqKYkqGWZhw@mail.gmail.com" target="_blank">CAOPTR2BQg0h5KT8dogxr60t3++i4tCHPFchyo6qWqKYkqGWZhw@mail.gmail.com</a>><br>>Content-Type: text/plain; charset="utf-8"<br>
><br>>Hi all,<br>
><br>>On MinnowMax I work  on Windows 8.1 with UART.<br>> In BIOS Setup I enable UART.   In  LSS & SCC Configuration menu in BIOS<br>>Setup I enable : LSS HSUART #1 Support  , LSS HSUART #1 FlowCtrl  , LSS HSUART #2 Support  , and LSS HSUART #2 FlowCtrl .  But I don't know if I need to in BIOS Setup in Miscellaneous configuration  set  UART >interface on  Super IO UART, for now I set  Internal UART for UART interface.<br>>I install Intel driver (<br>
><a href="https://downloadcenter.intel.com/download/24228/Intel-embedded-drivers-for-Windows-8-1-32-bit-" rel="noreferrer" target="_blank">https://downloadcenter.intel.com/download/24228/Intel-embedded-drivers-for-Windows-8-1-32-bit-</a><br>>)<br>>and I got two UART controllers.<br>
><br>>Problem :<br>>Problem is that I have only one COM port ( COM1)  and it is for debugging.  I looking in inf (iaiouart.inf ) file of driver for which device is , and I find APCI/INT33BC device.  The COM1 is device<br>>APCI/PNP0501 .<br>
><br>>What I need to do to get COM 2 device ?  I saw  BaseSerialPortLib 16550 module in  MdeModulePkg/Library for what it is this module.  Need I add some module for UART or Serial port in fdf (PlatformPkg.fdf ) file to get<br>>COM2 device, or add  COM2  in ACPI_table? Where I can find ACPI_table in source of firmware?<br>
><br>>Best regards,<br>><br>>Anteja<br>
>
</div></div></blockquote></div><div><br></div>
</div></div></div>
</blockquote></div><div><br></div>
</div></div>