cbalu 1 Newbie Poster

I need to read the BAR (Base Address Register) Length in PCI. How can i do that. I can able to find the Devices present in the PCI using the CF8 and CFC ports. But, how can i get length of the BAR Registers