Skip to content

Johannes4Linux/pci-echodev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emulating a PCI Device with QEMU

This repository contains a PCI Device for QEMU and a driver for it.

pci-echodev

The PCI devices comes with two memory space BARs. BAR1 is 4kB in size and offers memory storage. Values written to it, will be stored and can be read back.

BAR0 is also memory space and is diveded in four 4 Byte registers according to the following table:

Offset Name Default Value Description
0x0 ID 0xcafeaffe ID for identification
0x4 INVERT 0 The inverted writen value can be read back
0x8 IRQ CTRL 0 Can be used to fire and acknowledge IRQs
0xC RANDOM VAL 0 Returns a random value on read

Driver

Tbd.

Resources

implementation of a custom QEMU PCI device by Nikos Mouzakitis

About

A PCI Echo Device for QEMU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published