> On  4 Mar 99 at 17:27, [EMAIL PROTECTED] wrote:
> > I am developing a fbmem driver for an SA-1100 based board 
> > and am stuck in the fb_mmap
> ...
> > located at the end of the palette area (512 bytes).
> > The fb_mmap function is being called with vma->offset=0 and 
> > the vma->start and vma->end
> ...
> > Since the video memory is not page aligned, I cannot call 
> > remap_page_range to map it
>
>   I know nothing about SA-1100, but is not it possible to set 
> `video_start' (this register does exist on VGA compatibles 
> (to allow virtual scrolling...)) so that first pixel will be 
> present on page boundary? If palette is 512 bytes 
> long, it should be possible for all depths on 4KB machines 
> and for all except 24bpp on 8KB machines (if it is in pixels; 
> if base is in bytes, you should not have any problems).

Thanks, but the 'video_start' on the SA-1100 is fixed at the end
of the palette area.  

However, a quick re-read of the video controller spec and I realized
the palette area only has to be aligned on a 16 byte boundry.  
Modifying the FrameBuffer address so that the start of the
video data area was aligned on a 4k boundry became trivial.  
Simple confusion on my part.

Thanks anyway,
Eric


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to