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
nexedi
linux
Commits
54c9a72d
Commit
54c9a72d
authored
Dec 20, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged with Linus tree. Some conflicts to resolve.
parent
79232b12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
26 deletions
+46
-26
drivers/video/aty/atyfb_base.c
drivers/video/aty/atyfb_base.c
+7
-26
include/linux/fb.h
include/linux/fb.h
+2
-0
include/linux/pci_ids.h
include/linux/pci_ids.h
+37
-0
No files found.
drivers/video/aty/atyfb_base.c
View file @
54c9a72d
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
#ifdef __powerpc__
#ifdef __powerpc__
#include <asm/prom.h>
#include <asm/prom.h>
#include
<video/macmodes.h>
#include
"../macmodes.h"
#endif
#endif
#ifdef __sparc__
#ifdef __sparc__
#include <asm/pbm.h>
#include <asm/pbm.h>
...
@@ -84,9 +84,6 @@
...
@@ -84,9 +84,6 @@
#ifdef CONFIG_BOOTX_TEXT
#ifdef CONFIG_BOOTX_TEXT
#include <asm/btext.h>
#include <asm/btext.h>
#endif
#endif
#ifdef CONFIG_NVRAM
#include <linux/nvram.h>
#endif
#ifdef CONFIG_PMAC_BACKLIGHT
#ifdef CONFIG_PMAC_BACKLIGHT
#include <asm/backlight.h>
#include <asm/backlight.h>
#endif
#endif
...
@@ -226,14 +223,9 @@ static char *mode_option __initdata = NULL;
...
@@ -226,14 +223,9 @@ static char *mode_option __initdata = NULL;
#endif
#endif
#ifdef CONFIG_PPC
#ifdef CONFIG_PPC
#ifdef CONFIG_NVRAM_NOT_DEFINED
static
int
default_vmode
__initdata
=
VMODE_NVRAM
;
static
int
default_cmode
__initdata
=
CMODE_NVRAM
;
#else
static
int
default_vmode
__initdata
=
VMODE_CHOOSE
;
static
int
default_vmode
__initdata
=
VMODE_CHOOSE
;
static
int
default_cmode
__initdata
=
CMODE_CHOOSE
;
static
int
default_cmode
__initdata
=
CMODE_CHOOSE
;
#endif
#endif
#endif
#ifdef CONFIG_ATARI
#ifdef CONFIG_ATARI
static
unsigned
int
mach64_count
__initdata
=
0
;
static
unsigned
int
mach64_count
__initdata
=
0
;
...
@@ -984,6 +976,7 @@ static int atyfb_release(struct fb_info *info, int user)
...
@@ -984,6 +976,7 @@ static int atyfb_release(struct fb_info *info, int user)
var
.
yres_virtual
=
var
.
yres_virtual
=
var
.
yres
;
var
.
yres
;
}
}
fb_set_var
(
&
var
,
-
1
,
info
);
}
}
}
}
}
}
...
@@ -1246,8 +1239,8 @@ static void atyfb_save_palette(struct atyfb_par *par, int enter)
...
@@ -1246,8 +1239,8 @@ static void atyfb_save_palette(struct atyfb_par *par, int enter)
static
void
atyfb_palette
(
int
enter
)
static
void
atyfb_palette
(
int
enter
)
{
{
struct
fb_info
*
info
;
struct
atyfb_par
*
par
;
struct
atyfb_par
*
par
;
struct
fb_info
*
info
;
int
i
;
int
i
;
for
(
i
=
0
;
i
<
FB_MAX
;
i
++
)
{
for
(
i
=
0
;
i
<
FB_MAX
;
i
++
)
{
...
@@ -1409,16 +1402,16 @@ static int aty_power_mgmt(int sleep, struct atyfb_par *par)
...
@@ -1409,16 +1402,16 @@ static int aty_power_mgmt(int sleep, struct atyfb_par *par)
static
int
aty_sleep_notify
(
struct
pmu_sleep_notifier
*
self
,
int
when
)
static
int
aty_sleep_notify
(
struct
pmu_sleep_notifier
*
self
,
int
when
)
{
{
struct
fb_info
*
info
;
struct
fb_info
*
info
;
struct
atyfb_par
*
par
=
(
struct
atyfb_par
*
)
info
->
fb
.
par
;
struct
atyfb_par
*
par
;
int
result
;
int
result
;
result
=
PBOOK_SLEEP_OK
;
result
=
PBOOK_SLEEP_OK
;
for
(
info
=
first_display
;
info
!=
NULL
;
info
=
par
->
next
)
{
for
(
info
=
first_display
;
info
!=
NULL
;
info
=
par
->
next
)
{
struct
fb_fix_screeninfo
fix
;
int
nb
;
int
nb
;
nb
=
fb_display
[
fg_console
].
var
.
yres
*
info
->
fix
.
line_length
;
par
=
(
struct
atyfb_par
*
)
info
->
fb
.
par
;
nb
=
info
->
var
.
yres
*
info
->
fix
.
line_length
;
switch
(
when
)
{
switch
(
when
)
{
case
PBOOK_SLEEP_REQUEST
:
case
PBOOK_SLEEP_REQUEST
:
...
@@ -1436,7 +1429,7 @@ static int aty_sleep_notify(struct pmu_sleep_notifier *self, int when)
...
@@ -1436,7 +1429,7 @@ static int aty_sleep_notify(struct pmu_sleep_notifier *self, int when)
if
(
par
->
blitter_may_be_busy
)
if
(
par
->
blitter_may_be_busy
)
wait_for_idle
(
par
);
wait_for_idle
(
par
);
/* Stop accel engine (stop bus mastering) */
/* Stop accel engine (stop bus mastering) */
if
(
par
->
accel_flags
&
FB_ACCELF_TEXT
)
if
(
info
->
accel_flags
&
FB_ACCELF_TEXT
)
aty_reset_engine
(
par
);
aty_reset_engine
(
par
);
/* Backup fb content */
/* Backup fb content */
...
@@ -1841,14 +1834,6 @@ static int __init aty_init(struct fb_info *info, const char *name)
...
@@ -1841,14 +1834,6 @@ static int __init aty_init(struct fb_info *info, const char *name)
(
&
var
,
info
,
mode_option
,
8
))
(
&
var
,
info
,
mode_option
,
8
))
var
=
default_var
;
var
=
default_var
;
}
else
{
}
else
{
#ifdef CONFIG_NVRAM
if
(
default_vmode
==
VMODE_NVRAM
)
{
default_vmode
=
nvram_read_byte
(
NV_VMODE
);
if
(
default_vmode
<=
0
||
default_vmode
>
VMODE_MAX
)
default_vmode
=
VMODE_CHOOSE
;
}
#endif
if
(
default_vmode
==
VMODE_CHOOSE
)
{
if
(
default_vmode
==
VMODE_CHOOSE
)
{
if
(
M64_HAS
(
G3_PB_1024x768
))
if
(
M64_HAS
(
G3_PB_1024x768
))
/* G3 PowerBook with 1024x768 LCD */
/* G3 PowerBook with 1024x768 LCD */
...
@@ -1870,10 +1855,6 @@ static int __init aty_init(struct fb_info *info, const char *name)
...
@@ -1870,10 +1855,6 @@ static int __init aty_init(struct fb_info *info, const char *name)
if
(
default_vmode
<=
0
if
(
default_vmode
<=
0
||
default_vmode
>
VMODE_MAX
)
||
default_vmode
>
VMODE_MAX
)
default_vmode
=
VMODE_640_480_60
;
default_vmode
=
VMODE_640_480_60
;
#ifdef CONFIG_NVRAM
if
(
default_cmode
==
CMODE_NVRAM
)
default_cmode
=
nvram_read_byte
(
NV_CMODE
);
#endif
if
(
default_cmode
<
CMODE_8
if
(
default_cmode
<
CMODE_8
||
default_cmode
>
CMODE_32
)
||
default_cmode
>
CMODE_32
)
default_cmode
=
CMODE_8
;
default_cmode
=
CMODE_8
;
...
...
include/linux/fb.h
View file @
54c9a72d
...
@@ -413,9 +413,11 @@ struct fb_info {
...
@@ -413,9 +413,11 @@ struct fb_info {
#define fb_readb sbus_readb
#define fb_readb sbus_readb
#define fb_readw sbus_readw
#define fb_readw sbus_readw
#define fb_readl sbus_readl
#define fb_readl sbus_readl
#define fb_readq sbus_readq
#define fb_writeb sbus_writeb
#define fb_writeb sbus_writeb
#define fb_writew sbus_writew
#define fb_writew sbus_writew
#define fb_writel sbus_writel
#define fb_writel sbus_writel
#define fb_writeq sbus_writeq
#define fb_memset sbus_memset_io
#define fb_memset sbus_memset_io
#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__)
#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__)
...
...
include/linux/pci_ids.h
View file @
54c9a72d
...
@@ -263,6 +263,43 @@
...
@@ -263,6 +263,43 @@
/* Radeon NV-100 */
/* Radeon NV-100 */
#define PCI_DEVICE_ID_ATI_RADEON_N1 0x5159
#define PCI_DEVICE_ID_ATI_RADEON_N1 0x5159
#define PCI_DEVICE_ID_ATI_RADEON_N2 0x515a
#define PCI_DEVICE_ID_ATI_RADEON_N2 0x515a
/* Radeon R100 */
#define PCI_DEVICE_ID_ATI_RADEON_QD 0x5144
#define PCI_DEVICE_ID_ATI_RADEON_QE 0x5145
#define PCI_DEVICE_ID_ATI_RADEON_QF 0x5146
#define PCI_DEVICE_ID_ATI_RADEON_QG 0x5147
/* Radeon RV100 (VE) */
#define PCI_DEVICE_ID_ATI_RADEON_QY 0x5159
#define PCI_DEVICE_ID_ATI_RADEON_QZ 0x515a
/* Radeon R200 (8500) */
#define PCI_DEVICE_ID_ATI_RADEON_QL 0x514c
#define PCI_DEVICE_ID_ATI_RADEON_QN 0x514e
#define PCI_DEVICE_ID_ATI_RADEON_QO 0x514f
#define PCI_DEVICE_ID_ATI_RADEON_Ql 0x516c
#define PCI_DEVICE_ID_ATI_RADEON_BB 0x4242
/* Radeon RV200 (7500) */
#define PCI_DEVICE_ID_ATI_RADEON_QW 0x5157
#define PCI_DEVICE_ID_ATI_RADEON_QX 0x5158
/* Radeon RV250 (9000) */
#define PCI_DEVICE_ID_ATI_RADEON_Id 0x4964
#define PCI_DEVICE_ID_ATI_RADEON_Ie 0x4965
#define PCI_DEVICE_ID_ATI_RADEON_If 0x4966
#define PCI_DEVICE_ID_ATI_RADEON_Ig 0x4967
/* Radeon R300 (9700) */
#define PCI_DEVICE_ID_ATI_RADEON_ND 0x4e44
#define PCI_DEVICE_ID_ATI_RADEON_NE 0x4e45
#define PCI_DEVICE_ID_ATI_RADEON_NF 0x4e46
#define PCI_DEVICE_ID_ATI_RADEON_NG 0x4e47
/* Radeon M6 */
#define PCI_DEVICE_ID_ATI_RADEON_LY 0x4c59
#define PCI_DEVICE_ID_ATI_RADEON_LZ 0x4c5a
/* Radeon M7 */
#define PCI_DEVICE_ID_ATI_RADEON_LW 0x4c57
#define PCI_DEVICE_ID_ATI_RADEON_LX 0x4c58
#define PCI_DEVICE_ID_ATI_RADEON_Ld 0x4964
#define PCI_DEVICE_ID_ATI_RADEON_Le 0x4965
#define PCI_DEVICE_ID_ATI_RADEON_Lf 0x4966
#define PCI_DEVICE_ID_ATI_RADEON_Lg 0x4967
/* Radeon */
/* Radeon */
#define PCI_DEVICE_ID_ATI_RADEON_RA 0x5144
#define PCI_DEVICE_ID_ATI_RADEON_RA 0x5144
#define PCI_DEVICE_ID_ATI_RADEON_RB 0x5145
#define PCI_DEVICE_ID_ATI_RADEON_RB 0x5145
...
...
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