K
K
Kamikaze10242015-07-03 11:41:47
linux
Kamikaze1024, 2015-07-03 11:41:47

What is the difference between writing a driver for a PCI device in linux and writing a driver for a PCI-E device?

I can’t find an understandable manual for writing a PCI-E device driver for Linux, all examples are for regular PCI. Of particular interest are the following points: initialization of several devices on the same bus (one master, two slaves); interrupt handling by each of them; dma mode. Please provide links to examples. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2015-07-03
@Kamikaze1024

There is no difference, but be aware that some PCI mechanisms are legacy to PCI-E, such as non-MSI(X) interrupts.
Driver example: lxr.free-electrons.com/source/drivers/net/ethernet...
Registering an interrupt handler: lxr.free-electrons.com/source/drivers/net/ethernet...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question