Function report |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-28 08:52:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Private Northbridge GATT initialization in case we cannot use the* AGP driver for some reason.
Proto:static __init int init_amd_gatt(struct agp_kern_info *info)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct agp_kern_info * | info |
| 623 | pr_info("PCI-DMA: Disabling AGP.\n") |
| 626 | dev = NULL |
| 627 | When i < amd_nb_num() cycle |
| 629 | new_aper_base = read_aperture(dev, & new_aper_size) |
| 630 | If Not new_aper_base Then Go to nommu |
| 633 | If Not aper_base Then |
| 634 | aper_size = new_aper_size |
| 635 | aper_base = new_aper_base |
| 637 | If aper_size != new_aper_size || aper_base != new_aper_base Then Go to nommu |
| 646 | gatt_size = (aper_size >> PAGE_SHIFT determines the page size ) * sizeof(u32) |
| 649 | If Not gatt Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
| 654 | agp_gatt_table = gatt |
| 656 | register_syscore_ops( & gart_syscore_ops) |
| 663 | Return 0 |
| 665 | nommu : |
| 667 | pr_warn("PCI-DMA: More than 4GB of RAM and no IOMMU - falling back to iommu=soft.\n") |
| 668 | Return -1 |
| Name | Describe |
|---|---|
| gart_iommu_init |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |