Results 1 to 7 of 7
are there any fns for Read/Write involving PCI Devices in Linux?...
- 02-03-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 12
Re: Read/Write fns in linux
are there any fns for Read/Write involving PCI Devices in Linux?
- 02-03-2005 #2Linux Engineer
- Join Date
- Nov 2004
- Location
- Montreal, Canada
- Posts
- 1,267
Could you be more specific on your needs
And also read the rules of the forum conserning cross post\"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
\"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps
- 02-04-2005 #3Just Joined!
- Join Date
- Jan 2005
- Location
- Toronto, ON, Canada
- Posts
- 79
If FNS stands for functions
You van write a kernel module using some of the functions in <linux/pci.h>.
Afrolinux
- 02-04-2005 #4Just Joined!
- Join Date
- Jan 2005
- Posts
- 12
Re: Read/Write fns in linux
PROJECT :To write a generic device driver for pci device.
I have detected the chip for which i hav to write the driver.It is a pci device(Plx 9054).
I found out the address bars as well using the fns in pci.h
I found fns for read/write in config area which is not what i want.
I want to know if there are any fns in linux i can use to read/write in user mem space.(32-bit data to be read/written)
- 02-04-2005 #5Just Joined!
- Join Date
- Jan 2005
- Location
- Toronto, ON, Canada
- Posts
- 79
Actually that is the task of the driver you want to implement no?
The kernel module should be capable of interact with pci functions in kernel and send back and forth to user space in order to be useful to some user space program. You can do this by implementing :
ioctl's in kernel modules :
http://www.tldp.org/LDP/lkmpg/2.6/html/c878.htm#AEN880
proc file inkernel modules:
http://www.tldp.org/LDP/lkmpg/2.6/html/c740.htm#AEN742
Implementing your own syscalls (Not recomended):
http://www.tldp.org/LDP/lkmpg/2.6/html/c964.htm#AEN966
- 03-29-2005 #6Just Joined!
- Join Date
- Mar 2005
- Posts
- 2
Some help needed
Hi, I am new to the world of linux and right now I have been asked to write a device driver for a Multi-port PCI card on linux. I have just managed to identify the device and assign(block) some memory for this device. I wanted help regarding what other functions can be implemented for a Multi-Port Serial PCI card and any hints on how to go about doing them.
Any help is welcome.
- 08-24-2005 #7Just Joined!
- Join Date
- Aug 2005
- Posts
- 3
Required driver for PLX 9054 pci bridge there on my ISP1761 philips USB card
Hi,
>
> I am working Philips ISP1761 card. I am running
> RH-9
> and FC4. But the kernel could not detect the
> PLX9054
> pci bridge chip. There are no drivers for it. Does
> any one have some information regarding this. did
> any
> body wrote the driver.
>
> Can any one can guide me to modify the existing PCI
> driver to suit this chip.
>
> Thanks a million.
>


Reply With Quote
