I am studying writing a driver, with the goal of communicating to a simple PIO PCI board from user space.
First, I created a sample character driver. The simple text string in memory stuff. Created a device file to read and write to. Easy to understand.
Next, I created another driver, and I successfully registered the driver to the PCI board. I can see it is all working in the kernel messages, and the
lspci -v command shows my test driver as the driver in use.
My question: How do I access the PIO PCI driver from user space?
Do I also need to create a character device, and essentially merge the two projects, so I have a "device Number" and a file to read and write to? It seems like that is would be the logical step, since the
pci_driver structure doesn't have read or write functions.
Is this correct?