From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitaly Wool Subject: Re: [PATCH] add framebuffer and display update module support for pnx4008 Date: Wed, 28 Jun 2006 11:46:33 +0400 Message-ID: <20060628114633.d96c8155.vitalywool@gmail.com> References: <20060627191747.4b455b24.vitalywool@gmail.com> <44A1A2A6.5080206@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1FvUkv-0002Kz-Mh for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Jun 2006 00:46:37 -0700 Received: from [85.21.88.2] (helo=mail.dev.rtsoft.ru) by mail.sourceforge.net with smtp (Exim 4.44) id 1FvUkv-0003hm-26 for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Jun 2006 00:46:37 -0700 In-Reply-To: <44A1A2A6.5080206@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: "Antonino A. Daplas" Cc: linux-fbdev-devel@lists.sourceforge.net, gtolstolytkin@ru.mvista.com On Wed, 28 Jun 2006 05:27:02 +0800 "Antonino A. Daplas" wrote: > > Index: linux-2.6.git/drivers/video/pnx4008/Makefile > > =================================================================== > > --- /dev/null > > +++ linux-2.6.git/drivers/video/pnx4008/Makefile > > @@ -0,0 +1,7 @@ > > +# > > +# Makefile for the new PNX4008 framebuffer device driver > > +# > > + > > +obj-$(CONFIG_FB_PNX4008_DUM) += sdum.o > > +obj-$(CONFIG_FB_PNX4008_DUM_RGB) += rgbfb.o > > rgbfb? Can the name be more descriptive of the chipset? Hmmm, the thing is that the frambuffer can actually be anyone of a kind. Display Update Module provides interface to the actual device and the only difference it makes is whether it's a RGB or YUV framebuffer. > > + > > +static int no_cursor(struct fb_info *info, struct fb_cursor *cursor) > > +{ > > + return 0; > > +} > > + > > Hmm, this driver is not going to be used as a console at all? No, it was never planned to be. > > +config FB_PNX4008_DUM > > + tristate "Display Update Module support on Philips PNX4008 board" > > + depends on FB && ARCH_PNX4008 > > + ---help--- > > + Say Y here to enable support for PNX4008 Display Update Module (DUM) > > + > > +config FB_PNX4008_DUM_RGB > > + tristate "RGB Framebuffer support on Philips PNX4008 board" > > + depends on FB_PNX4008_DUM > > + select FB_CFB_FILLRECT > > + select FB_CFB_COPYAREA > > + select FB_CFB_IMAGEBLIT > > + ---help--- > > + Say Y here to enable support for PNX4008 RGB Framebuffer > > + > > Are there other uses of the "Display Update Module" other than the framebuffer? > IOW, is CONFIG_PNX4008_DUM=y, CONFIG_PNX4008_DUM_RGB=n a usable configuration? It is, but currently it will result in nothing shown on the LCD. However, it's planned to add YUV framebuffer driver which also requires DUM and is an alternative to RGB one. > > +int pnx4008_get_dum_channel_uf(struct dumchannel_uf *p_chan_uf, int dev_id) > > +{ > > + int i = p_chan_uf->channelnr; > > + > > + if (i < 0 || i > MAX_DUM_CHANNELS) > > + return -EINVAL; > > + else if (dum_data.fb_owning_channel[i] != dev_id) > > + return -EFBNOTOWNER; > > + else { > > + p_chan_uf->dirty = dum_data.chan_uf_store[i].dirty; > > + p_chan_uf->source = dum_data.chan_uf_store[i].source; > > + p_chan_uf->x_offset = dum_data.chan_uf_store[i].x_offset; > > + p_chan_uf->y_offset = dum_data.chan_uf_store[i].y_offset; > > + p_chan_uf->width = dum_data.chan_uf_store[i].width; > > + p_chan_uf->height = dum_data.chan_uf_store[i].height; > > + } > > + > > + return 0; > > +} > > + > > +EXPORT_SYMBOL(pnx4008_get_dum_channel_uf); > > Unused? For this one and followers, they might be used in YUV framebuffer driver. However, if you consider it's reasonable to remove those for now, I don't mind. > > > +int pnx4008_set_dum_chanel_dirty_detect(int channr, int val, int dev_id) > > +{ > > + if (channr < 0 || channr > MAX_DUM_CHANNELS) > > + return -EINVAL; > > + else if (dum_data.fb_owning_channel[channr] != dev_id) > > + return -EFBNOTOWNER; > > + else { > > + if (val == CONF_DIRTYDETECTION_ON) > > + DUM_CH_CONF(channr) |= CONF_DIRTYENABLE; > > + else if (val == CONF_DIRTYDETECTION_OFF) > > + DUM_CH_CONF(channr) &= ~CONF_DIRTYENABLE; > > + else > > + return -EINVAL; > > + } > > + > > + return 0; > > +} > > + > > +EXPORT_SYMBOL(pnx4008_set_dum_chanel_dirty_detect); > ^^^^^^ > channel? Yes, thanks. Vitaly Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642