Add PCI IDs for the i82855 and i82875P AGP bridges.
PR: i386/53136, i386/51802 Submitted by: Kyunghwan Kim <redjade@atropos.snu.ac.kr>, Norikatsu Shigemura <nork@FreeBSD.org>
This commit is contained in:
parent
d72cbcaa9c
commit
f3df94de13
@ -100,11 +100,17 @@ agp_intel_match(device_t dev)
|
||||
case 0x25308086:
|
||||
return ("Intel 82850 host to AGP bridge");
|
||||
|
||||
case 0x33408086:
|
||||
return ("Intel 82855 host to AGP bridge");
|
||||
|
||||
case 0x25318086:
|
||||
return ("Intel 82860 host to AGP bridge");
|
||||
|
||||
case 0x25708086:
|
||||
return ("Intel 82865 host to AGP bridge");
|
||||
|
||||
case 0x25788086:
|
||||
return ("Intel 82875P host to AGP bridge");
|
||||
};
|
||||
|
||||
if (pci_get_vendor(dev) == 0x8086)
|
||||
@ -203,7 +209,9 @@ agp_intel_attach(device_t dev)
|
||||
break;
|
||||
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
pci_write_config(dev, AGP_INTEL_I845_MCHCFG,
|
||||
(pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
|
||||
| (1 << 1)), 1);
|
||||
@ -224,8 +232,10 @@ agp_intel_attach(device_t dev)
|
||||
case 0x25018086: /* i820 */
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x25308086: /* i850 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25318086: /* i860 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2);
|
||||
break;
|
||||
|
||||
@ -268,7 +278,9 @@ agp_intel_detach(device_t dev)
|
||||
& ~(1 << 1)), 1);
|
||||
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
printf("%s: set MCHCFG to %x\n", __func__, (unsigned)
|
||||
(pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
|
||||
& ~(1 << 1)));
|
||||
|
@ -100,11 +100,17 @@ agp_intel_match(device_t dev)
|
||||
case 0x25308086:
|
||||
return ("Intel 82850 host to AGP bridge");
|
||||
|
||||
case 0x33408086:
|
||||
return ("Intel 82855 host to AGP bridge");
|
||||
|
||||
case 0x25318086:
|
||||
return ("Intel 82860 host to AGP bridge");
|
||||
|
||||
case 0x25708086:
|
||||
return ("Intel 82865 host to AGP bridge");
|
||||
|
||||
case 0x25788086:
|
||||
return ("Intel 82875P host to AGP bridge");
|
||||
};
|
||||
|
||||
if (pci_get_vendor(dev) == 0x8086)
|
||||
@ -203,7 +209,9 @@ agp_intel_attach(device_t dev)
|
||||
break;
|
||||
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
pci_write_config(dev, AGP_INTEL_I845_MCHCFG,
|
||||
(pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
|
||||
| (1 << 1)), 1);
|
||||
@ -224,8 +232,10 @@ agp_intel_attach(device_t dev)
|
||||
case 0x25018086: /* i820 */
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x25308086: /* i850 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25318086: /* i860 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2);
|
||||
break;
|
||||
|
||||
@ -268,7 +278,9 @@ agp_intel_detach(device_t dev)
|
||||
& ~(1 << 1)), 1);
|
||||
|
||||
case 0x1a308086: /* i845 */
|
||||
case 0x33408086: /* i855 */
|
||||
case 0x25708086: /* i865 */
|
||||
case 0x25788086: /* i875P */
|
||||
printf("%s: set MCHCFG to %x\n", __func__, (unsigned)
|
||||
(pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
|
||||
& ~(1 << 1)));
|
||||
|
Loading…
Reference in New Issue
Block a user