Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43824
b: refs/heads/master
c: 4c1979c
h: refs/heads/master
v: v3
  • Loading branch information
Jordan Crouse authored and Linus Torvalds committed Dec 8, 2006
1 parent 4e8949c commit 6ef5d40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4437cd1e98409e236a9d303fb742fdd53b3a20bb
refs/heads/master: 4c1979c8963528cc6f52203ae62162ed22e171f4
15 changes: 12 additions & 3 deletions trunk/drivers/video/geode/display_gx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@
#include "geodefb.h"
#include "display_gx.h"

int gx_frame_buffer_size(void)
unsigned int gx_frame_buffer_size(void)
{
/* Assuming 16 MiB. */
return 16*1024*1024;
unsigned int val;

/* FB size is reported by a virtual register */
/* Virtual register class = 0x02 */
/* VG_MEM_SIZE(512Kb units) = 0x00 */

outw(0xFC53, 0xAC1C);
outw(0x0200, 0xAC1C);

val = (unsigned int)(inw(0xAC1E)) & 0xFFl;
return (val << 19);
}

int gx_line_delta(int xres, int bpp)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/geode/display_gx.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef __DISPLAY_GX_H__
#define __DISPLAY_GX_H__

int gx_frame_buffer_size(void);
unsigned int gx_frame_buffer_size(void);
int gx_line_delta(int xres, int bpp);

extern struct geode_dc_ops gx_dc_ops;
Expand Down

0 comments on commit 6ef5d40

Please sign in to comment.