PORT_BASE
#define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
int offset = HC_BASE(unit >> 2) + PORT_BASE(unit & 0x03);
if (ATA_INL(ctlr->r_mem, PORT_BASE(0) + SATA_PHYCFG_OFS) != 0)
int offset = PORT_BASE(unit & 0x03);