Lines Matching defs:baa
121 struct bootbus_attach_args baa;
123 if (bootbus_setup_attach_args(sc, sc->sc_bustag, node, &baa))
126 config_found(self, &baa, bootbus_print,
130 bootbus_destroy_attach_args(&baa);
137 struct bootbus_attach_args *baa = aux;
140 cf->cf_loc[BOOTBUSCF_SLOT] != baa->ba_slot)
144 cf->cf_loc[BOOTBUSCF_OFFSET] != baa->ba_offset)
153 struct bootbus_attach_args *baa = aux;
157 aprint_normal("%s at %s", baa->ba_name, pnp);
158 aprint_normal(" slot %d offset 0x%x", baa->ba_slot, baa->ba_offset);
159 for (i = 0; i < baa->ba_nintr; i++)
160 aprint_normal(" ipl %d", baa->ba_intr[i].oi_pri);
167 int node, struct bootbus_attach_args *baa)
171 memset(baa, 0, sizeof(*baa));
173 error = prom_getprop(node, "name", 1, &n, &baa->ba_name);
176 baa->ba_name[n] = '\0';
178 baa->ba_bustag = bustag;
179 baa->ba_node = node;
182 &baa->ba_nreg, &baa->ba_reg);
184 bootbus_destroy_attach_args(baa);
189 &baa->ba_nintr, &baa->ba_intr);
191 bootbus_destroy_attach_args(baa);
196 &baa->ba_npromvaddrs, &baa->ba_promvaddrs);
198 bootbus_destroy_attach_args(baa);
206 bootbus_destroy_attach_args(struct bootbus_attach_args *baa)
209 if (baa->ba_name != NULL)
210 free(baa->ba_name, M_DEVBUF);
212 if (baa->ba_reg != NULL)
213 free(baa->ba_reg, M_DEVBUF);
215 if (baa->ba_intr != NULL)
216 free(baa->ba_intr, M_DEVBUF);
218 if (baa->ba_promvaddrs != NULL)
219 free(baa->ba_promvaddrs, M_DEVBUF);