HBA_PORT_SPACE_SIZE
#define PCI_PORT_ADDR(a) ((a) & (HBA_PORT_SPACE_SIZE - 1))
res->end = res->start + (HBA_PORT_SPACE_SIZE - 1);
r->end = r->start + HBA_PORT_SPACE_SIZE - 1;
r->end = r->start + (READ_REG32(lba_dev->hba.base_addr + LBA_IOS_MASK) ^ (HBA_PORT_SPACE_SIZE - 1));