Re: PCI Driver - Read/Write to Base Address



elliotng.ee@xxxxxxxxx wrote:
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?

Yes. "PCI driver" and "char driver" are largely orthogonal. "PCI
driver" refers to how the driver interfaces to the device. "Char
driver" refers to how the driver interfaces with user programs and the
rest of the operating system.

To find some samples, cd to /usr/src/linux and type
grep -l pci_dev drivers/char/*.c | xargs grep ioctl

GH

.



Relevant Pages

  • Belkin F5D5020
    ... This card is listed in /etc/defaults/pccard.conf but I can't get the ... driver to recognize it. ... but that only refers to 4.8, ... Tim ...
    (freebsd-questions)
  • Re: ONE
    ... I can't call myself an expert, but in the term "one-to-one relation" I don't believe the "one" here refers to the same concept. ... Say one car to one driver. ... So region here would be a delta region about a point ...
    (sci.math)
  • Re: Message re recovered from serious error
    ... I'm sorry the articles weren't helpful. ... >The second refers to what to do if Device Manager shows a corrupted or non-working device or driver. ...
    (microsoft.public.windowsxp.help_and_support)
  • odd GldOpen messages [was Re: kern.notice]
    ... That looks like a message out of a third-party driver. ... that most Sun-written drivers would not emit log noise in that way. ... Assuming that 'q' here refers to a STREAMS queue_t and 'devp' refers ... you should be able to get detailed information ...
    (comp.sys.sun.admin)
  • Re: [PATCH] drivers/block/scsi_ioctl.c, Video DVD playback support
    ... It doesn't control various driver ioctl exported interfaces, ... It refers back to 'various driver ioctl' earlier, ... (the driver changes) ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)