strip down fpga_test prg to the bare minimum of BaS dependencies
This commit is contained in:
@@ -99,7 +99,7 @@ int32_t fb_blank(struct fb_info *info, int32_t blank)
|
||||
return(info->fbops->fb_blank(blank, info));
|
||||
}
|
||||
|
||||
int32_t fb_ioctl(struct fb_info *info, uint32_t cmd, unsigned long arg)
|
||||
int32_t fb_ioctl(struct fb_info *info, uint32_t cmd, uint32_t arg)
|
||||
{
|
||||
struct fb_var_screeninfo var;
|
||||
struct fb_fix_screeninfo fix;
|
||||
@@ -162,7 +162,7 @@ int32_t fb_ioctl(struct fb_info *info, uint32_t cmd, unsigned long arg)
|
||||
* Returns the new structure, or NULL if an error occured.
|
||||
*
|
||||
*/
|
||||
struct fb_info *framebuffer_alloc(unsigned long size)
|
||||
struct fb_info *framebuffer_alloc(uint32_t size)
|
||||
{
|
||||
/* changed for BaS_gcc:
|
||||
* we do not allocate anything here anymore, info_fb is statically allocated in video.c
|
||||
|
||||
@@ -1119,7 +1119,7 @@ static void fb_timings_dclk(struct __fb_timings *timings)
|
||||
* REQUIRES:
|
||||
* A valid info->monspecs, otherwise 'safe numbers' will be used.
|
||||
*/
|
||||
int32_t fb_get_mode(int32_t flags, unsigned long val, struct fb_var_screeninfo *var, struct fb_info *info)
|
||||
int32_t fb_get_mode(int32_t flags, uint32_t val, struct fb_var_screeninfo *var, struct fb_info *info)
|
||||
{
|
||||
struct __fb_timings timings;
|
||||
unsigned long interlace = 1, dscan = 1;
|
||||
|
||||
@@ -211,7 +211,7 @@ long offscreen_free(struct fb_info *info, void *addr)
|
||||
mpb = &pmd;
|
||||
for (p = *(q = &mpb->mp_mal); p; p = *(q = &p->m_link))
|
||||
{
|
||||
if(addr == p->m_start)
|
||||
if (addr == (void *) p->m_start)
|
||||
break;
|
||||
}
|
||||
if(!p)
|
||||
|
||||
Reference in New Issue
Block a user