Skip to contentSkip to conversation

sparc: copy exported sparc64 specific header files to asm-sparc

PATCH New Sam Ravnborg 1 participant 1 message Jun 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: copy exported sparc64 specific header files to asm-sparc

Copy was done using the following simple script:

set -e
SPARC64="h display7seg.h envctrl.h psrcompat.h pstate.h uctx.h utrap.h watchdog.h" for FILE in ${SPARC64}; do
if [ -f asm-sparc/$FILE ]; then
echo $FILE exist in asm-sparc
fi
cat asm-sparc64/$FILE > asm-sparc/$FILE
printf "#include <asm-sparc/$FILE>\n" > asm-sparc64/$FILE
done

The name of the copied files are added to asm-sparc/Kbuild to keep "make headers_check" functional.

---
 include/asm-sparc/Kbuild          |    7 +++
 include/asm-sparc/display7seg.h   |   79 ++++++++++++++++++++++++++++
 include/asm-sparc/envctrl.h       |  103 ++++++++++++++++++++++++++++++++++++
 include/asm-sparc/psrcompat.h     |   45 ++++++++++++++++
 include/asm-sparc/pstate.h        |   91 ++++++++++++++++++++++++++++++++
 include/asm-sparc/uctx.h          |   71 +++++++++++++++++++++++++
 include/asm-sparc/utrap.h         |   51 ++++++++++++++++++
 include/asm-sparc/watchdog.h      |   31 +++++++++++
 include/asm-sparc64/display7seg.h |   80 +----------------------------
 include/asm-sparc64/envctrl.h     |  104 +------------------------------------
 include/asm-sparc64/psrcompat.h   |   46 +----------------
 include/asm-sparc64/pstate.h      |   92 +--------------------------------
 include/asm-sparc64/uctx.h        |   72 +-------------------------
 include/asm-sparc64/utrap.h       |   52 +------------------
 include/asm-sparc64/watchdog.h    |   32 +-----------
 15 files changed, 485 insertions(+), 471 deletions(-)
 create mode 100644 include/asm-sparc/display7seg.h
 create mode 100644 include/asm-sparc/envctrl.h
 create mode 100644 include/asm-sparc/psrcompat.h
 create mode 100644 include/asm-sparc/pstate.h
 create mode 100644 include/asm-sparc/uctx.h
 create mode 100644 include/asm-sparc/utrap.h
 create mode 100644 include/asm-sparc/watchdog.h
include/asm-sparc/Kbuild +7 -0
index 6712237..c843248 100644
@@ -3,11 +3,18 @@ include include/asm-generic/Kbuild.asm
 header-y += apc.h
 header-y += asi.h
 header-y += bpp.h
+header-y += display7seg.h
+header-y += envctrl.h
 header-y += jsflash.h
 header-y += openpromio.h
+header-y += psrcompat.h
+header-y += pstate.h
 header-y += reg.h
 header-y += traps.h
+header-y += uctx.h
+header-y += utrap.h
 header-y += vfc_ioctls.h
+header-y += watchdog.h
 
 unifdef-y += fbio.h
 unifdef-y += perfctr.h
include/asm-sparc/display7seg.h new file +79 -0

79 lines not on this page · raw message

include/asm-sparc/envctrl.h new file +103 -0

103 lines not on this page · raw message

include/asm-sparc/psrcompat.h new file +45 -0

45 lines not on this page · raw message

include/asm-sparc/pstate.h new file +91 -0

91 lines not on this page · raw message

include/asm-sparc/uctx.h new file +71 -0

71 lines not on this page · raw message

include/asm-sparc/utrap.h new file +51 -0

51 lines not on this page · raw message

include/asm-sparc/watchdog.h new file +31 -0
new file mode 100644
index 0000000..5baf2d3
@@ -0,0 +1,31 @@
+/*
+ *
+ * watchdog - Driver interface for the hardware watchdog timers
+ * present on Sun Microsystems boardsets
+ *
+ * Copyright (c) 2000 Eric Brower <[email protected]>
+ *
+ */
+
+#ifndef _SPARC64_WATCHDOG_H
+#define _SPARC64_WATCHDOG_H
+
+#include <linux/watchdog.h>
+
+/* Solaris compatibility ioctls--
+ * Ref. <linux/watchdog.h> for standard linux watchdog ioctls
+ */
+#define WIOCSTART _IO (WATCHDOG_IOCTL_BASE, 10)		/* Start Timer		*/
+#define WIOCSTOP  _IO (WATCHDOG_IOCTL_BASE, 11)		/* Stop Timer		*/
+#define WIOCGSTAT _IOR(WATCHDOG_IOCTL_BASE, 12, int)/* Get Timer Status	*/
+
+/* Status flags from WIOCGSTAT ioctl
+ */
+#define WD_FREERUN	0x01	/* timer is running, interrupts disabled	*/
+#define WD_EXPIRED	0x02	/* timer has expired						*/
+#define WD_RUNNING	0x04	/* timer is running, interrupts enabled		*/
+#define WD_STOPPED	0x08	/* timer has not been started				*/
+#define WD_SERVICED 0x10	/* timer interrupt was serviced				*/
+
+#endif /* ifndef _SPARC64_WATCHDOG_H */
+
include/asm-sparc64/display7seg.h +1 -79

80 lines not on this page · raw message

include/asm-sparc64/envctrl.h +1 -103

104 lines not on this page · raw message

include/asm-sparc64/psrcompat.h +1 -45

46 lines not on this page · raw message

include/asm-sparc64/pstate.h +1 -91

92 lines not on this page · raw message

include/asm-sparc64/uctx.h +1 -71

72 lines not on this page · raw message

include/asm-sparc64/utrap.h +1 -51

52 lines not on this page · raw message

include/asm-sparc64/watchdog.h +1 -31
index 5baf2d3..b0f2857 100644
@@ -1,31 +1 @@
-/*
- *
- * watchdog - Driver interface for the hardware watchdog timers
- * present on Sun Microsystems boardsets
- *
- * Copyright (c) 2000 Eric Brower <[email protected]>
- *
- */
-
-#ifndef _SPARC64_WATCHDOG_H
-#define _SPARC64_WATCHDOG_H
-
-#include <linux/watchdog.h>
-
-/* Solaris compatibility ioctls--
- * Ref. <linux/watchdog.h> for standard linux watchdog ioctls
- */
-#define WIOCSTART _IO (WATCHDOG_IOCTL_BASE, 10)		/* Start Timer		*/
-#define WIOCSTOP  _IO (WATCHDOG_IOCTL_BASE, 11)		/* Stop Timer		*/
-#define WIOCGSTAT _IOR(WATCHDOG_IOCTL_BASE, 12, int)/* Get Timer Status	*/
-
-/* Status flags from WIOCGSTAT ioctl
- */
-#define WD_FREERUN	0x01	/* timer is running, interrupts disabled	*/
-#define WD_EXPIRED	0x02	/* timer has expired						*/
-#define WD_RUNNING	0x04	/* timer is running, interrupts enabled		*/
-#define WD_STOPPED	0x08	/* timer has not been started				*/
-#define WD_SERVICED 0x10	/* timer interrupt was serviced				*/
-
-#endif /* ifndef _SPARC64_WATCHDOG_H */
-
+#include <asm-sparc/watchdog.h>
Signature · 1 line
1.5.4.1.143.ge7e51