Lines Matching refs:si

127 	struct stic_info *si;  in px_attach()  local
139 si = &stic_consinfo; in px_attach()
143 si = &stic_consinfo; in px_attach()
145 si = malloc(sizeof(*si), M_DEVBUF, M_WAITOK | M_ZERO); in px_attach()
147 si->si_slotbase = ta->ta_addr; in px_attach()
148 px_init(si, 0); in px_attach()
152 px->px_si = si; in px_attach()
153 si->si_dv = self; in px_attach()
154 tc_intr_establish(parent, ta->ta_cookie, IPL_TTY, px_intr, si); in px_attach()
156 printf(": 8 plane, %dx%d stamp\n", si->si_stampw, si->si_stamph); in px_attach()
160 si->si_buf_phys + STIC_XCOMM_SIZE; in px_attach()
163 ((char *)si->si_slotbase + (v >> 9)); in px_attach()
166 stic_attach(self, si, console); in px_attach()
172 struct stic_info *si; in px_cnattach() local
174 si = &stic_consinfo; in px_cnattach()
175 si->si_slotbase = addr; in px_cnattach()
176 px_init(si, 1); in px_cnattach()
177 stic_cnattach(si); in px_cnattach()
181 px_init(struct stic_info *si, int bootstrap) in px_init() argument
187 kva = (void *)si->si_slotbase; in px_init()
212 si->si_vdac = (uint32_t *)(kva + PX_VDAC_OFFSET); in px_init()
213 si->si_vdac_reset = (uint32_t *)(kva + PX_VDAC_RESET_OFFSET); in px_init()
214 si->si_stic = (volatile struct stic_regs *)(kva + PX_STIC_OFFSET); in px_init()
215 si->si_stamp = (uint32_t *)(kva + PX_STAMP_OFFSET); in px_init()
216 si->si_buf = (uint32_t *)TC_PHYS_TO_UNCACHED(bpa); in px_init()
217 si->si_buf_phys = bpa; in px_init()
218 si->si_buf_size = PX_BUF_SIZE; in px_init()
219 si->si_disptype = WSDISPLAY_TYPE_PX; in px_init()
220 si->si_depth = 8; in px_init()
221 si->si_sxc = (volatile struct stic_xcomm *)si->si_buf; in px_init()
223 si->si_pbuf_get = px_pbuf_get; in px_init()
224 si->si_pbuf_post = px_pbuf_post; in px_init()
225 si->si_ioctl = px_ioctl; in px_init()
227 memset(si->si_buf, 0, PX_BUF_SIZE); in px_init()
229 stic_init(si); in px_init()
237 struct stic_info *si; in px_intr() local
241 si = cookie; in px_intr()
242 px = device_private(si->si_dv); in px_intr()
243 sr = si->si_stic; in px_intr()
245 sxc = si->si_sxc; in px_intr()
257 stic_flush(si); in px_intr()
285 if ((si->si_hwflags & PXF_QUEUE) != 0 && (state & STIC_INT_P) != 0) { in px_intr()
304 if ((si->si_hwflags & PXF_QUEUE) != 0 && (state & STIC_INT_P_EN) == 0) in px_intr()
311 px_pbuf_get(struct stic_info *si) in px_pbuf_get() argument
315 si->si_pbuf_select ^= STIC_PACKET_SIZE; in px_pbuf_get()
316 off = si->si_pbuf_select + STIC_XCOMM_SIZE; in px_pbuf_get()
317 return ((uint32_t *)((char *)si->si_buf + off)); in px_pbuf_get()
321 px_pbuf_post(struct stic_info *si, uint32_t *buf) in px_pbuf_post() argument
328 sr = si->si_stic; in px_pbuf_post()
333 poll = (volatile uint32_t *)((char *)si->si_slotbase + (v >> 9)); in px_pbuf_post()
354 stic_reset(si); in px_pbuf_post()
359 px_ioctl(struct stic_info *si, u_long cmd, void *data, int flag, in px_ioctl() argument
367 sr = si->si_stic; in px_ioctl()
371 if (si->si_dispmode != WSDISPLAYIO_MODE_MAPPED || in px_ioctl()
372 (si->si_hwflags & PXF_QUEUE) != 0) { in px_ioctl()
377 sxc = si->si_sxc; in px_ioctl()
386 si->si_hwflags |= PXF_QUEUE; in px_ioctl()
396 si->si_hwflags &= ~PXF_QUEUE; in px_ioctl()
405 sxi->sxi_unit = si->si_unit; in px_ioctl()
406 sxi->sxi_stampw = si->si_stampw; in px_ioctl()
407 sxi->sxi_stamph = si->si_stamph; in px_ioctl()
408 sxi->sxi_buf_size = si->si_buf_size; in px_ioctl()
409 sxi->sxi_buf_phys = (u_int)si->si_buf_phys; in px_ioctl()