Commit b594a7d4 authored by Jeff Epler's avatar Jeff Epler
Browse files

Enable PCI device enumeration on Compute Module 4

 * The PCI offset may be a 64-bit number like 0x600000000, which needs
   to fit in off_t (for mmap) and board_struct.mem_base
 * off_t is only 64-bits with -D_FILE_OFFSET_BITS=64
   (which is not the default in 2021!!!)
 * This requires the offset to be printed as a uint64_t
 * mmap was not checked for failure

After this change, I can detect a 5i24 plugged into the 1x slot of
a Raspberry Pi Compute Module 4 IO board with 2GB RAM compute module.
That's the only operation I tried.
parent 7b2cb3ab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment