View | Details | Raw Unified | Return to bug 71547 | Differences between
and this patch

Collapse All | Expand All

(-)agp_nvidia.c (-2 / +17 lines)
Lines 281-288 Link Here
281
{
281
{
282
	u_int8_t	key;
282
	u_int8_t	key;
283
283
284
	key = ffs(pci_read_config(dev, AGP_NVIDIA_0_APSIZE, 1) & 0x0f);
284
	key = pci_read_config(dev, AGP_NVIDIA_0_APSIZE, 1) & 0x0f;
285
	return (1 << (24 + (key ? key : 5)));
285
286
	switch (key) {
287
	case 0:
288
		return 512 * 1024 * 1024;
289
	case 8:
290
		return 256 * 1024 * 1024;
291
	case 12:
292
		return 128 * 1024 * 1024;
293
	case 14:
294
		return 64 * 1024 * 1024;
295
	case 15:
296
		return 32 * 1024 * 1024;
297
	default:
298
		device_printf(dev, "Unknown aperture size key 0x%x\n", key);
299
		return 0;
300
	}
286
}
301
}
287
302
288
static int
303
static int

Return to bug 71547