Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
9e6c67fd
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e6c67fd
编写于
11月 12, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
上级
8225ccba
9ffb83bc
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
141 addition
and
118 deletion
+141
-118
arch/powerpc/kernel/ioctl32.c
arch/powerpc/kernel/ioctl32.c
+0
-4
arch/sparc64/kernel/ioctl32.c
arch/sparc64/kernel/ioctl32.c
+0
-92
drivers/sbus/char/rtc.c
drivers/sbus/char/rtc.c
+0
-22
drivers/video/bw2.c
drivers/video/bw2.c
+3
-0
drivers/video/cg14.c
drivers/video/cg14.c
+3
-0
drivers/video/cg3.c
drivers/video/cg3.c
+3
-0
drivers/video/cg6.c
drivers/video/cg6.c
+3
-0
drivers/video/ffb.c
drivers/video/ffb.c
+3
-0
drivers/video/leo.c
drivers/video/leo.c
+3
-0
drivers/video/p9100.c
drivers/video/p9100.c
+3
-0
drivers/video/sbuslib.c
drivers/video/sbuslib.c
+107
-0
drivers/video/sbuslib.h
drivers/video/sbuslib.h
+2
-0
drivers/video/tcx.c
drivers/video/tcx.c
+3
-0
include/linux/compat_ioctl.h
include/linux/compat_ioctl.h
+8
-0
未找到文件。
arch/powerpc/kernel/ioctl32.c
浏览文件 @
9e6c67fd
...
@@ -40,10 +40,6 @@ IOCTL_TABLE_START
...
@@ -40,10 +40,6 @@ IOCTL_TABLE_START
#define DECLARES
#define DECLARES
#include "compat_ioctl.c"
#include "compat_ioctl.c"
/* Little p (/dev/rtc, /dev/envctrl, etc.) */
COMPATIBLE_IOCTL
(
_IOR
(
'p'
,
20
,
int
[
7
]))
/* RTCGET */
COMPATIBLE_IOCTL
(
_IOW
(
'p'
,
21
,
int
[
7
]))
/* RTCSET */
IOCTL_TABLE_END
IOCTL_TABLE_END
int
ioctl_table_size
=
ARRAY_SIZE
(
ioctl_start
);
int
ioctl_table_size
=
ARRAY_SIZE
(
ioctl_start
);
arch/sparc64/kernel/ioctl32.c
浏览文件 @
9e6c67fd
...
@@ -12,86 +12,10 @@
...
@@ -12,86 +12,10 @@
#define INCLUDES
#define INCLUDES
#include "compat_ioctl.c"
#include "compat_ioctl.c"
#include <linux/syscalls.h>
#include <linux/syscalls.h>
#include <asm/fbio.h>
/* Use this to get at 32-bit user passed pointers.
* See sys_sparc32.c for description about it.
*/
#define A(__x) compat_ptr(__x)
#define CODE
#define CODE
#include "compat_ioctl.c"
#include "compat_ioctl.c"
struct
fbcmap32
{
int
index
;
/* first element (0 origin) */
int
count
;
u32
red
;
u32
green
;
u32
blue
;
};
#define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
#define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
static
int
fbiogetputcmap
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
fbcmap32
__user
*
argp
=
(
void
__user
*
)
arg
;
struct
fbcmap
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
u32
addr
;
int
ret
;
ret
=
copy_in_user
(
p
,
argp
,
2
*
sizeof
(
int
));
ret
|=
get_user
(
addr
,
&
argp
->
red
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
red
);
ret
|=
get_user
(
addr
,
&
argp
->
green
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
green
);
ret
|=
get_user
(
addr
,
&
argp
->
blue
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
blue
);
if
(
ret
)
return
-
EFAULT
;
return
sys_ioctl
(
fd
,
(
cmd
==
FBIOPUTCMAP32
)
?
FBIOPUTCMAP_SPARC
:
FBIOGETCMAP_SPARC
,
(
unsigned
long
)
p
);
}
struct
fbcursor32
{
short
set
;
/* what to set, choose from the list above */
short
enable
;
/* cursor on/off */
struct
fbcurpos
pos
;
/* cursor position */
struct
fbcurpos
hot
;
/* cursor hot spot */
struct
fbcmap32
cmap
;
/* color map info */
struct
fbcurpos
size
;
/* cursor bit map size */
u32
image
;
/* cursor image bits */
u32
mask
;
/* cursor mask bits */
};
#define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
#define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
static
int
fbiogscursor
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
fbcursor
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
struct
fbcursor32
__user
*
argp
=
(
void
__user
*
)
arg
;
compat_uptr_t
addr
;
int
ret
;
ret
=
copy_in_user
(
p
,
argp
,
2
*
sizeof
(
short
)
+
2
*
sizeof
(
struct
fbcurpos
));
ret
|=
copy_in_user
(
&
p
->
size
,
&
argp
->
size
,
sizeof
(
struct
fbcurpos
));
ret
|=
copy_in_user
(
&
p
->
cmap
,
&
argp
->
cmap
,
2
*
sizeof
(
int
));
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
red
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
red
);
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
green
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
green
);
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
blue
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
blue
);
ret
|=
get_user
(
addr
,
&
argp
->
mask
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
mask
);
ret
|=
get_user
(
addr
,
&
argp
->
image
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
image
);
if
(
ret
)
return
-
EFAULT
;
return
sys_ioctl
(
fd
,
FBIOSCURSOR
,
(
unsigned
long
)
p
);
}
#define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl)
#define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL((cmd),sys_ioctl)
#define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL },
#define HANDLE_IOCTL(cmd,handler) { (cmd), (ioctl_trans_handler_t)(handler), NULL },
#define IOCTL_TABLE_START \
#define IOCTL_TABLE_START \
...
@@ -103,22 +27,6 @@ IOCTL_TABLE_START
...
@@ -103,22 +27,6 @@ IOCTL_TABLE_START
#include <linux/compat_ioctl.h>
#include <linux/compat_ioctl.h>
#define DECLARES
#define DECLARES
#include "compat_ioctl.c"
#include "compat_ioctl.c"
COMPATIBLE_IOCTL
(
FBIOGTYPE
)
COMPATIBLE_IOCTL
(
FBIOSATTR
)
COMPATIBLE_IOCTL
(
FBIOGATTR
)
COMPATIBLE_IOCTL
(
FBIOSVIDEO
)
COMPATIBLE_IOCTL
(
FBIOGVIDEO
)
COMPATIBLE_IOCTL
(
FBIOGCURSOR32
)
/* This is not implemented yet. Later it should be converted... */
COMPATIBLE_IOCTL
(
FBIOSCURPOS
)
COMPATIBLE_IOCTL
(
FBIOGCURPOS
)
COMPATIBLE_IOCTL
(
FBIOGCURMAX
)
/* Little k */
/* Little v, the video4linux ioctls */
/* And these ioctls need translation */
/* Note SIOCRTMSG is no longer, so this is safe and * the user would have seen just an -EINVAL anyways. */
HANDLE_IOCTL
(
FBIOPUTCMAP32
,
fbiogetputcmap
)
HANDLE_IOCTL
(
FBIOGETCMAP32
,
fbiogetputcmap
)
HANDLE_IOCTL
(
FBIOSCURSOR32
,
fbiogscursor
)
#if 0
#if 0
HANDLE_IOCTL(RTC32_IRQP_READ, do_rtc_ioctl)
HANDLE_IOCTL(RTC32_IRQP_READ, do_rtc_ioctl)
HANDLE_IOCTL(RTC32_IRQP_SET, do_rtc_ioctl)
HANDLE_IOCTL(RTC32_IRQP_SET, do_rtc_ioctl)
...
...
drivers/sbus/char/rtc.c
浏览文件 @
9e6c67fd
...
@@ -210,27 +210,6 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -210,27 +210,6 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}
}
}
}
static
long
rtc_compat_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
rval
=
-
ENOIOCTLCMD
;
switch
(
cmd
)
{
/*
* These two are specific to this driver, the generic rtc ioctls
* are hanlded elsewhere.
*/
case
RTCGET
:
case
RTCSET
:
lock_kernel
();
rval
=
rtc_ioctl
(
file
->
f_dentry
->
d_inode
,
file
,
cmd
,
arg
);
unlock_kernel
();
break
;
}
return
rval
;
}
static
int
rtc_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
rtc_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
int
ret
;
int
ret
;
...
@@ -258,7 +237,6 @@ static struct file_operations rtc_fops = {
...
@@ -258,7 +237,6 @@ static struct file_operations rtc_fops = {
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
llseek
=
no_llseek
,
.
ioctl
=
rtc_ioctl
,
.
ioctl
=
rtc_ioctl
,
.
compat_ioctl
=
rtc_compat_ioctl
,
.
open
=
rtc_open
,
.
open
=
rtc_open
,
.
release
=
rtc_release
,
.
release
=
rtc_release
,
};
};
...
...
drivers/video/bw2.c
浏览文件 @
9e6c67fd
...
@@ -51,6 +51,9 @@ static struct fb_ops bw2_ops = {
...
@@ -51,6 +51,9 @@ static struct fb_ops bw2_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
bw2_mmap
,
.
fb_mmap
=
bw2_mmap
,
.
fb_ioctl
=
bw2_ioctl
,
.
fb_ioctl
=
bw2_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
/* OBio addresses for the bwtwo registers */
/* OBio addresses for the bwtwo registers */
...
...
drivers/video/cg14.c
浏览文件 @
9e6c67fd
...
@@ -49,6 +49,9 @@ static struct fb_ops cg14_ops = {
...
@@ -49,6 +49,9 @@ static struct fb_ops cg14_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
cg14_mmap
,
.
fb_mmap
=
cg14_mmap
,
.
fb_ioctl
=
cg14_ioctl
,
.
fb_ioctl
=
cg14_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
#define CG14_MCR_INTENABLE_SHIFT 7
#define CG14_MCR_INTENABLE_SHIFT 7
...
...
drivers/video/cg3.c
浏览文件 @
9e6c67fd
...
@@ -50,6 +50,9 @@ static struct fb_ops cg3_ops = {
...
@@ -50,6 +50,9 @@ static struct fb_ops cg3_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
cg3_mmap
,
.
fb_mmap
=
cg3_mmap
,
.
fb_ioctl
=
cg3_ioctl
,
.
fb_ioctl
=
cg3_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
...
...
drivers/video/cg6.c
浏览文件 @
9e6c67fd
...
@@ -54,6 +54,9 @@ static struct fb_ops cg6_ops = {
...
@@ -54,6 +54,9 @@ static struct fb_ops cg6_ops = {
.
fb_sync
=
cg6_sync
,
.
fb_sync
=
cg6_sync
,
.
fb_mmap
=
cg6_mmap
,
.
fb_mmap
=
cg6_mmap
,
.
fb_ioctl
=
cg6_ioctl
,
.
fb_ioctl
=
cg6_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
/* Offset of interesting structures in the OBIO space */
/* Offset of interesting structures in the OBIO space */
...
...
drivers/video/ffb.c
浏览文件 @
9e6c67fd
...
@@ -57,6 +57,9 @@ static struct fb_ops ffb_ops = {
...
@@ -57,6 +57,9 @@ static struct fb_ops ffb_ops = {
.
fb_sync
=
ffb_sync
,
.
fb_sync
=
ffb_sync
,
.
fb_mmap
=
ffb_mmap
,
.
fb_mmap
=
ffb_mmap
,
.
fb_ioctl
=
ffb_ioctl
,
.
fb_ioctl
=
ffb_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
/* Register layout and definitions */
/* Register layout and definitions */
...
...
drivers/video/leo.c
浏览文件 @
9e6c67fd
...
@@ -51,6 +51,9 @@ static struct fb_ops leo_ops = {
...
@@ -51,6 +51,9 @@ static struct fb_ops leo_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
leo_mmap
,
.
fb_mmap
=
leo_mmap
,
.
fb_ioctl
=
leo_ioctl
,
.
fb_ioctl
=
leo_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
#define LEO_OFF_LC_SS0_KRN 0x00200000UL
#define LEO_OFF_LC_SS0_KRN 0x00200000UL
...
...
drivers/video/p9100.c
浏览文件 @
9e6c67fd
...
@@ -48,6 +48,9 @@ static struct fb_ops p9100_ops = {
...
@@ -48,6 +48,9 @@ static struct fb_ops p9100_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
p9100_mmap
,
.
fb_mmap
=
p9100_mmap
,
.
fb_ioctl
=
p9100_ioctl
,
.
fb_ioctl
=
p9100_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
/* P9100 control registers */
/* P9100 control registers */
...
...
drivers/video/sbuslib.c
浏览文件 @
9e6c67fd
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
* Copyright (C) 2003 David S. Miller (davem@redhat.com)
* Copyright (C) 2003 David S. Miller (davem@redhat.com)
*/
*/
#include <linux/compat.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
...
@@ -182,3 +183,109 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
...
@@ -182,3 +183,109 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
};
};
}
}
EXPORT_SYMBOL
(
sbusfb_ioctl_helper
);
EXPORT_SYMBOL
(
sbusfb_ioctl_helper
);
#ifdef CONFIG_COMPAT
struct
fbcmap32
{
int
index
;
/* first element (0 origin) */
int
count
;
u32
red
;
u32
green
;
u32
blue
;
};
#define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
#define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
static
int
fbiogetputcmap
(
struct
file
*
file
,
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
fbcmap32
__user
*
argp
=
(
void
__user
*
)
arg
;
struct
fbcmap
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
u32
addr
;
int
ret
;
ret
=
copy_in_user
(
p
,
argp
,
2
*
sizeof
(
int
));
ret
|=
get_user
(
addr
,
&
argp
->
red
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
red
);
ret
|=
get_user
(
addr
,
&
argp
->
green
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
green
);
ret
|=
get_user
(
addr
,
&
argp
->
blue
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
blue
);
if
(
ret
)
return
-
EFAULT
;
return
info
->
fbops
->
fb_ioctl
(
file
->
f_dentry
->
d_inode
,
file
,
(
cmd
==
FBIOPUTCMAP32
)
?
FBIOPUTCMAP_SPARC
:
FBIOGETCMAP_SPARC
,
(
unsigned
long
)
p
,
info
);
}
struct
fbcursor32
{
short
set
;
/* what to set, choose from the list above */
short
enable
;
/* cursor on/off */
struct
fbcurpos
pos
;
/* cursor position */
struct
fbcurpos
hot
;
/* cursor hot spot */
struct
fbcmap32
cmap
;
/* color map info */
struct
fbcurpos
size
;
/* cursor bit map size */
u32
image
;
/* cursor image bits */
u32
mask
;
/* cursor mask bits */
};
#define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
#define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
static
int
fbiogscursor
(
struct
file
*
file
,
struct
fb_info
*
info
,
unsigned
long
arg
)
{
struct
fbcursor
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
struct
fbcursor32
__user
*
argp
=
(
void
__user
*
)
arg
;
compat_uptr_t
addr
;
int
ret
;
ret
=
copy_in_user
(
p
,
argp
,
2
*
sizeof
(
short
)
+
2
*
sizeof
(
struct
fbcurpos
));
ret
|=
copy_in_user
(
&
p
->
size
,
&
argp
->
size
,
sizeof
(
struct
fbcurpos
));
ret
|=
copy_in_user
(
&
p
->
cmap
,
&
argp
->
cmap
,
2
*
sizeof
(
int
));
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
red
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
red
);
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
green
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
green
);
ret
|=
get_user
(
addr
,
&
argp
->
cmap
.
blue
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
cmap
.
blue
);
ret
|=
get_user
(
addr
,
&
argp
->
mask
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
mask
);
ret
|=
get_user
(
addr
,
&
argp
->
image
);
ret
|=
put_user
(
compat_ptr
(
addr
),
&
p
->
image
);
if
(
ret
)
return
-
EFAULT
;
return
info
->
fbops
->
fb_ioctl
(
file
->
f_dentry
->
d_inode
,
file
,
FBIOSCURSOR
,
(
unsigned
long
)
p
,
info
);
}
long
sbusfb_compat_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
,
struct
fb_info
*
info
)
{
switch
(
cmd
)
{
case
FBIOGTYPE
:
case
FBIOSATTR
:
case
FBIOGATTR
:
case
FBIOSVIDEO
:
case
FBIOGVIDEO
:
case
FBIOGCURSOR32
:
/* This is not implemented yet.
Later it should be converted... */
case
FBIOSCURPOS
:
case
FBIOGCURPOS
:
case
FBIOGCURMAX
:
return
info
->
fbops
->
fb_ioctl
(
file
->
f_dentry
->
d_inode
,
file
,
cmd
,
arg
,
info
);
case
FBIOPUTCMAP32
:
return
fbiogetputcmap
(
file
,
info
,
cmd
,
arg
);
case
FBIOGETCMAP32
:
return
fbiogetputcmap
(
file
,
info
,
cmd
,
arg
);
case
FBIOSCURSOR32
:
return
fbiogscursor
(
file
,
info
,
arg
);
default:
return
-
ENOIOCTLCMD
;
}
}
EXPORT_SYMBOL
(
sbusfb_compat_ioctl
);
#endif
drivers/video/sbuslib.h
浏览文件 @
9e6c67fd
...
@@ -20,5 +20,7 @@ extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
...
@@ -20,5 +20,7 @@ extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
int
sbusfb_ioctl_helper
(
unsigned
long
cmd
,
unsigned
long
arg
,
int
sbusfb_ioctl_helper
(
unsigned
long
cmd
,
unsigned
long
arg
,
struct
fb_info
*
info
,
struct
fb_info
*
info
,
int
type
,
int
fb_depth
,
unsigned
long
fb_size
);
int
type
,
int
fb_depth
,
unsigned
long
fb_size
);
long
sbusfb_compat_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
,
struct
fb_info
*
info
);
#endif
/* _SBUSLIB_H */
#endif
/* _SBUSLIB_H */
drivers/video/tcx.c
浏览文件 @
9e6c67fd
...
@@ -52,6 +52,9 @@ static struct fb_ops tcx_ops = {
...
@@ -52,6 +52,9 @@ static struct fb_ops tcx_ops = {
.
fb_imageblit
=
cfb_imageblit
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_mmap
=
tcx_mmap
,
.
fb_mmap
=
tcx_mmap
,
.
fb_ioctl
=
tcx_ioctl
,
.
fb_ioctl
=
tcx_ioctl
,
#ifdef CONFIG_COMPAT
.
fb_compat_ioctl
=
sbusfb_compat_ioctl
,
#endif
};
};
/* THC definitions */
/* THC definitions */
...
...
include/linux/compat_ioctl.h
浏览文件 @
9e6c67fd
...
@@ -259,6 +259,14 @@ COMPATIBLE_IOCTL(RTC_RD_TIME)
...
@@ -259,6 +259,14 @@ COMPATIBLE_IOCTL(RTC_RD_TIME)
COMPATIBLE_IOCTL
(
RTC_SET_TIME
)
COMPATIBLE_IOCTL
(
RTC_SET_TIME
)
COMPATIBLE_IOCTL
(
RTC_WKALM_SET
)
COMPATIBLE_IOCTL
(
RTC_WKALM_SET
)
COMPATIBLE_IOCTL
(
RTC_WKALM_RD
)
COMPATIBLE_IOCTL
(
RTC_WKALM_RD
)
/*
* These two are only for the sbus rtc driver, but
* hwclock tries them on every rtc device first when
* running on sparc. On other architectures the entries
* are useless but harmless.
*/
COMPATIBLE_IOCTL
(
_IOR
(
'p'
,
20
,
int
[
7
]))
/* RTCGET */
COMPATIBLE_IOCTL
(
_IOW
(
'p'
,
21
,
int
[
7
]))
/* RTCSET */
/* Little m */
/* Little m */
COMPATIBLE_IOCTL
(
MTIOCTOP
)
COMPATIBLE_IOCTL
(
MTIOCTOP
)
/* Socket level stuff */
/* Socket level stuff */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录