Re: writing integers to the char device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 development from Linux Device Driver book. If
you could share the char source code that you're using, maybe I can help
you --finger crossed of course =)

Regards,
-daniel


On Wed, 2009-02-18 at 13:29 -0600, 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 add custom hardware.  The custom hardware I currently have is very simple- just a multiplier- for a proof of concept.  Currently I have a char device driver written for it that will take in ascii and multiply its ascii value by another ascii value.  Eg. 0x0=char(0)*char(0)=48*48.  This isn't really what I want, I want a device driver that can read in two 32 bit numbers and return a 32 bit number.
> 
> So,  can I write integers/longs to a character device driver?  Is there a better way to do this?
> 
> Thanks in advance,
> Willis



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux