|
|
| version 1.3, 2003/08/07 21:16:48 | version 1.4, 2003/12/09 19:40:56 |
|---|---|
| Line 98 agp_intel_match(device_t dev) | Line 98 agp_intel_match(device_t dev) |
| case 0x25308086: | case 0x25308086: |
| return ("Intel 82850 host to AGP bridge"); | return ("Intel 82850 host to AGP bridge"); |
| case 0x33408086: | |
| return ("Intel 82855 host to AGP bridge"); | |
| case 0x25318086: | case 0x25318086: |
| return ("Intel 82860 host to AGP bridge"); | return ("Intel 82860 host to AGP bridge"); |
| case 0x25708086: | case 0x25708086: |
| return ("Intel 82865 host to AGP bridge"); | return ("Intel 82865 host to AGP bridge"); |
| case 0x25788086: | |
| return ("Intel 82875P host to AGP bridge"); | |
| }; | }; |
| if (pci_get_vendor(dev) == 0x8086) | if (pci_get_vendor(dev) == 0x8086) |
| Line 146 agp_intel_attach(device_t dev) | Line 152 agp_intel_attach(device_t dev) |
| MAX_APSIZE; | MAX_APSIZE; |
| pci_write_config(dev, AGP_INTEL_APSIZE, value, 1); | pci_write_config(dev, AGP_INTEL_APSIZE, value, 1); |
| sc->initial_aperture = AGP_GET_APERTURE(dev); | sc->initial_aperture = AGP_GET_APERTURE(dev); |
| if (sc->initial_aperture == 0) { | |
| device_printf(dev, "bad initial aperture size, disabling\n"); | |
| return ENXIO; | |
| } | |
| for (;;) { | for (;;) { |
| gatt = agp_alloc_gatt(dev); | gatt = agp_alloc_gatt(dev); |
| Line 201 agp_intel_attach(device_t dev) | Line 211 agp_intel_attach(device_t dev) |
| break; | break; |
| case 0x1a308086: /* i845 */ | case 0x1a308086: /* i845 */ |
| case 0x33408086: /* i855 */ | |
| case 0x25708086: /* i865 */ | case 0x25708086: /* i865 */ |
| case 0x25788086: /* i875P */ | |
| pci_write_config(dev, AGP_INTEL_I845_MCHCFG, | pci_write_config(dev, AGP_INTEL_I845_MCHCFG, |
| (pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1) | (pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1) |
| | (1 << 1)), 1); | | (1 << 1)), 1); |
| Line 222 agp_intel_attach(device_t dev) | Line 234 agp_intel_attach(device_t dev) |
| case 0x25018086: /* i820 */ | case 0x25018086: /* i820 */ |
| case 0x1a308086: /* i845 */ | case 0x1a308086: /* i845 */ |
| case 0x25308086: /* i850 */ | case 0x25308086: /* i850 */ |
| case 0x33408086: /* i855 */ | |
| case 0x25318086: /* i860 */ | case 0x25318086: /* i860 */ |
| case 0x25708086: /* i865 */ | case 0x25708086: /* i865 */ |
| case 0x25788086: /* i875P */ | |
| pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2); | pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x00ff, 2); |
| break; | break; |
| Line 266 agp_intel_detach(device_t dev) | Line 280 agp_intel_detach(device_t dev) |
| & ~(1 << 1)), 1); | & ~(1 << 1)), 1); |
| case 0x1a308086: /* i845 */ | case 0x1a308086: /* i845 */ |
| case 0x33408086: /* i855 */ | |
| case 0x25708086: /* i865 */ | case 0x25708086: /* i865 */ |
| case 0x25788086: /* i875P */ | |
| printf("%s: set MCHCFG to %x\n", __FUNCTION__, (unsigned) | printf("%s: set MCHCFG to %x\n", __FUNCTION__, (unsigned) |
| (pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1) | (pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1) |
| & ~(1 << 1))); | & ~(1 << 1))); |
| Line 396 static driver_t agp_intel_driver = { | Line 412 static driver_t agp_intel_driver = { |
| static devclass_t agp_devclass; | static devclass_t agp_devclass; |
| DRIVER_MODULE(agp_intel, pci, agp_intel_driver, agp_devclass, 0, 0); | DRIVER_MODULE(agp_intel, pci, agp_intel_driver, agp_devclass, 0, 0); |
| MODULE_DEPEND(agp_intel, agp, 1, 1, 1); | |
| MODULE_DEPEND(agp_intel, pci, 1, 1, 1); |