函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-27 09:52:01
首页 Copyright©Brick

813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
void __init gart_parse_options(char *p)
{
    int arg;
 
    if (isdigit(*p) && get_option(&p, &arg))
        iommu_size = arg;
    if (!strncmp(p, "fullflush", 9))
        iommu_fullflush = 1;
    if (!strncmp(p, "nofullflush", 11))
        iommu_fullflush = 0;
    if (!strncmp(p, "noagp", 5))
        no_agp = 1;
    if (!strncmp(p, "noaperture", 10))
        fix_aperture = 0;
    /* duplicated from pci-dma.c */
    if (!strncmp(p, "force", 5))
        gart_iommu_aperture_allowed = 1;
    if (!strncmp(p, "allowed", 7))
        gart_iommu_aperture_allowed = 1;
    if (!strncmp(p, "memaper", 7)) {
        fallback_aper_force = 1;
        p += 7;
        if (*p == '=') {
            ++p;
            if (get_option(&p, &arg))
                fallback_aper_order = arg;
        }
    }
}