[Cbe-oss-dev] [PATCH] Export <asm/ps3av.h> for userspace.
David Woodhouse
dwmw2 at infradead.org
Sat Mar 31 13:19:12 EST 2007
The ps3videomode.c utility seems to need definitions from ps3av.h, but
that file doesn't exist in userspace. I'm not sure how this could ever
have worked. Export it, and elide some kernel-only parts.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
diff --git a/include/asm-powerpc/Kbuild b/include/asm-powerpc/Kbuild
index 4869513..0f6c60b 100644
--- a/include/asm-powerpc/Kbuild
+++ b/include/asm-powerpc/Kbuild
@@ -34,6 +34,7 @@ unifdef-y += elf.h
unifdef-y += nvram.h
unifdef-y += param.h
unifdef-y += posix_types.h
+unifdef-y += ps3av.h
unifdef-y += ptrace.h
unifdef-y += seccomp.h
unifdef-y += signal.h
diff --git a/include/asm-powerpc/ps3av.h b/include/asm-powerpc/ps3av.h
index 1366fc5..6e34bcf 100644
--- a/include/asm-powerpc/ps3av.h
+++ b/include/asm-powerpc/ps3av.h
@@ -664,6 +664,8 @@ struct ps3av_pkt_avb_param {
#define PS3AV_STATUS_UNSUPPORTED_HDMI_MODE 0x0012 /* unsupported hdmi mode */
#define PS3AV_STATUS_NO_SYNC_HEAD 0x0013 /* sync head failed */
+#ifdef __KERNEL__
+
extern void ps3av_set_hdr(u32, u16, struct ps3av_send_hdr *);
extern int ps3av_do_pkt(u32, u16, size_t, struct ps3av_send_hdr *);
@@ -716,4 +718,5 @@ extern int ps3av_audio_mute(int);
extern int ps3av_dev_open(void);
extern int ps3av_dev_close(void);
+#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_PS3AV_H_ */
--
dwmw2
More information about the cbe-oss-dev
mailing list