Commit a1d640f2 authored by Dave Jones's avatar Dave Jones

[AGPGART] VIA KT400 Aperture size is 12 bit in AGP3 mode.

parent 2b9f9c3c
...@@ -17,11 +17,13 @@ ...@@ -17,11 +17,13 @@
static int via_fetch_size(void) static int via_fetch_size(void)
{ {
int i; int i;
u8 temp; u16 temp;
struct aper_size_info_16 *values; struct aper_size_info_16 *values;
values = A_SIZE_16(agp_bridge.aperture_sizes); values = A_SIZE_16(agp_bridge.aperture_sizes);
pci_read_config_byte(agp_bridge.dev, VIA_AGP3_APSIZE, &temp); pci_read_config_word(agp_bridge.dev, VIA_AGP3_APSIZE, &temp);
temp &= 0xfff;
for (i = 0; i < agp_bridge.num_aperture_sizes; i++) { for (i = 0; i < agp_bridge.num_aperture_sizes; i++) {
if (temp == values[i].size_value) { if (temp == values[i].size_value) {
agp_bridge.previous_size = agp_bridge.previous_size =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment