Home | History | Annotate | Download | only in hpc

Lines Matching defs:hma

84 	struct hpcioman_attach_args hma;
87 hma.hma_hc = (*haa->haa_getchip)(haa->haa_sc, cf->cf_iochip);
93 hma.hma_intr_mode = HPCIO_INTR_HOLD;
98 hma.hma_intr_mode = HPCIO_INTR_THROUGH;
101 hma.hma_intr_mode |= HPCIO_INTR_LEVEL;
103 hma.hma_intr_mode |= HPCIO_INTR_LOW;
105 hma.hma_intr_mode |= HPCIO_INTR_HIGH;
109 hma.hma_intr_mode = HPCIO_INTR_THROUGH;
114 hma.hma_intr_mode = HPCIO_INTR_HOLD;
117 hma.hma_intr_mode |= HPCIO_INTR_EDGE;
120 hma.hma_intr_mode |= HPCIO_INTR_POSEDGE;
123 hma.hma_intr_mode |= HPCIO_INTR_NEGEDGE;
128 hma.hma_intr_mode |= HPCIO_INTR_POSEDGE;
129 hma.hma_intr_mode |= HPCIO_INTR_NEGEDGE;
138 hma.hma_type = cf->cf_type;
139 hma.hma_id = cf->cf_id;
140 hma.hma_port = cf->cf_port;
142 hma.hma_on = 0;
143 hma.hma_off = 1;
145 hma.hma_on = 1;
146 hma.hma_off = 0;
148 hma.hma_initvalue = -1; /* none */
151 hma.hma_initvalue = hma.hma_off;
153 hma.hma_initvalue = hma.hma_on;
155 hma.hma_connect = cf->cf_connect;
157 config_attach(parent, cf, &hma, hpcioman_print, CFARGS_NONE);
165 struct hpcioman_attach_args *hma = aux;
166 int type = hma->hma_type;
170 hma->hma_hc ? hma->hma_hc->hc_name : "not found",
171 hma->hma_port, type, hma->hma_id);
176 if (hma->hma_intr_mode & HPCIO_INTR_EDGE)
178 (hma->hma_intr_mode&HPCIO_INTR_POSEDGE)
180 (hma->hma_intr_mode&HPCIO_INTR_NEGEDGE)
184 (hma->hma_intr_mode&HPCIO_INTR_HIGH) ?
187 if (hma->hma_initvalue != -1)
188 aprint_normal(", initial value %d", hma->hma_initvalue);
189 if (hma->hma_on == 0)