/* * Access to VGA videoram * * (c) 1998 Martin Mares */ #ifndef __ASM_GENERIC_VGA_H #define __ASM_GENERIC_VGA_H /* * On most architectures that support VGA, we can just * recalculate addresses and then access the videoram * directly without any black magic. * * Everyone else needs to ioremap the address and use * proper I/O accesses. */ #ifndef VGA_MAP_MEM #define VGA_MAP_MEM(x, s) (unsigned long)phys_to_virt(x) #endif #define vga_readb(x) (*(x)) #define vga_writeb(x, y) (*(y) = (x)) #endif /* _ASM_GENERIC_VGA_H */ ext.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2016-12-03 00:52:46 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-12-05 13:10:53 +0200
commitd15697de60db5570532fdedb8e13b2251d65b8e3 (patch)
treebf108bd8a2c05aef9e4fd1eca7a16f628f3dfd5e /Documentation
parente54a8c4b5753d1c427c8fec7f9e43e7c22ec00cc (diff)
adm80211: add checks for dma mapping errors
The driver does not check if mapping dma memory succeed. The patch adds the checks and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation')