Re: [RFC PATCH] m68k: GENERIC_IOMAP support (take #2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 25 Feb 2007, Kars de Jong wrote:
I don't think the CONFIG_ATARI_ROM_ISA definitions are complete yet, the
32-bit variants are missing.

Indeed.

-#if !defined(CONFIG_ISA) && !defined(CONFIG_PCI) && !defined(CONFIG_ATARI_ROM_ISA) && defined(CONFIG_HP300)
+#if !defined(CONFIG_ISA) && !defined(CONFIG_PCI) && !defined(CONFIG_ATARI_ROM_ISA)
 /*
- * We need to define dummy functions otherwise drivers/serial/8250.c doesn't link
+ * We need to define dummy functions for GENERIC_IOMAP support.
  */
-#define inb(port)        0xff
-#define inb_p(port)      0xff
-#define outb(val,port)   do { } while (0)
-#define outb_p(val,port) do { } while (0)
+#define inb(port)          0xff
+#define inb_p(port)        0xff
+#define outb(val,port)     do { } while (0)
+#define outb_p(val,port)   do { } while (0)
+#define inw(port)          0xffff
+#define outw(val,port)     do { } while (0)
+#define inl(port)          0xffffffffUL
+#define outl(val,port)     do { } while (0)
+
+#define insb(port,buf,nr)  do { } while (0)
+#define outsb(port,buf,nr) do { } while (0)
+#define insw(port,buf,nr)  do { } while (0)
+#define outsw(port,buf,nr) do { } while (0)
+#define insl(port,buf,nr)  do { } while (0)
+#define outsl(port,buf,nr) do { } while (0)

Hmm, the dummy cause problems with the usage of e.g. outb_p() in
de600_put_command(), but I don't know we really want to fix those...

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux