PCIR_BARS
#define PCIR_MAPS PCIR_BARS
#define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
#define PCI_RID2BAR(rid) (((rid) - PCIR_BARS) / 4)
rid = PCIR_BARS;
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BARS,
#ifndef PCIR_BARS
#define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
#if defined(PCIR_MAPS) && !defined(PCIR_BARS)
# define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
sc->reg_res_id = PCIR_BARS + bar0_offset;