Allow retrieval of the virtual address of the AGP aperture
using agp_get_info(). MFC after: 1 week
This commit is contained in:
parent
c6b070b173
commit
5b5d5e85fc
@ -743,6 +743,7 @@ agp_get_info(device_t dev, struct agp_info *info)
|
||||
pci_read_config(dev, agp_find_caps(dev) + AGP_STATUS, 4);
|
||||
info->ai_aperture_base = rman_get_start(sc->as_aperture);
|
||||
info->ai_aperture_size = rman_get_size(sc->as_aperture);
|
||||
info->ai_aperture_va = (vm_offset_t) rman_get_virtual(sc->as_aperture);
|
||||
info->ai_memory_allowed = sc->as_maxmem;
|
||||
info->ai_memory_used = sc->as_allocated;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ struct agp_info {
|
||||
u_int32_t ai_mode;
|
||||
vm_offset_t ai_aperture_base;
|
||||
vm_size_t ai_aperture_size;
|
||||
vm_offset_t ai_aperture_va;
|
||||
vm_size_t ai_memory_allowed;
|
||||
vm_size_t ai_memory_used;
|
||||
u_int32_t ai_devid;
|
||||
|
@ -743,6 +743,7 @@ agp_get_info(device_t dev, struct agp_info *info)
|
||||
pci_read_config(dev, agp_find_caps(dev) + AGP_STATUS, 4);
|
||||
info->ai_aperture_base = rman_get_start(sc->as_aperture);
|
||||
info->ai_aperture_size = rman_get_size(sc->as_aperture);
|
||||
info->ai_aperture_va = (vm_offset_t) rman_get_virtual(sc->as_aperture);
|
||||
info->ai_memory_allowed = sc->as_maxmem;
|
||||
info->ai_memory_used = sc->as_allocated;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ struct agp_info {
|
||||
u_int32_t ai_mode;
|
||||
vm_offset_t ai_aperture_base;
|
||||
vm_size_t ai_aperture_size;
|
||||
vm_offset_t ai_aperture_va;
|
||||
vm_size_t ai_memory_allowed;
|
||||
vm_size_t ai_memory_used;
|
||||
u_int32_t ai_devid;
|
||||
|
Loading…
Reference in New Issue
Block a user