RE: writing integers to the char device driver

2009-02-21 Thread Troy, Willis
@nl.linux.org Subject: RE: writing integers to the char device driver Hi Willis, To get EOF in the application program, you just need to return 0 at your driver's read function. IMHO, I think that you can use IOCTL to do your driver easily. Like

RE: writing integers to the char device driver

2009-02-20 Thread Daniel Widyanto
Hi Willis, To get EOF in the application program, you just need to return 0 at your driver's read function. IMHO, I think that you can use IOCTL to do your driver easily. Like this: multi.h #ifndef MULTI_H #define MULTI_H #include linux/ioctl.h

Re: writing integers to the char device driver

2009-02-19 Thread Daniel Widyanto
Hi Willis, How is your FPGA peripheral accessed ? Is it memory-mapped or you need special IO command ? If it is memory mapped, maybe you can ask the kernel to map the registers into your process (using mmap), so you don't have to design your own device driver. Btw, I'm currently driver

RE: writing integers to the char device driver

2009-02-19 Thread Troy, Willis
...@nl.linux.org [kernelnewbies-bou...@nl.linux.org] On Behalf Of Daniel Widyanto [daniel.widya...@qesslink.com] Sent: Thursday, February 19, 2009 4:16 AM To: kernelnewbies@nl.linux.org Subject: Re: writing integers to the char device driver Hi Willis, How is your FPGA peripheral accessed

Re: writing integers to the char device driver

2009-02-18 Thread Belisko Marek
Hi, On Wed, Feb 18, 2009 at 8:29 PM, Troy, Willis willis_t...@baylor.edu wrote: Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA that is currently running kernel 2.6.28,

RE: writing integers to the char device driver

2009-02-18 Thread Troy, Willis
integers to the char device driver Hi, On Wed, Feb 18, 2009 at 8:29 PM, Troy, Willis willis_t...@baylor.edu wrote: Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA

Re: writing integers to the char device driver

2009-02-18 Thread Michael Blizek
Hi! On 13:29 Wed 18 Feb , Troy, Willis wrote: Howdy, I am fairly new to device drivers and this list, but I'm sure someone in here can help me. First, some background. I am working on device drivers for a FPGA that is currently running kernel 2.6.28, because it is an FPGA I can