Home | History | Annotate | Download | only in tc

Lines Matching refs:si

129 	struct stic_info *si;
138 si = &stic_consinfo;
142 si = &stic_consinfo;
144 si = malloc(sizeof(*si), M_DEVBUF, M_WAITOK | M_ZERO);
146 si->si_slotbase = ta->ta_addr;
147 pxg_init(si);
151 pxg->pxg_si = si;
152 si->si_dv = self;
153 tc_intr_establish(parent, ta->ta_cookie, IPL_TTY, pxg_intr, si);
155 printf(": %d plane, %dx%d stamp, %dkB SRAM\n", si->si_depth,
156 si->si_stampw, si->si_stamph, (int)si->si_buf_size >> 10);
158 stic_attach(self, si, console);
163 pxg_load_fwseg(si, &pxg_fwsegs[i]);
166 si->si_slotbase[PXG_I860_START_OFFSET >> 2] = 1;
175 struct stic_info *si;
177 si = &stic_consinfo;
178 si->si_slotbase = addr;
179 pxg_init(si);
180 stic_cnattach(si);
184 pxg_init(struct stic_info *si)
189 kva = (void *)si->si_slotbase;
191 si->si_vdac = (uint32_t *)(kva + PXG_VDAC_OFFSET);
192 si->si_vdac_reset = (uint32_t *)(kva + PXG_VDAC_RESET_OFFSET);
193 si->si_stic = (volatile struct stic_regs *)(kva + PXG_STIC_OFFSET);
194 si->si_stamp = (uint32_t *)(kva + PXG_STAMP_OFFSET);
195 si->si_buf = (uint32_t *)(kva + PXG_SRAM_OFFSET);
196 si->si_buf_phys = STIC_KSEG_TO_PHYS(si->si_buf);
197 si->si_buf_size = pxg_probe_sram(si);
198 si->si_disptype = WSDISPLAY_TYPE_PXG;
199 si->si_sxc = (volatile struct stic_xcomm *)si->si_buf;
201 si->si_pbuf_get = pxg_pbuf_get;
202 si->si_pbuf_post = pxg_pbuf_post;
203 si->si_ioctl = pxg_ioctl;
214 if (((si->si_stic->sr_modcl & 0x600) >> 9) > 1)
215 si->si_depth = 24;
217 si->si_depth = pxg_probe_planes(si);
219 stic_init(si);
223 pxg_probe_sram(struct stic_info *si)
227 a = (volatile uint32_t *)si->si_slotbase + (PXG_SRAM_OFFSET >> 2);
236 pxg_probe_planes(struct stic_info *si)
245 vdac = si->si_vdac;
271 struct stic_info *si;
277 si = cookie;
278 sr = si->si_stic;
280 hi = (volatile uint32_t *)si->si_slotbase +
294 stic_flush(si);
304 pxg_pbuf_get(struct stic_info *si)
308 si->si_pbuf_select ^= STIC_PACKET_SIZE;
309 off = si->si_pbuf_select + STIC_XCOMM_SIZE;
310 return ((uint32_t *)((char *)si->si_buf + off));
314 pxg_pbuf_post(struct stic_info *si, uint32_t *buf)
321 sr = si->si_stic;
324 v = ((u_long)buf - (u_long)si->si_buf) >> 9;
325 poll = (volatile uint32_t *)((char *)si->si_slotbase + v);
346 stic_reset(si);
351 pxg_ioctl(struct stic_info *si, u_long cmd, void *data, int flag,
365 if (si->si_dispmode != WSDISPLAYIO_MODE_MAPPED)
367 ptr = (volatile uint32_t *)si->si_slotbase;
390 sxi->sxi_unit = si->si_unit;
391 sxi->sxi_stampw = si->si_stampw;
392 sxi->sxi_stamph = si->si_stamph;
393 sxi->sxi_buf_size = si->si_buf_size;
411 pxg_load_fwseg(struct stic_info *si, struct pxg_fwseg *pfs)
417 dst = (uint32_t *)((void *)si->si_buf + pfs->pfs_addr);