Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193552
b: refs/heads/master
c: 107ea34
h: refs/heads/master
v: v3
  • Loading branch information
Harald Welte authored and Jonathan Corbet committed Apr 20, 2010
1 parent 7c2daff commit 05b1244
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1b99aa9dbe908b2839885aa999d6e8512fe1040
refs/heads/master: 107ea34db4560e6db41a9da90128ccc5e60f6b21
8 changes: 8 additions & 0 deletions trunk/drivers/video/via/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,17 @@ struct lvds_chip_information {
int i2c_port;
};

/* The type of 2D engine */
enum via_2d_engine {
VIA_2D_ENG_H2,
VIA_2D_ENG_H5,
VIA_2D_ENG_M1,
};

struct chip_information {
int gfx_chip_name;
int gfx_chip_revision;
enum via_2d_engine twod_engine;
struct tmds_chip_information tmds_chip_info;
struct lvds_chip_information lvds_chip_info;
struct lvds_chip_information lvds_chip_info2;
Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,21 @@ static void init_gfx_chip_info(struct pci_dev *pdev,
CX700_REVISION_700;
}
}

/* Determine which 2D engine we have */
switch (viaparinfo->chip_info->gfx_chip_name) {
case UNICHROME_VX800:
case UNICHROME_VX855:
viaparinfo->chip_info->twod_engine = VIA_2D_ENG_M1;
break;
case UNICHROME_K8M890:
case UNICHROME_P4M900:
viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H5;
break;
default:
viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H2;
break;
}
}

static void init_tmds_chip_info(void)
Expand Down

0 comments on commit 05b1244

Please sign in to comment.