[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PCI Driver
In user program you can't use "pci_find_device" . PCI methods can be called
from the kernel only .
PCI devices have a PCI configuration space . PCI configuration space stores
all the details of the
device for accessing the device u must map the registers to the memory so
that u can read or write
into the registers . For more hardware details (registers ) u must have the
device datasheet from the vendor .
Regards,
Vinay
----- Original Message -----
From: "Kirill Messel" <kirill.messel@mtu-net.ru>
To: "Vinay" <vinay.rao@ionidea.com>; "Kernel" <kernelnewbies@nl.linux.org>
Sent: Thursday, July 04, 2002 5:58 PM
Subject: Re: PCI Driver
> Hi,
>
> I have a pci card. But i don't understand how can i write driver for it.
> Should it be char device, block device, or proc device or anything else?
> For example, can use in user programm "pci_find_device" function and how
> can i?
>
> Thanks
>
>
> Vinay wrote:
>
> >Hi ,
> >PCI based drivers are for the PCI based device . If u'r
> >device is a PCI compliant then u can write a driver for
> >that .
> >
> >Regards,
> >Vinay
> >----- Original Message -----
> >From: "Kirill Messel" <kirill.messel@mtu-net.ru>
> >To: "Kernel" <kernelnewbies@nl.linux.org>
> >Sent: Thursday, July 04, 2002 2:27 PM
> >Subject: PCI Driver
> >
> >
> >>Hi All,
> >>
> >>I have written char driver. Can i extend this simple example to PCI
> >>
> >driver?
> >
> >>Thanks
> >>
> >>
> >>--
> >>Kernelnewbies: Help each other learn about the Linux kernel.
> >>Archive: http://mail.nl.linux.org/kernelnewbies/
> >>FAQ: http://kernelnewbies.org/faq/
> >>
> >
> >
> >
>
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/