On Tue, Aug 26, 2014 at 11:13:50AM -0400, Christos Zoulas wrote: > I think in the example that was 0xe6. I think the .b means byte access > (I am guessing).
Yes, I came to that conclusion reading pciutils sources. I discovered they also had a man page explaining that -) > I think that we are only doing word accesses, thus > we probably need to read, mask modify write the byte. I have not > verified any of that, these are guesses... Look at the pcictl source > code. I try writting at register 0xe4, but when reading again it is still 0. if (pcibus_conf_read(fd, 5, 0, 1, 0x00e4, &val) != 0) err(EX_OSERR, "pcibus_conf_read failed"); printf("reg = 0x00e4, val = 0x%08x\n", val); val = (val & 0xff00ffff) | 0x002e0000; if (pcibus_conf_write(fd, 5, 0, 1, 0x00e4, val) != 0) err(EX_OSERR, "pcibus_conf_write failed"); -- Emmanuel Dreyfus m...@netbsd.org