Lines Matching defs:hba
94 PHBA hba = (PHBA)osext;
96 hba->pcibar[index].rid = 0x10 + index * 4;
98 if (pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4) & 1)
99 hba->pcibar[index].type = SYS_RES_IOPORT;
101 hba->pcibar[index].type = SYS_RES_MEMORY;
103 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
104 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
106 hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
107 return hba->pcibar[index].base;
112 PHBA hba = (PHBA)osext;
116 if (hba->pcibar[index].base==base) {
117 bus_release_resource(hba->pcidev, hba->pcibar[index].type,
118 hba->pcibar[index].rid, hba->pcibar[index].res);
119 hba->pcibar[index].base = 0;