devm_request_mem_region(&pdev->dev, mem_res->start, resource_size(mem_res), pdev->dev.driver->name)) { dev_err(&pdev->dev,"memory region already claimed\n");return-EBUSY; } membase = devm_ioremap_nocache(&pdev->dev, mem_res->start,resource_size(mem_res));if(!membase)return...
#define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name)) __request_region检查是否可以安全占用起始物理地址S1D_PHYSICAL_REG_ADDR之后的连续S1D_PHYSICAL_REG_SIZE字节大小空间 struct resource * __request_region(struct resource *parent, unsigned long start,...
devm_request_mem_region(&pdev->dev, mem_res->start, resource_size(mem_res), pdev->dev.driver->name)) { dev_err(&pdev->dev,"memory region already claimed\n");return-EBUSY; } membase = devm_ioremap_nocache(&pdev->dev, mem_res->start,resource_size(mem_res));if(!membase)return...