summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>2004-04-13 04:28:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-13 04:28:56 -0700
commit76fff7dbcd13e7437f49db01b4807b34e8ccbb2d (patch)
tree33197bf6704e3070442de387ed638554d828ca85
parentb7c2214d20086ce345144d377b38a1002394ca44 (diff)
[PATCH] add asm-generic/hdreg.h
Use it on all archs which define ide_ioreg_t to unsigned long.
-rw-r--r--include/asm-alpha/hdreg.h13
-rw-r--r--include/asm-arm/hdreg.h14
-rw-r--r--include/asm-arm26/hdreg.h16
-rw-r--r--include/asm-generic/hdreg.h6
-rw-r--r--include/asm-mips/hdreg.h17
-rw-r--r--include/asm-parisc/hdreg.h7
-rw-r--r--include/asm-ppc/hdreg.h18
-rw-r--r--include/asm-ppc64/hdreg.h23
-rw-r--r--include/asm-sh/hdreg.h13
-rw-r--r--include/asm-sparc/hdreg.h14
-rw-r--r--include/asm-sparc64/hdreg.h14
11 files changed, 16 insertions, 139 deletions
diff --git a/include/asm-alpha/hdreg.h b/include/asm-alpha/hdreg.h
index 81d8a40802c3..7f7fd1af0af3 100644
--- a/include/asm-alpha/hdreg.h
+++ b/include/asm-alpha/hdreg.h
@@ -1,12 +1 @@
-/*
- * linux/include/asm-alpha/hdreg.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- */
-
-#ifndef __ASMalpha_HDREG_H
-#define __ASMalpha_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASMalpha_HDREG_H */
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-arm/hdreg.h b/include/asm-arm/hdreg.h
index 81bc05e16260..7f7fd1af0af3 100644
--- a/include/asm-arm/hdreg.h
+++ b/include/asm-arm/hdreg.h
@@ -1,13 +1 @@
-/*
- * linux/include/asm-arm/hdreg.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- */
-
-#ifndef __ASMARM_HDREG_H
-#define __ASMARM_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASMARM_HDREG_H */
-
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-arm26/hdreg.h b/include/asm-arm26/hdreg.h
index 32e338ce4883..7f7fd1af0af3 100644
--- a/include/asm-arm26/hdreg.h
+++ b/include/asm-arm26/hdreg.h
@@ -1,15 +1 @@
-/*
- * linux/include/asm-arm26/hdreg.h
- *
- * Used by include/linux/ide.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- */
-
-#ifndef __ASMARM_HDREG_H
-#define __ASMARM_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASMARM_HDREG_H */
-
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-generic/hdreg.h b/include/asm-generic/hdreg.h
new file mode 100644
index 000000000000..f6ecba25ccfb
--- /dev/null
+++ b/include/asm-generic/hdreg.h
@@ -0,0 +1,6 @@
+#ifndef __ASM_GENERIC_HDREG_H
+#define __ASM_GENERIC_HDREG_H
+
+typedef unsigned long ide_ioreg_t;
+
+#endif /* __ASM_GENERIC_HDREG_H */
diff --git a/include/asm-mips/hdreg.h b/include/asm-mips/hdreg.h
index 0a952a910637..7f7fd1af0af3 100644
--- a/include/asm-mips/hdreg.h
+++ b/include/asm-mips/hdreg.h
@@ -1,16 +1 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * This file contains the MIPS architecture specific IDE code.
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- * Copyright (C) 2001 Ralf Baechle
- */
-#ifndef _ASM_HDREG_H
-#define _ASM_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* _ASM_HDREG_H */
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-parisc/hdreg.h b/include/asm-parisc/hdreg.h
index f934c760bf0e..7f7fd1af0af3 100644
--- a/include/asm-parisc/hdreg.h
+++ b/include/asm-parisc/hdreg.h
@@ -1,6 +1 @@
-#ifndef _ASM_HDREG_H
-#define _ASM_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-ppc/hdreg.h b/include/asm-ppc/hdreg.h
index f616b43235b7..7f7fd1af0af3 100644
--- a/include/asm-ppc/hdreg.h
+++ b/include/asm-ppc/hdreg.h
@@ -1,17 +1 @@
-/*
- * include/asm-ppc/hdreg.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- */
-
-/*
- * This file contains the ppc architecture specific IDE code.
- */
-
-#ifndef __ASMPPC_HDREG_H
-#define __ASMPPC_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASMPPC_HDREG_H */
-
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-ppc64/hdreg.h b/include/asm-ppc64/hdreg.h
index 497596f2d157..7f7fd1af0af3 100644
--- a/include/asm-ppc64/hdreg.h
+++ b/include/asm-ppc64/hdreg.h
@@ -1,22 +1 @@
-/*
- * linux/include/asm-ppc/hdreg.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- */
-
-/*
- * This file contains the ppc architecture specific IDE code.
- */
-
-#ifndef __ASMPPC64_HDREG_H
-#define __ASMPPC64_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASMPPC64_HDREG_H */
-
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-sh/hdreg.h b/include/asm-sh/hdreg.h
index 9112275e05f8..7f7fd1af0af3 100644
--- a/include/asm-sh/hdreg.h
+++ b/include/asm-sh/hdreg.h
@@ -1,12 +1 @@
-/*
- * linux/include/asm-sh/hdreg.h
- *
- * Copyright (C) 1994-1996 Linus Torvalds & authors
- */
-
-#ifndef __ASM_SH_HDREG_H
-#define __ASM_SH_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __ASM_SH_HDREG_H */
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-sparc/hdreg.h b/include/asm-sparc/hdreg.h
index 8df7a4693fb6..7f7fd1af0af3 100644
--- a/include/asm-sparc/hdreg.h
+++ b/include/asm-sparc/hdreg.h
@@ -1,13 +1 @@
-/* $Id: hdreg.h,v 1.2 2000/12/05 00:56:36 anton Exp $
- * hdreg.h: SPARC PCI specific IDE glue.
- *
- * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
- * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
- */
-
-#ifndef __SPARC_HDREG_H
-#define __SPARC_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __SPARC_HDREG_H */
+#include <asm-generic/hdreg.h>
diff --git a/include/asm-sparc64/hdreg.h b/include/asm-sparc64/hdreg.h
index 29b7cfe6dd05..7f7fd1af0af3 100644
--- a/include/asm-sparc64/hdreg.h
+++ b/include/asm-sparc64/hdreg.h
@@ -1,13 +1 @@
-/* $Id: hdreg.h,v 1.1 1999/05/14 07:23:13 davem Exp $
- * hdreg.h: Ultra/PCI specific IDE glue.
- *
- * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
- * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
- */
-
-#ifndef __SPARC64_HDREG_H
-#define __SPARC64_HDREG_H
-
-typedef unsigned long ide_ioreg_t;
-
-#endif /* __SPARC64_HDREG_H */
+#include <asm-generic/hdreg.h>