billfarrow / pcimem

Simple program to read & write to a pci device from userspace
GNU General Public License v2.0
309 stars 115 forks source link

Info : Maximum size of pcimem we can access #14

Closed chauhanjoy closed 2 years ago

chauhanjoy commented 3 years ago

Equation : (BAR_SIZE - page_size) - 1

e.g. In my Case, Page size = 4096 BAR_SIZE = 1 MB so, (1048576 - 4096 ) - 1 = 1044479