Lines Matching defs:pfour
33 * Support routines for pfour framebuffers.
52 volatile u_int32_t pfour;
56 * Some pfour framebuffers, e.g. the
61 * the pfour register by the time this
67 pfour = *fb->fb_pfour;
70 * Use the pfour register to determine
77 if ((PFOUR_ID(pfour) == PFOUR_ID_COLOR24) ||
78 (PFOUR_ID(pfour) == PFOUR_ID_FASTCOLOR))
81 switch (PFOUR_SIZE(pfour)) {
128 * Probe for a pfour framebuffer. Return values:
130 * PFOUR_NOTPFOUR: framebuffer is not a pfour framebuffer
131 * otherwise returns pfour ID
137 volatile u_int32_t val, save, *pfour = va;
139 /* Read the pfour register. */
140 save = *pfour;
145 * not a pfour framebuffer.
148 *pfour = (val ^ PFOUR_FBTYPE_MASK);
149 if ((*pfour ^ val) & PFOUR_FBTYPE_MASK) {
150 *pfour = save;
176 volatile u_int32_t pfour;
178 pfour = *fb->fb_pfour & ~(PFOUR_REG_INTCLR|PFOUR_REG_VIDEO);
179 *fb->fb_pfour = pfour | (enable ? PFOUR_REG_VIDEO : 0);