determine BAR1 address automatically