|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [PATCH 1 of 3] xen: Automatically find serial port o
To: |
<konrad.wilk@xxxxxxxxxx> |
Subject: |
Re: [Xen-devel] Re: [PATCH 1 of 3] xen: Automatically find serial port on PCI/PCIe and AMT devices |
From: |
"Jan Beulich" <jbeulich@xxxxxxxxxx> |
Date: |
Fri, 08 Jul 2011 08:04:40 +0100 |
Cc: |
xen-devel@xxxxxxxxxxxxxxxxxxx, keir@xxxxxxx, Ian.Campbell@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx, George.Dunlap@xxxxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, James.McKenzie@xxxxxxxxxx, roger.cruz@xxxxxxxxxxxxxxxxxxx, tom.goetz@xxxxxxxxxxxxxxxxxxx |
Delivery-date: |
Fri, 08 Jul 2011 00:05:53 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
>>> Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> 07/07/11 6:36 PM >>> >On Thu, Jul 07, 2011 at 04:56:23PM +0100, Jan Beulich wrote: >> >>> On 07.07.11 at 15:59, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote: >> > + bar0 = pci_conf_read32 (b, d, f, PCI_BASE_ADDRESS_0); >> >> Why would a serial port only be allowed to be on the port specified >> with BAR0? E.g. if you have a serial card with multiple ports, multiple >> BARs could be candidates. >> >> Also, why would the first one found be it? > >Because that is usually COM1. You can still do com1=115200,8n1,magic >com2=115200,8n1,0xd900,0 to have both of them available.
But the handling here is being called for com1= and com2= equally. For something not just for somebody's special purposes, the index from the calling function should minimally be passed (and the BAR to look at adjusted accordingly).
Also I wonder why the token is "magic" rather than, say, "pci".
Jan
|
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Re: [PATCH 1 of 3] xen: Automatically find serial port on PCI/PCIe and AMT devices,
Jan Beulich <=
|
|
|
|
|