• Lucas De Marchi's avatar
    dma-buf-map: Rename to iosys-map · 7938f421
    Lucas De Marchi authored
    Rename struct dma_buf_map to struct iosys_map and corresponding APIs.
    Over time dma-buf-map grew up to more functionality than the one used by
    dma-buf: in fact it's just a shim layer to abstract system memory, that
    can be accessed via regular load and store, from IO memory that needs to
    be acessed via arch helpers.
    
    The idea is to extend this API so it can fulfill other needs, internal
    to a single driver. Example: in the i915 driver it's desired to share
    the implementation for integrated graphics, which uses mostly system
    memory, with discrete graphics, which may need to access IO memory.
    
    The conversion was mostly done with the following semantic patch:
    
    	@r1@
    	@@
    	- struct dma_buf_map
    	+ struct iosys_map
    
    	@r2@
    	@@
    	(
    	- DMA_BUF_MAP_INIT_VADDR
    	+ IOSYS_MAP_INIT_VADDR
    	|
    	- dma_buf_map_set_vaddr
    	+ iosys_map_set_vaddr
    	|
    	- dma_buf_map_set_vaddr_iomem
    	+ iosys_map_set_vaddr_iomem
    	|
    	- dma_buf_map_is_equal
    	+ iosys_map_is_equal
    	|
    	- dma_buf_map_is_null
    	+ iosys_map_is_nu...
    7938f421
rockchip_drm_gem.c 13 KB