-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 60888 b: refs/heads/master c: 317b3c2 h: refs/heads/master v: v3
- Loading branch information
Antonino A. Daplas
authored and
Linus Torvalds
committed
Jul 17, 2007
1 parent
d5ef974
commit cb26909
Showing
28 changed files
with
178 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 10eb2659cc6059d0c4de2e2c66d1534091519f56 | ||
refs/heads/master: 317b3c2167f5326a7de30a1abe50c9897da7a0e3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-$(CONFIG_FB) += fbdev.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* arch/i386/video/fbdev.c - i386 Framebuffer | ||
* | ||
* Copyright (C) 2007 Antonino Daplas <adaplas@gmail.com> | ||
* | ||
* 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 | ||
* for more details. | ||
* | ||
*/ | ||
#include <linux/fb.h> | ||
#include <linux/pci.h> | ||
|
||
int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
struct device *device; | ||
struct pci_dev *pci_dev = NULL; | ||
struct resource *res = NULL; | ||
int retval = 0; | ||
|
||
device = info->device; | ||
|
||
if (device) | ||
pci_dev = to_pci_dev(device); | ||
|
||
if (pci_dev) | ||
res = &pci_dev->resource[PCI_ROM_RESOURCE]; | ||
|
||
if (res && res->flags & IORESOURCE_ROM_SHADOW) | ||
retval = 1; | ||
|
||
return retval; | ||
} | ||
EXPORT_SYMBOL(fb_is_primary_device); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/device.h> | ||
|
||
/* Caching is off in the I/O space quadrant by design. */ | ||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fb.h> | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
static inline int fb_is_primary_device(struct fb_info *info) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif /* _ASM_FB_H_ */ |
Oops, something went wrong.