Bladeren bron

x86: unify asm/io.h: IO_SPACE_LIMIT

Impact: Cleanup (trivial unification)

Move common define IO_SPACE_LIMIT from <asm/io_*.h> to <asm/io.h>.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Jeremy Fitzhardinge 16 jaren geleden
bovenliggende
commit
a448720ca3
3 gewijzigde bestanden met toevoegingen van 1 en 4 verwijderingen
  1. 1 0
      arch/x86/include/asm/io.h
  2. 0 2
      arch/x86/include/asm/io_32.h
  3. 0 2
      arch/x86/include/asm/io_64.h

+ 1 - 0
arch/x86/include/asm/io.h

@@ -106,5 +106,6 @@ extern void __iomem *early_memremap(unsigned long offset, unsigned long size);
 extern void early_iounmap(void __iomem *addr, unsigned long size);
 extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys);
 
+#define IO_SPACE_LIMIT 0xffff
 
 #endif /* _ASM_X86_IO_H */

+ 0 - 2
arch/x86/include/asm/io_32.h

@@ -37,8 +37,6 @@
   *  - Arnaldo Carvalho de Melo <acme@conectiva.com.br>
   */
 
-#define IO_SPACE_LIMIT 0xffff
-
 #define XQUAD_PORTIO_BASE 0xfe400000
 #define XQUAD_PORTIO_QUAD 0x40000  /* 256k per quad. */
 

+ 0 - 2
arch/x86/include/asm/io_64.h

@@ -136,8 +136,6 @@ __OUTS(b)
 __OUTS(w)
 __OUTS(l)
 
-#define IO_SPACE_LIMIT 0xffff
-
 #if defined(__KERNEL__) && defined(__x86_64__)
 
 #include <linux/vmalloc.h>