how to assign a name to a PCI device, that user space ioctl() can use



Hello,

I am writing a driver for a "generic" PCI device, that is, not a
network card, or serial card, or anything with a special interface. I
just need to be able to open it and ioctl().

I want to know, once I initialize a PCI device that the driver
supports, how to assign the name to that device, that will then be
accessible to open() and ioctl() from user space.

To paraphrase justice Clarence Thomas, "I racked my brains on this" for
2 hours - I went over Rubini's latest edition chapter on PCI drivers
and searched the web everywhere I could think of, and nowhere, could I
find any information on this.

Please tell me. Mark Galeck

.



Relevant Pages

  • Re: [PATCH 1/5] Update Documentation/pci.txt
    ... the driver with a matching "description" will be notified. ... Once the driver knows about a PCI device and takes ownership, ... request MMIO/IOP resources ... With MSI and MSI-X the interrupt number is a CPU "vector". ...
    (Linux-Kernel)
  • Re: [PATCH] Update Documentation/pci.txt v7
    ... add section "Legacy I/O Port free driver" by Kenji Kaneshige ... when converting drivers from IO Port space to MMIO space. ... +Once the driver knows about a PCI device and takes ownership, ...
    (Linux-Kernel)
  • Re: [PATCH] Update Documentation/pci.txt v7
    ... add section "Legacy I/O Port free driver" by Kenji Kaneshige ... when converting drivers from IO Port space to MMIO space. ... +Once the driver knows about a PCI device and takes ownership, ...
    (Linux-Kernel)
  • patch pci-rework-documentation-pci.txt.patch added to gregkh-2.6 tree
    ... add section "Legacy I/O Port free driver" by Kenji Kaneshige ... when converting drivers from IO Port space to MMIO space. ... +Once the driver knows about a PCI device and takes ownership, ...
    (Linux-Kernel)
  • Re: Service Control Manager
    ... external card) then load the ibm drivers for the network card again. ... Monday, February 14, 2005 Service Control Manager The DHCP Client service ... depends on the TCP/IP Protocol Driver service which failed to start because ... A device attached to the system is not functioning. ...
    (microsoft.public.windowsxp.perform_maintain)