Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
sparc
include
asm
fb.h
Go to the documentation of this file.
1
#ifndef _SPARC_FB_H_
2
#define _SPARC_FB_H_
3
#include <
linux/console.h
>
4
#include <linux/fb.h>
5
#include <linux/fs.h>
6
#include <asm/page.h>
7
#include <asm/prom.h>
8
9
static
inline
void
fb_pgprotect
(
struct
file
*
file
,
struct
vm_area_struct
*vma,
10
unsigned
long
off)
11
{
12
#ifdef CONFIG_SPARC64
13
vma->
vm_page_prot
=
pgprot_noncached
(vma->
vm_page_prot
);
14
#endif
15
}
16
17
static
inline
int
fb_is_primary_device(
struct
fb_info
*
info
)
18
{
19
struct
device
*
dev
= info->
device
;
20
struct
device_node
*
node
;
21
22
if
(
console_set_on_cmdline
)
23
return
0;
24
25
node = dev->
of_node
;
26
if
(node &&
27
node ==
of_console_device
)
28
return
1;
29
30
return
0;
31
}
32
33
#endif
/* _SPARC_FB_H_ */
Generated on Thu Jan 10 2013 12:49:34 for Linux Kernel by
1.8.2