Lines Matching refs:sa
57 struct sbi_attach_args * const sa = aux;
60 aprint_normal("unknown device 0x%x at %s", sa->sa_type, name);
62 aprint_normal(" tr%d", sa->sa_nexnum);
78 struct sbi_attach_args sa;
80 sa.sa_base = NEX750;
87 for (sa.sa_nexnum = 0; sa.sa_nexnum < 4; sa.sa_nexnum++) {
88 sa.sa_ioh = vax_map_physmem(NEX750 +
89 sizeof(struct nexus) * sa.sa_nexnum, NEXPAGES);
90 if (badaddr((void *)sa.sa_ioh, 4)) {
91 vax_unmap_physmem((vaddr_t)sa.sa_ioh, NEXPAGES);
93 sa.sa_type = NEX_MEM16;
94 config_found(self, (void*)&sa, cmi_print);
101 for (sa.sa_nexnum = 4; sa.sa_nexnum < 7; sa.sa_nexnum++) {
102 sa.sa_ioh = vax_map_physmem(NEX750 +
103 sizeof(struct nexus) * sa.sa_nexnum, NEXPAGES);
104 if (badaddr((void *)sa.sa_ioh, 4)) {
105 vax_unmap_physmem((vaddr_t)sa.sa_ioh, NEXPAGES);
107 sa.sa_type = NEX_MBA;
108 config_found(self, (void*)&sa, cmi_print);
115 sa.sa_nexnum = 8;
116 sa.sa_ioh = vax_map_physmem(NEX750 +
117 sizeof(struct nexus) * sa.sa_nexnum, NEXPAGES);
118 sa.sa_type = NEX_UBA0;
119 config_found(self, (void*)&sa, cmi_print);
121 sa.sa_nexnum = 9;
122 sa.sa_ioh = vax_map_physmem(NEX750 +
123 sizeof(struct nexus) * sa.sa_nexnum, NEXPAGES);
124 sa.sa_type = NEX_UBA1;
125 if (badaddr((void *)sa.sa_ioh, 4))
126 vax_unmap_physmem((vaddr_t)sa.sa_ioh, NEXPAGES);
128 config_found(self, (void*)&sa, cmi_print);