Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4ffc21e2
Commit
4ffc21e2
authored
Nov 13, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbgen is gone and now we have cfbcursor.c
parent
83f7182b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
76 deletions
+27
-76
drivers/video/Makefile
drivers/video/Makefile
+2
-2
drivers/video/cfbcursor.c
drivers/video/cfbcursor.c
+4
-35
drivers/video/console/fbcon-accel.c
drivers/video/console/fbcon-accel.c
+0
-36
drivers/video/fbmem.c
drivers/video/fbmem.c
+21
-3
No files found.
drivers/video/Makefile
View file @
4ffc21e2
...
...
@@ -5,7 +5,7 @@
# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
export-objs
:=
fbmem.o fbcmap.o fb
gen.o fbmon.o modedb
.o cfbfillrect.o
\
export-objs
:=
fbmem.o fbcmap.o fb
mon.o modedb.o cfbcursor
.o cfbfillrect.o
\
cfbcopyarea.o cfbimgblt.o cyber2000fb.o
# Each configuration option enables a list of files.
...
...
@@ -13,7 +13,7 @@ export-objs := fbmem.o fbcmap.o fbgen.o fbmon.o modedb.o cfbfillrect.o \
obj-$(CONFIG_VT)
+=
console/
# Add fbmon.o back into obj-$(CONFIG_FB) in 2.5.x
obj-$(CONFIG_FB)
+=
fbmem.o fbcmap.o modedb.o
fbgen
.o
obj-$(CONFIG_FB)
+=
fbmem.o fbcmap.o modedb.o
cfbcursor
.o
# Only include macmodes.o if we have FB support and are PPC
ifeq
($(CONFIG_FB),y)
obj-$(CONFIG_PPC)
+=
macmodes.o
...
...
drivers/video/
fbgen
.c
→
drivers/video/
cfbcursor
.c
View file @
4ffc21e2
/*
* linux/drivers/video/
fbgen.c -- Generic routines
for frame buffer devices
* linux/drivers/video/
cfbcursor.c -- Generic software cursor
for frame buffer devices
*
* Created 3 Jan 1998 by Geert Uytterhoeven
*
* 2001 - Documented with DocBook
* - Brad Douglas <brad@neruo.com>
* Created 14 Nov 2002 by James Simmons
*
* 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
...
...
@@ -61,36 +58,8 @@ int cfb_cursor(struct fb_info *info, struct fbcursor *cursor)
return
0
;
}
int
fb_blank
(
int
blank
,
struct
fb_info
*
info
)
{
struct
fb_cmap
cmap
;
u16
black
[
16
];
if
(
info
->
fbops
->
fb_blank
&&
!
info
->
fbops
->
fb_blank
(
blank
,
info
))
return
0
;
if
(
blank
)
{
memset
(
black
,
0
,
16
*
sizeof
(
u16
));
cmap
.
red
=
black
;
cmap
.
green
=
black
;
cmap
.
blue
=
black
;
cmap
.
transp
=
NULL
;
cmap
.
start
=
0
;
cmap
.
len
=
16
;
fb_set_cmap
(
&
cmap
,
1
,
info
);
}
else
{
if
(
info
->
cmap
.
len
)
fb_set_cmap
(
&
info
->
cmap
,
1
,
info
);
else
{
int
size
=
info
->
var
.
bits_per_pixel
==
16
?
64
:
256
;
fb_set_cmap
(
fb_default_cmap
(
size
),
1
,
info
);
}
}
return
0
;
}
/* generic frame buffer operations */
EXPORT_SYMBOL
(
cfb_cursor
);
EXPORT_SYMBOL
(
fb_blank
);
MODULE_AUTHOR
(
"James Simmons <jsimmons@users.sf.net>"
);
MODULE_DESCRIPTION
(
"Generic software cursor"
);
MODULE_LICENSE
(
"GPL"
);
drivers/video/console/fbcon-accel.c
View file @
4ffc21e2
...
...
@@ -249,42 +249,6 @@ void fbcon_accel_cursor(struct display *p, int flags, int xx, int yy)
if
(
info
->
fbops
->
fb_cursor
)
info
->
fbops
->
fb_cursor
(
info
,
&
cursor
);
else
{
int
i
,
size
=
((
cursor
.
size
.
x
+
7
)
/
8
)
*
cursor
.
size
.
y
;
struct
fb_image
image
;
static
char
data
[
64
];
image
.
bg_color
=
cursor
.
index
->
entry
[
0
];
image
.
fg_color
=
cursor
.
index
->
entry
[
1
];
if
(
cursor
.
enable
)
{
switch
(
cursor
.
rop
)
{
case
ROP_XOR
:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
(
cursor
.
image
[
i
]
&
cursor
.
mask
[
i
])
^
cursor
.
dest
[
i
];
break
;
case
ROP_COPY
:
default:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
cursor
.
image
[
i
]
&
cursor
.
mask
[
i
];
break
;
}
}
else
memcpy
(
data
,
&
cursor
.
dest
,
size
);
image
.
dx
=
cursor
.
pos
.
x
;
image
.
dy
=
cursor
.
pos
.
y
;
image
.
width
=
cursor
.
size
.
x
;
image
.
height
=
cursor
.
size
.
y
;
image
.
depth
=
cursor
.
depth
;
image
.
data
=
data
;
if
(
info
->
fbops
->
fb_imageblit
)
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
}
}
/*
...
...
drivers/video/fbmem.c
View file @
4ffc21e2
...
...
@@ -522,6 +522,26 @@ int fb_set_var(struct fb_var_screeninfo *var, struct fb_info *info)
return
0
;
}
int
fb_blank
(
int
blank
,
struct
fb_info
*
info
)
{
u16
black
[
info
->
cmap
.
len
];
struct
fb_cmap
cmap
;
if
(
info
->
fbops
->
fb_blank
&&
!
info
->
fbops
->
fb_blank
(
blank
,
info
))
return
0
;
if
(
blank
)
{
memset
(
black
,
0
,
info
->
cmap
.
len
*
sizeof
(
u16
));
cmap
.
red
=
cmap
.
green
=
cmap
.
blue
=
black
;
if
(
info
->
cmap
.
transp
)
cmap
.
transp
=
black
;
cmap
.
start
=
info
->
cmap
.
start
;
cmap
.
len
=
info
->
cmap
.
len
;
}
else
cmap
=
info
->
cmap
;
return
fb_set_cmap
(
&
cmap
,
1
,
info
);
}
static
int
fb_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
...
...
@@ -600,9 +620,7 @@ fb_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
return
0
;
#endif
/* CONFIG_FRAMEBUFFER_CONSOLE */
case
FBIOBLANK
:
if
(
fb
->
fb_blank
==
NULL
)
return
-
EINVAL
;
return
fb
->
fb_blank
(
arg
,
info
);
return
fb_blank
(
arg
,
info
);
default:
if
(
fb
->
fb_ioctl
==
NULL
)
return
-
EINVAL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment