Re: PCI Driver - Read/Write to Base Address
- From: elliotng.ee@xxxxxxxxx
- Date: 25 Aug 2006 07:09:28 -0700
Can you utilize ioctl for a pci device driver? I know it can be used
for a char driver.
Is there a sample code with ioctl being utilized for a pci device
driver?
David Schwartz wrote:
elliotng.ee@xxxxxxxxx wrote:
Still awaiting a response to this question:
In addition, I eventually want to take the reading configuration
register, reading PCI memory, and writing PCI memory code out of the
probe function and set each one as a function. After the device driver
is loaded, how do I call those functions from another C program?
Whatever way makes the most sense for your driver. An 'ioctl' on a
device file might be one way. Manipulating a file in '/proc' might be
another.
DS
.
- Follow-Ups:
- Re: PCI Driver - Read/Write to Base Address
- From: gil_hamilton@xxxxxxxxxxx
- Re: PCI Driver - Read/Write to Base Address
- References:
- PCI Driver - Read/Write to Base Address
- From: elliotng . ee
- Re: PCI Driver - Read/Write to Base Address
- From: gil_hamilton@xxxxxxxxxxx
- Re: PCI Driver - Read/Write to Base Address
- From: elliotng . ee
- Re: PCI Driver - Read/Write to Base Address
- From: elliotng . ee
- Re: PCI Driver - Read/Write to Base Address
- From: David Schwartz
- PCI Driver - Read/Write to Base Address
- Prev by Date: accessing files, devices, in kernel modules
- Next by Date: Re: PCI Driver - Read/Write to Base Address
- Previous by thread: Re: PCI Driver - Read/Write to Base Address
- Next by thread: Re: PCI Driver - Read/Write to Base Address
- Index(es):
Relevant Pages
|