aboutsummaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/hardwall.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-10-12 15:11:08 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-10-12 15:11:08 -0400
commitd20f2f83b2374c1cee042981cb45493a3e06b6a5 (patch)
tree9b9350f65c23d0166aaa314559c37fdff0b0d62a /arch/tile/include/asm/hardwall.h
parentccff9b1db693062b0a9c9070f4304deb47ef215c (diff)
parentdf842f79f0e2aed9092a73f611f41f03630a3823 (diff)
Merge tag 'tags/disintegrate-tile-20121009' into for-linus
UAPI Disintegration 2012-10-09
Diffstat (limited to 'arch/tile/include/asm/hardwall.h')
-rw-r--r--arch/tile/include/asm/hardwall.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/arch/tile/include/asm/hardwall.h b/arch/tile/include/asm/hardwall.h
index 47514a58d68..2f572b6b7bc 100644
--- a/arch/tile/include/asm/hardwall.h
+++ b/arch/tile/include/asm/hardwall.h
@@ -14,40 +14,11 @@
* Provide methods for access control of per-cpu resources like
* UDN, IDN, or IPI.
*/
-
#ifndef _ASM_TILE_HARDWALL_H
#define _ASM_TILE_HARDWALL_H
-#include <arch/chip.h>
-#include <linux/ioctl.h>
-
-#define HARDWALL_IOCTL_BASE 0xa2
-
-/*
- * The HARDWALL_CREATE() ioctl is a macro with a "size" argument.
- * The resulting ioctl value is passed to the kernel in conjunction
- * with a pointer to a standard kernel bitmask of cpus.
- * For network resources (UDN or IDN) the bitmask must physically
- * represent a rectangular configuration on the chip.
- * The "size" is the number of bytes of cpu mask data.
- */
-#define _HARDWALL_CREATE 1
-#define HARDWALL_CREATE(size) \
- _IOC(_IOC_READ, HARDWALL_IOCTL_BASE, _HARDWALL_CREATE, (size))
-
-#define _HARDWALL_ACTIVATE 2
-#define HARDWALL_ACTIVATE \
- _IO(HARDWALL_IOCTL_BASE, _HARDWALL_ACTIVATE)
-
-#define _HARDWALL_DEACTIVATE 3
-#define HARDWALL_DEACTIVATE \
- _IO(HARDWALL_IOCTL_BASE, _HARDWALL_DEACTIVATE)
-
-#define _HARDWALL_GET_ID 4
-#define HARDWALL_GET_ID \
- _IO(HARDWALL_IOCTL_BASE, _HARDWALL_GET_ID)
+#include <uapi/asm/hardwall.h>
-#ifdef __KERNEL__
/* /proc hooks for hardwall. */
struct proc_dir_entry;
#ifdef CONFIG_HARDWALL
@@ -56,6 +27,4 @@ int proc_pid_hardwall(struct task_struct *task, char *buffer);
#else
static inline void proc_tile_hardwall_init(struct proc_dir_entry *root) {}
#endif
-#endif
-
#endif /* _ASM_TILE_HARDWALL_H */