Framebuffer
From openPMA
Just some short stub info for now:
As seen in the slides on the Hardware page, the PMA has an 8-bit framebuffer + 2 Video Planes in YUV.
Theres a dm270fb.h file that might help with using the framebuffer.
from a file called dm270def.h:
#define DM270_SDRAM_BASE 0x00040000UL #define VIDMEM_OFFSET_DSP (0x00013000UL) #define VIDFRAME1_OFFSET_DSP VIDMEM_OFFSET_DSP
data = (uchar*)::mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd_dsp, DM270_SDRAM_BASE+VIDFRAME1_OFFSET_DSP);
There is an open source framebuffer for linux 2.6 from the uClinux project. This may be interesting as well. You can find those files here:
For mp3 audio following ioctl from <linux/soundcard.h>:
#define SNDCTL_DSP_GETFMTS _SIOR ('P',11, int) /* Returns a mask */
#define SNDCTL_DSP_SETFMT _SIOWR('P',5, int) /* Selects ONE fmt*/
# define AFMT_S16_LE 0x00000010 # define AFMT_MPEG 0x00000200 /* MPEG (2) audio */

