[Ilugc] PCI driver problem

  • From: metallica_tony@xxxxxxxxx (K.Sriram)
  • Date: Thu, 29 Jan 2004 04:07:25 -0800 (PST)

--0-1527211473-1075378045=:82555
Content-Type: text/plain; charset=us-ascii


Hello everybody,

I have just started to write a driver for an Image processing card ( PCI 
device, no network support) which was designed in our institute itself. I 
finished writing the pci_driver struct ( name, probe, remove etc.). Now Iam 
ready to write the open, read, write, release for the card. 

I have written a simple character driver and for that i registered my fops 
using register_chrdev which returned major no. But for a PCI card I don't know 
how to register the fops and to get the major number for my device.

I searched a lot for that, but in vain. Also I found the registration of fops 
for my intel 810 PCI Audio device was done as

dev->audio = register_sound_dsp (&i810_fops, -1)

But I don't know, how to do that for my PCI device. Can anyone help me in this.



-------------------------------------------------------------------------------------------
                     
 Personal email             : metallica_tony@xxxxxxxxx
 Queries abt GNU/Linux  : debian_tony@xxxxxxxxx


                          What I felt , What I have known ,
                        Never shined in what I have shown ...
                                                                    
-----------------   Metallica

  
 Free(dom) Software    -      For the people, by the people, to the people.

-------------------------------------------------------------------------------------------

---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--0-1527211473-1075378045=:82555
Content-Type: text/html; charset=us-ascii

<DIV><FONT size=2>
<P>Hello everybody,</P>
<P>I have just started to write a driver for an Image processing card ( PCI 
device, no network support) which was designed in our institute itself. I 
finished writing the pci_driver struct ( name, probe, remove etc.). Now Iam 
ready to write the open, read, write, release for the card. </P>
<P>I have written a simple character driver and for that i registered my fops 
using register_chrdev which returned major no. But for a PCI card I don't know 
how to register the fops and to get the major number for my device.</P>
<P>I searched a lot for that, but in vain. Also I found the registration of 
fops for my intel 810 PCI Audio device was done as</P>
<P>dev-&gt;audio = register_sound_dsp (&amp;i810_fops, -1)</P>
<P>But I don't know, how to do that for my PCI device. Can anyone help me in 
this.</P></FONT></DIV><BR><BR>-------------------------------------------------------------------------------------------<br>
                     <br> Personal email             : 
metallica_tony@xxxxxxxxx<br> Queries abt GNU/Linux  : 
debian_tony@xxxxxxxxx<br><br><br>                          What I felt , What I 
have known ,<br>                        Never shined in what I have shown 
...<br>                                                                    
-----------------   Metallica<br><br>  <br> Free(dom) Software    -      For 
the people, by the people, to the 
people.<br><br>-------------------------------------------------------------------------------------------<p><hr
 SIZE=1>
Do you Yahoo!?<br>
Yahoo! SiteBuilder - Free web site building tool. <a 
href="http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/";><b>Try
 it!</b></a>
--0-1527211473-1075378045=:82555--

Other related posts:

  • » [Ilugc] PCI driver problem - K.Sriram