> -----Original Message----- > From: Greg KH [mailto:gre...@suse.de] > Sent: Wednesday, August 11, 2010 1:25 AM > To: Wang, Qi > Cc: meego-dev@meego.com; Khor, Andrew Chih Howe; okada; shimizu; miyata; > Masayuki Ohtake; Wang, Yong Y; Tomoya MORINAGA > Subject: Re: About sysfs data size limitaion > > On Tue, Aug 10, 2010 at 03:35:59PM +0800, Wang, Qi wrote: > > Hi Greg, > > > > As you pointed out, PCH_PHUB patch should be implemented with sysfs > interface. > > Yes. > > > PCH_PHUB driver need access 15,361 Byte option ROM, but on i386, the > > buffer will be 4096B. With this kind of way, we need several buffer. > > Nope, just use a single sysfs file, a "binary" sysfs file, which will > allow you to mmap the rom and do all sorts of things to it from > userspace, which is exactly what you are wanting to do, right?
Yes. We can implement it with binary sysfs file. Thank you for your help. > > > Another way to implement PCH_PHUB driver is mmap the kernel space to > > user space. Perhaps it’s better. > > Nope, just use a binary sysfs file please. > > thanks, > > greg k-h _______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev