Open Source & Linux Lab

It's better when it's simple

User Tools

Site Tools


etc:users:jcmvbkbc:little-things:4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
etc:users:jcmvbkbc:little-things:4 [2010/01/07 06:10] – conclusion jcmvbkbcetc:users:jcmvbkbc:little-things:4 [2016/08/08 20:53] (current) – ↷ Page moved from users:jcmvbkbc:little-things:4 to etc:users:jcmvbkbc:little-things:4 kel
Line 7: Line 7:
  
 ===== Worklog ===== ===== Worklog =====
 +  * Modify qemu (easy part): add timer to qemu device, use qemu_irq_pulse inside its callback;
 +  * Make PCI device driver: start with init and exit fns, pci_driver structure and device table;
 +  * Make PCI probe fn; main steps:
 +    * pci_enable_device (enable device IO and memory);
 +    * request_irq (still there's no device open fn do it in probe);
 +    * pci_set_drvdata (to make our device accessible from the struct device level);
 +  * Make PCI release fn, do cleanup of what probe done;
 +  * Add simple irq handler and sysfs output;
 +
 +Code: ftp://kkv.spb.su/pub/home/dumb/ws/lted/20100104
 +
 ===== Conclusion ===== ===== Conclusion =====
   * when to assert/deassert IRQ line: no matter (at least for emulation);   * when to assert/deassert IRQ line: no matter (at least for emulation);
etc/users/jcmvbkbc/little-things/4.1262833859.txt.gz · Last modified: 2010/01/07 06:10 by jcmvbkbc