Created attachment 15162 [details] [review]
Cast pciaddr_t to unsigned long "printf" argument.
Include <unistd.h> for open, read, close, lseek and usleep prototypes.
Again, probably only a problem if using strict c99, as
it could literally pass long long to printf arguments
expecting long, but I suspect gcc will notice it and do
"the right thing" (only a problem in 32 bit arches).