CFLAGS-$(HAS_MEM_ACCESS) += -DHAS_MEM_ACCESS
CFLAGS-$(HAS_MEM_PAGING) += -DHAS_MEM_PAGING
CFLAGS-$(HAS_MEM_SHARING) += -DHAS_MEM_SHARING
-CFLAGS-$(HAS_IOPORTS) += -DHAS_IOPORTS
CFLAGS-$(HAS_PDX) += -DHAS_PDX
CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
static u8 ns_read_reg(struct ns16550 *uart, unsigned int reg)
{
void __iomem *addr = uart->remapped_io_base + (reg << uart->reg_shift);
-#ifdef HAS_IOPORTS
+#ifdef CONFIG_HAS_IOPORTS
if ( uart->remapped_io_base == NULL )
return inb(uart->io_base + reg);
#endif
static void ns_write_reg(struct ns16550 *uart, unsigned int reg, u8 c)
{
void __iomem *addr = uart->remapped_io_base + (reg << uart->reg_shift);
-#ifdef HAS_IOPORTS
+#ifdef CONFIG_HAS_IOPORTS
if ( uart->remapped_io_base == NULL )
return outb(c, uart->io_base + reg);
#endif
{
struct ns16550 *uart = port->uart;
-#ifdef HAS_IOPORTS
+#ifdef CONFIG_HAS_IOPORTS
/* I/O ports are distinguished by their size (16 bits). */
if ( uart->io_base >= 0x10000 )
#endif
static void __init ns16550_endboot(struct serial_port *port)
{
-#ifdef HAS_IOPORTS
+#ifdef CONFIG_HAS_IOPORTS
struct ns16550 *uart = port->uart;
int rv;
{
unsigned char status, scratch, scratch2, scratch3;
-#ifdef HAS_IOPORTS
+#ifdef CONFIG_HAS_IOPORTS
/*
* We can't poke MMIO UARTs until they get I/O remapped later. Assume that
* if we're getting MMIO UARTs, the arch code knows what it's doing.