Recognise the 82845G AGP bridge, and poke it appropriately at

attach/detach time.

Assigning the default behaviour to this particular device is
incorrect, corrupting the video BIOS aperture, and breaking
VESA support in the kernel and XFree86.

Reviewed By:	dfr
MFC after:	1 week
PR:		kern/62906
This commit is contained in:
Peter Edwards 2004-03-13 16:06:32 +00:00
parent 2f00651dae
commit ad50c14e4d
2 changed files with 10 additions and 0 deletions

View File

@ -111,6 +111,9 @@ agp_intel_match(device_t dev)
case 0x25788086:
return ("Intel 82875P host to AGP bridge");
case 0x25608086: /* i845G */
return ("Intel 82845G host to AGP bridge");
};
if (pci_get_vendor(dev) == 0x8086)
@ -236,6 +239,7 @@ agp_intel_attach(device_t dev)
case 0x25318086: /* i860 */
case 0x25708086: /* i865 */
case 0x25788086: /* i875P */
case 0x25608086: /* i845G */
pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2);
break;
@ -278,6 +282,7 @@ agp_intel_detach(device_t dev)
& ~(1 << 1)), 1);
case 0x1a308086: /* i845 */
case 0x25608086: /* i845G */
case 0x33408086: /* i855 */
case 0x25708086: /* i865 */
case 0x25788086: /* i875P */

View File

@ -111,6 +111,9 @@ agp_intel_match(device_t dev)
case 0x25788086:
return ("Intel 82875P host to AGP bridge");
case 0x25608086: /* i845G */
return ("Intel 82845G host to AGP bridge");
};
if (pci_get_vendor(dev) == 0x8086)
@ -236,6 +239,7 @@ agp_intel_attach(device_t dev)
case 0x25318086: /* i860 */
case 0x25708086: /* i865 */
case 0x25788086: /* i875P */
case 0x25608086: /* i845G */
pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2);
break;
@ -278,6 +282,7 @@ agp_intel_detach(device_t dev)
& ~(1 << 1)), 1);
case 0x1a308086: /* i845 */
case 0x25608086: /* i845G */
case 0x33408086: /* i855 */
case 0x25708086: /* i865 */
case 0x25788086: /* i875P */