ns16550: enable Pericom controller support
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:15:15 +0000 (17:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:15:15 +0000 (17:15 +0200)
commit3130079f5140afa09093e51dc85b5d1246fab001
treec5f2a1f63fd94dd32a98ca88c386e35181cd8101
parentcc955d2f08d28873f83c3c30e02421aa91c64966
ns16550: enable Pericom controller support

Other than the controllers supported so far, multiple port Pericom
boards map all of their ports via BAR0, which requires a number of
adjustments: Instead of tracking "max_bars" we now flag whether all
ports use BAR0, and whether to expect a port-I/O or MMIO resource. As
a result pci_uart_config() now gets handed a port index, which it then
maps into a BAR index or an offset into BAR0 depending on the bar0
flag.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/drivers/char/ns16550.c
xen/include/xen/pci_ids.h