Initialize extra AGP resource slots.

This commit is contained in:
jmcneill 2007-03-21 22:16:45 +00:00
parent 0f6e823d07
commit ccbe7856ca
1 changed files with 4 additions and 0 deletions

View File

@ -334,6 +334,10 @@ void drm_attach(struct device *kdev, struct pci_attach_args *pa,
if(dev->pci_map_data[unit].maptype == PCI_MAPREG_TYPE_MEM)
dev->pci_map_data[unit].flags |= BUS_SPACE_MAP_LINEAR;
}
for(unit=0; unit<DRM_MAX_PCI_RESOURCE; unit++) {
dev->agp_map_data[unit].mapped = 0;
dev->agp_map_data[unit].maptype = PCI_MAPREG_TYPE_MEM;
}
dev->context_flag = 0;
dev->last_context = 0;
dev->vbl_queue = 0;