agptarget.c (3446:5903aece022d) | agptarget.c (3527:95253ace552c) |
---|---|
1/* | 1/* |
2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. | 2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
3 * Use is subject to license terms. 4 */ 5 6#pragma ident "%Z%%M% %I% %E% SMI" 7 8#include <sys/systm.h> 9#include <sys/conf.h> 10#include <sys/modctl.h> --- 295 unchanged lines hidden (view full) --- 306 case I8XX_GC_MODE5: 307 kbytes = 32 * 1024; /* 32M preallocated memory */ 308 break; 309 default: 310 kbytes = 0; /* an unexpected case */ 311 } 312 break; 313 case INTEL_BR_865: | 3 * Use is subject to license terms. 4 */ 5 6#pragma ident "%Z%%M% %I% %E% SMI" 7 8#include <sys/systm.h> 9#include <sys/conf.h> 10#include <sys/modctl.h> --- 295 unchanged lines hidden (view full) --- 306 case I8XX_GC_MODE5: 307 kbytes = 32 * 1024; /* 32M preallocated memory */ 308 break; 309 default: 310 kbytes = 0; /* an unexpected case */ 311 } 312 break; 313 case INTEL_BR_865: |
314 case INTEL_BR_910M: |
|
314 memval = pci_config_get8(softstate->tsoft_pcihdl, I8XX_CONF_GC); 315 switch (memval & I8XX_GC_MODE_MASK) { 316 case I8XX_GC_MODE1: 317 kbytes = 1024; /* 1M preallocated memory */ 318 break; 319 case I8XX_GC_MODE3: 320 kbytes = 8 * 1024; /* 8M preallocated memory */ 321 break; | 315 memval = pci_config_get8(softstate->tsoft_pcihdl, I8XX_CONF_GC); 316 switch (memval & I8XX_GC_MODE_MASK) { 317 case I8XX_GC_MODE1: 318 kbytes = 1024; /* 1M preallocated memory */ 319 break; 320 case I8XX_GC_MODE3: 321 kbytes = 8 * 1024; /* 8M preallocated memory */ 322 break; |
323 /* 324 * There is no option for 16M in 910GM datasheet, 325 * but some BIOS add this option for 16M support. 326 */ |
|
322 case I8XX_GC_MODE4: 323 kbytes = 16 * 1024; /* 16M preallocated memory */ 324 break; 325 default: 326 kbytes = 0; /* an unexpected case */ 327 } 328 break; 329 case INTEL_BR_910: | 327 case I8XX_GC_MODE4: 328 kbytes = 16 * 1024; /* 16M preallocated memory */ 329 break; 330 default: 331 kbytes = 0; /* an unexpected case */ 332 } 333 break; 334 case INTEL_BR_910: |
330 case INTEL_BR_910M: | |
331 case INTEL_BR_945: 332 memval = pci_config_get8(softstate->tsoft_pcihdl, I8XX_CONF_GC); 333 switch (memval & I8XX_GC_MODE_MASK) { 334 case I8XX_GC_MODE1: 335 kbytes = 1024; /* 1M preallocated memory */ 336 break; 337 case I8XX_GC_MODE3: 338 kbytes = 8 * 1024; /* 8M preallocated memory */ --- 430 unchanged lines hidden --- | 335 case INTEL_BR_945: 336 memval = pci_config_get8(softstate->tsoft_pcihdl, I8XX_CONF_GC); 337 switch (memval & I8XX_GC_MODE_MASK) { 338 case I8XX_GC_MODE1: 339 kbytes = 1024; /* 1M preallocated memory */ 340 break; 341 case I8XX_GC_MODE3: 342 kbytes = 8 * 1024; /* 8M preallocated memory */ --- 430 unchanged lines hidden --- |