mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
7c7e6c8924
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them unconditionally. Some 8250 serial drivers support MMIO only use, so fence only the parts requiring I/O ports and print an error message if a device can't be supported with the current configuration. Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Arnd Bergmann <arnd@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
18 lines
392 B
C
18 lines
392 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* 8250 PCI library header file.
|
|
*
|
|
* Copyright (C) 2001 Russell King, All Rights Reserved.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct pci_dev;
|
|
|
|
struct uart_8250_port;
|
|
|
|
int serial8250_pci_setup_port(struct pci_dev *dev, struct uart_8250_port *port, u8 bar,
|
|
unsigned int offset, int regshift);
|
|
|
|
int serial_8250_warn_need_ioport(struct pci_dev *dev);
|