Date: Tue, 10 Mar 1998 10:03:49 +0100 (MET)
From: Juergen Orschiedt <orschied@kassandra.zx.basf-ag.de>
Subject: L68K: patch: io.h breaks ide-code
To: linux-m68k@lists.linux-m68k.org
Sender: owner-linux-m68k@phil.uni-sb.de
Reply-To: juergen.orschiedt@zx.basf-ag.de

Sorry, my modification of include/asm/io.h breaks the ide code, 'cause it
redefines the inb/outb macros to access an ISA extender card.

Therefore I decided to go the way Arno already mentioned:
a definition which controls the inclusion of atari_isahw.h.

So if you need the inb/outb which supports the ISA adapter,
you have to include a

  CFLAGS_xxxx += -DI_NEED_THE_IO_KLUDGE

into the corresponding Makefile or into the source itself.


Juergen


*** linux/include/asm/io.h.orig	Mon Mar  9 23:44:01 1998
--- linux/include/asm/io.h	Mon Mar  9 23:47:36 1998
***************
*** 57,65 ****
  	return (void *) mm_ptov(address);
  }
  
! /* some fakes... */
  #ifdef CONFIG_ATARI
  #include <asm/atari_isahw.h>
  #endif
  
  /*
--- 57,67 ----
  	return (void *) mm_ptov(address);
  }
  
! /* aargh... */
! #ifdef I_NEED_THE_IO_KLUDGE
  #ifdef CONFIG_ATARI
  #include <asm/atari_isahw.h>
+ #endif
  #endif
  
  /*
*** linux/drivers/video/tsengfb.c.orig	Mon Mar  9 23:48:00 1998
--- linux/drivers/video/tsengfb.c	Mon Mar  9 23:48:30 1998
***************
*** 60,65 ****
--- 60,66 ----
  
  
  #define TSENGFB_DEBUG
+ #define I_NEED_THE_IO_KLUDGE
  
  #include <linux/config.h>
  #include <linux/module.h>


