1
Embedded Computing / Re: Is it possible to read AHCI registers using setpci on Linux?
« Last post by magic on Today at 10:46:48 am »AFAIK setpci only access the configuration address space of PCI. If the registers you are looking for are there then you are set. If they are in some MMIO region, I don't see a way of reading them with setpci.
However, the related lspci (with -v flag) will tell you where the MMIO registers are mapped in the CPU physical address space. Knowing this, you could presumably read them by means of /dev/mem or something like that (note: in recent times there were some attempts to restrict or completely remove this mechanism on security grounds and I'm not sure how it works in mainstream distributions these days).
However, the related lspci (with -v flag) will tell you where the MMIO registers are mapped in the CPU physical address space. Knowing this, you could presumably read them by means of /dev/mem or something like that (note: in recent times there were some attempts to restrict or completely remove this mechanism on security grounds and I'm not sure how it works in mainstream distributions these days).