17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate * CDDL HEADER START
37c478bd9Sstevel@tonic-gate *
47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5*4ab75253Smrj * Common Development and Distribution License (the "License").
6*4ab75253Smrj * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate *
87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate * and limitations under the License.
127c478bd9Sstevel@tonic-gate *
137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate *
197c478bd9Sstevel@tonic-gate * CDDL HEADER END
207c478bd9Sstevel@tonic-gate */
21*4ab75253Smrj
227c478bd9Sstevel@tonic-gate /*
237c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
247c478bd9Sstevel@tonic-gate * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate */
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI"
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate /*
307c478bd9Sstevel@tonic-gate * Support routines for VGA drivers
317c478bd9Sstevel@tonic-gate */
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate #include <sys/debug.h>
347c478bd9Sstevel@tonic-gate #include <sys/types.h>
357c478bd9Sstevel@tonic-gate #include <sys/param.h>
367c478bd9Sstevel@tonic-gate #include <sys/time.h>
377c478bd9Sstevel@tonic-gate #include <sys/buf.h>
387c478bd9Sstevel@tonic-gate #include <sys/errno.h>
397c478bd9Sstevel@tonic-gate #include <sys/systm.h>
407c478bd9Sstevel@tonic-gate #include <sys/conf.h>
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate #include <sys/vgareg.h>
437c478bd9Sstevel@tonic-gate #include <sys/vgasubr.h>
447c478bd9Sstevel@tonic-gate #include <sys/cmn_err.h>
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate #include <sys/kmem.h>
477c478bd9Sstevel@tonic-gate #include <sys/conf.h>
487c478bd9Sstevel@tonic-gate #include <sys/ddi.h>
497c478bd9Sstevel@tonic-gate #include <sys/devops.h>
507c478bd9Sstevel@tonic-gate #include <sys/sunddi.h>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate #include <sys/modctl.h>
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate #define GET_HORIZ_END(c) vga_get_crtc(c, VGA_CRTC_H_D_END)
557c478bd9Sstevel@tonic-gate #define GET_VERT_END(c) (vga_get_crtc(c, VGA_CRTC_VDE) \
567c478bd9Sstevel@tonic-gate + (((vga_get_crtc(c, VGA_CRTC_OVFL_REG) >> \
577c478bd9Sstevel@tonic-gate VGA_CRTC_OVFL_REG_VDE8) & 1) << 8) \
587c478bd9Sstevel@tonic-gate + (((vga_get_crtc(c, VGA_CRTC_OVFL_REG) >> \
597c478bd9Sstevel@tonic-gate VGA_CRTC_OVFL_REG_VDE9) & 1) << 9))
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate #define GET_VERT_X2(c) \
627c478bd9Sstevel@tonic-gate (vga_get_crtc(c, VGA_CRTC_CRT_MD) & VGA_CRTC_CRT_MD_VT_X2)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate unsigned char VGA_CRTC_TEXT[NUM_CRTC_REG] = {
657c478bd9Sstevel@tonic-gate 0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f,
667c478bd9Sstevel@tonic-gate 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x05, 0x00,
677c478bd9Sstevel@tonic-gate 0x9c, 0x8e, 0x8f, 0x28, 0x1f, 0x96, 0xb9, 0xa3,
687c478bd9Sstevel@tonic-gate 0xff };
697c478bd9Sstevel@tonic-gate unsigned char VGA_SEQ_TEXT[NUM_SEQ_REG] = {
707c478bd9Sstevel@tonic-gate 0x03, 0x00, 0x03, 0x00, 0x02 };
717c478bd9Sstevel@tonic-gate unsigned char VGA_GRC_TEXT[NUM_GRC_REG] = {
727c478bd9Sstevel@tonic-gate 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x00, 0xff };
737c478bd9Sstevel@tonic-gate unsigned char VGA_ATR_TEXT[NUM_ATR_REG] = {
747c478bd9Sstevel@tonic-gate 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
757c478bd9Sstevel@tonic-gate 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
767c478bd9Sstevel@tonic-gate 0x0c, 0x00, 0x0f, 0x08, 0x00 };
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate void
vga_get_hardware_settings(struct vgaregmap * reg,int * width,int * height)797c478bd9Sstevel@tonic-gate vga_get_hardware_settings(struct vgaregmap *reg, int *width, int *height)
807c478bd9Sstevel@tonic-gate {
817c478bd9Sstevel@tonic-gate *width = (GET_HORIZ_END(reg)+1)*8;
827c478bd9Sstevel@tonic-gate *height = GET_VERT_END(reg)+1;
837c478bd9Sstevel@tonic-gate if (GET_VERT_X2(reg)) *height *= 2;
847c478bd9Sstevel@tonic-gate }
857c478bd9Sstevel@tonic-gate
86*4ab75253Smrj #define PUTB(reg, off, v) ddi_put8(reg->handle, reg->addr + (off), v)
87*4ab75253Smrj #define GETB(reg, off) ddi_get8(reg->handle, reg->addr + (off))
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate int
vga_get_reg(struct vgaregmap * reg,int indexreg)907c478bd9Sstevel@tonic-gate vga_get_reg(struct vgaregmap *reg, int indexreg)
917c478bd9Sstevel@tonic-gate {
927c478bd9Sstevel@tonic-gate return (GETB(reg, indexreg));
937c478bd9Sstevel@tonic-gate }
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate void
vga_set_reg(struct vgaregmap * reg,int indexreg,int v)967c478bd9Sstevel@tonic-gate vga_set_reg(struct vgaregmap *reg, int indexreg, int v)
977c478bd9Sstevel@tonic-gate {
987c478bd9Sstevel@tonic-gate PUTB(reg, indexreg, v);
997c478bd9Sstevel@tonic-gate }
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate int
vga_get_crtc(struct vgaregmap * reg,int i)1027c478bd9Sstevel@tonic-gate vga_get_crtc(struct vgaregmap *reg, int i)
1037c478bd9Sstevel@tonic-gate {
1047c478bd9Sstevel@tonic-gate return (vga_get_indexed(reg, VGA_CRTC_ADR, VGA_CRTC_DATA, i));
1057c478bd9Sstevel@tonic-gate }
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gate void
vga_set_crtc(struct vgaregmap * reg,int i,int v)1087c478bd9Sstevel@tonic-gate vga_set_crtc(struct vgaregmap *reg, int i, int v)
1097c478bd9Sstevel@tonic-gate {
1107c478bd9Sstevel@tonic-gate vga_set_indexed(reg, VGA_CRTC_ADR, VGA_CRTC_DATA, i, v);
1117c478bd9Sstevel@tonic-gate }
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gate int
vga_get_seq(struct vgaregmap * reg,int i)1147c478bd9Sstevel@tonic-gate vga_get_seq(struct vgaregmap *reg, int i)
1157c478bd9Sstevel@tonic-gate {
1167c478bd9Sstevel@tonic-gate return (vga_get_indexed(reg, VGA_SEQ_ADR, VGA_SEQ_DATA, i));
1177c478bd9Sstevel@tonic-gate }
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gate void
vga_set_seq(struct vgaregmap * reg,int i,int v)1207c478bd9Sstevel@tonic-gate vga_set_seq(struct vgaregmap *reg, int i, int v)
1217c478bd9Sstevel@tonic-gate {
1227c478bd9Sstevel@tonic-gate vga_set_indexed(reg, VGA_SEQ_ADR, VGA_SEQ_DATA, i, v);
1237c478bd9Sstevel@tonic-gate }
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gate int
vga_get_grc(struct vgaregmap * reg,int i)1267c478bd9Sstevel@tonic-gate vga_get_grc(struct vgaregmap *reg, int i)
1277c478bd9Sstevel@tonic-gate {
1287c478bd9Sstevel@tonic-gate return (vga_get_indexed(reg, VGA_GRC_ADR, VGA_GRC_DATA, i));
1297c478bd9Sstevel@tonic-gate }
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate void
vga_set_grc(struct vgaregmap * reg,int i,int v)1327c478bd9Sstevel@tonic-gate vga_set_grc(struct vgaregmap *reg, int i, int v)
1337c478bd9Sstevel@tonic-gate {
1347c478bd9Sstevel@tonic-gate vga_set_indexed(reg, VGA_GRC_ADR, VGA_GRC_DATA, i, v);
1357c478bd9Sstevel@tonic-gate }
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gate int
vga_get_atr(struct vgaregmap * reg,int i)1387c478bd9Sstevel@tonic-gate vga_get_atr(struct vgaregmap *reg, int i)
1397c478bd9Sstevel@tonic-gate {
1407c478bd9Sstevel@tonic-gate int ret;
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate (void) GETB(reg, CGA_STAT);
1437c478bd9Sstevel@tonic-gate PUTB(reg, VGA_ATR_AD, i);
1447c478bd9Sstevel@tonic-gate ret = GETB(reg, VGA_ATR_DATA);
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gate (void) GETB(reg, CGA_STAT);
1477c478bd9Sstevel@tonic-gate PUTB(reg, VGA_ATR_AD, VGA_ATR_ENB_PLT);
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gate return (ret);
1507c478bd9Sstevel@tonic-gate }
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gate void
vga_set_atr(struct vgaregmap * reg,int i,int v)1537c478bd9Sstevel@tonic-gate vga_set_atr(struct vgaregmap *reg, int i, int v)
1547c478bd9Sstevel@tonic-gate {
1557c478bd9Sstevel@tonic-gate (void) GETB(reg, CGA_STAT);
1567c478bd9Sstevel@tonic-gate PUTB(reg, VGA_ATR_AD, i);
1577c478bd9Sstevel@tonic-gate PUTB(reg, VGA_ATR_AD, v);
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate (void) GETB(reg, CGA_STAT);
1607c478bd9Sstevel@tonic-gate PUTB(reg, VGA_ATR_AD, VGA_ATR_ENB_PLT);
1617c478bd9Sstevel@tonic-gate }
1627c478bd9Sstevel@tonic-gate
1637c478bd9Sstevel@tonic-gate void
vga_set_indexed(struct vgaregmap * reg,int indexreg,int datareg,unsigned char index,unsigned char val)1647c478bd9Sstevel@tonic-gate vga_set_indexed(
1657c478bd9Sstevel@tonic-gate struct vgaregmap *reg,
1667c478bd9Sstevel@tonic-gate int indexreg,
1677c478bd9Sstevel@tonic-gate int datareg,
1687c478bd9Sstevel@tonic-gate unsigned char index,
1697c478bd9Sstevel@tonic-gate unsigned char val)
1707c478bd9Sstevel@tonic-gate {
1717c478bd9Sstevel@tonic-gate PUTB(reg, indexreg, index);
1727c478bd9Sstevel@tonic-gate PUTB(reg, datareg, val);
1737c478bd9Sstevel@tonic-gate }
1747c478bd9Sstevel@tonic-gate
1757c478bd9Sstevel@tonic-gate int
vga_get_indexed(struct vgaregmap * reg,int indexreg,int datareg,unsigned char index)1767c478bd9Sstevel@tonic-gate vga_get_indexed(
1777c478bd9Sstevel@tonic-gate struct vgaregmap *reg,
1787c478bd9Sstevel@tonic-gate int indexreg,
1797c478bd9Sstevel@tonic-gate int datareg,
1807c478bd9Sstevel@tonic-gate unsigned char index)
1817c478bd9Sstevel@tonic-gate {
1827c478bd9Sstevel@tonic-gate PUTB(reg, indexreg, index);
1837c478bd9Sstevel@tonic-gate return (GETB(reg, datareg));
1847c478bd9Sstevel@tonic-gate }
1857c478bd9Sstevel@tonic-gate
1867c478bd9Sstevel@tonic-gate /*
1877c478bd9Sstevel@tonic-gate * VGA DAC access functions
1887c478bd9Sstevel@tonic-gate * Note: These assume a VGA-style 6-bit DAC. Some DACs are 8 bits
1897c478bd9Sstevel@tonic-gate * wide. These functions are not appropriate for those DACs.
1907c478bd9Sstevel@tonic-gate */
1917c478bd9Sstevel@tonic-gate void
vga_put_cmap(struct vgaregmap * reg,int index,unsigned char r,unsigned char g,unsigned char b)1927c478bd9Sstevel@tonic-gate vga_put_cmap(
1937c478bd9Sstevel@tonic-gate struct vgaregmap *reg,
1947c478bd9Sstevel@tonic-gate int index,
1957c478bd9Sstevel@tonic-gate unsigned char r,
1967c478bd9Sstevel@tonic-gate unsigned char g,
1977c478bd9Sstevel@tonic-gate unsigned char b)
1987c478bd9Sstevel@tonic-gate {
1997c478bd9Sstevel@tonic-gate
2007c478bd9Sstevel@tonic-gate PUTB(reg, VGA_DAC_WR_AD, index);
2017c478bd9Sstevel@tonic-gate PUTB(reg, VGA_DAC_DATA, r >> 2);
2027c478bd9Sstevel@tonic-gate PUTB(reg, VGA_DAC_DATA, g >> 2);
2037c478bd9Sstevel@tonic-gate PUTB(reg, VGA_DAC_DATA, b >> 2);
2047c478bd9Sstevel@tonic-gate }
2057c478bd9Sstevel@tonic-gate
2067c478bd9Sstevel@tonic-gate void
vga_get_cmap(struct vgaregmap * reg,int index,unsigned char * r,unsigned char * g,unsigned char * b)2077c478bd9Sstevel@tonic-gate vga_get_cmap(
2087c478bd9Sstevel@tonic-gate struct vgaregmap *reg,
2097c478bd9Sstevel@tonic-gate int index,
2107c478bd9Sstevel@tonic-gate unsigned char *r,
2117c478bd9Sstevel@tonic-gate unsigned char *g,
2127c478bd9Sstevel@tonic-gate unsigned char *b)
2137c478bd9Sstevel@tonic-gate {
2147c478bd9Sstevel@tonic-gate PUTB(reg, VGA_DAC_RD_AD, index);
2157c478bd9Sstevel@tonic-gate *r = GETB(reg, VGA_DAC_DATA) << 2;
2167c478bd9Sstevel@tonic-gate *g = GETB(reg, VGA_DAC_DATA) << 2;
2177c478bd9Sstevel@tonic-gate *b = GETB(reg, VGA_DAC_DATA) << 2;
2187c478bd9Sstevel@tonic-gate }
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gate #ifdef DEBUG
2217c478bd9Sstevel@tonic-gate
2227c478bd9Sstevel@tonic-gate void
vga_dump_regs(struct vgaregmap * reg,int maxseq,int maxcrtc,int maxatr,int maxgrc)2237c478bd9Sstevel@tonic-gate vga_dump_regs(struct vgaregmap *reg,
2247c478bd9Sstevel@tonic-gate int maxseq, int maxcrtc, int maxatr, int maxgrc)
2257c478bd9Sstevel@tonic-gate {
2267c478bd9Sstevel@tonic-gate int i, j;
2277c478bd9Sstevel@tonic-gate
2287c478bd9Sstevel@tonic-gate printf("Sequencer regs:\n");
2297c478bd9Sstevel@tonic-gate for (i = 0; i < maxseq; i += 0x10) {
2307c478bd9Sstevel@tonic-gate printf("%2x: ", i);
2317c478bd9Sstevel@tonic-gate for (j = 0; j < 0x08; j++) {
2327c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_seq(reg, i+j));
2337c478bd9Sstevel@tonic-gate }
2347c478bd9Sstevel@tonic-gate printf("- ");
2357c478bd9Sstevel@tonic-gate for (; j < 0x10; j++) {
2367c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_seq(reg, i+j));
2377c478bd9Sstevel@tonic-gate }
2387c478bd9Sstevel@tonic-gate printf("\n");
2397c478bd9Sstevel@tonic-gate }
2407c478bd9Sstevel@tonic-gate printf("\nCRT Controller regs:\n");
2417c478bd9Sstevel@tonic-gate for (i = 0; i < maxcrtc; i += 0x10) {
2427c478bd9Sstevel@tonic-gate printf("%2x: ", i);
2437c478bd9Sstevel@tonic-gate for (j = 0; j < 0x08; j++) {
2447c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_crtc(reg, i+j));
2457c478bd9Sstevel@tonic-gate }
2467c478bd9Sstevel@tonic-gate printf("- ");
2477c478bd9Sstevel@tonic-gate for (; j < 0x10; j++) {
2487c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_crtc(reg, i+j));
2497c478bd9Sstevel@tonic-gate }
2507c478bd9Sstevel@tonic-gate printf("\n");
2517c478bd9Sstevel@tonic-gate }
2527c478bd9Sstevel@tonic-gate printf("\nAttribute Controller regs:\n");
2537c478bd9Sstevel@tonic-gate for (i = 0; i < maxatr; i += 0x10) {
2547c478bd9Sstevel@tonic-gate printf("%2x: ", i);
2557c478bd9Sstevel@tonic-gate for (j = 0; j < 0x08; j++) {
2567c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_atr(reg, i+j));
2577c478bd9Sstevel@tonic-gate }
2587c478bd9Sstevel@tonic-gate printf("- ");
2597c478bd9Sstevel@tonic-gate for (; j < 0x10; j++) {
2607c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_atr(reg, i+j));
2617c478bd9Sstevel@tonic-gate }
2627c478bd9Sstevel@tonic-gate printf("\n");
2637c478bd9Sstevel@tonic-gate }
2647c478bd9Sstevel@tonic-gate printf("\nGraphics Controller regs:\n");
2657c478bd9Sstevel@tonic-gate for (i = 0; i < maxgrc; i += 0x10) {
2667c478bd9Sstevel@tonic-gate printf("%2x: ", i);
2677c478bd9Sstevel@tonic-gate for (j = 0; j < 0x08; j++) {
2687c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_grc(reg, i+j));
2697c478bd9Sstevel@tonic-gate }
2707c478bd9Sstevel@tonic-gate printf("- ");
2717c478bd9Sstevel@tonic-gate for (; j < 0x10; j++) {
2727c478bd9Sstevel@tonic-gate printf("%2x ", vga_get_grc(reg, i+j));
2737c478bd9Sstevel@tonic-gate }
2747c478bd9Sstevel@tonic-gate printf("\n");
2757c478bd9Sstevel@tonic-gate }
2767c478bd9Sstevel@tonic-gate }
2777c478bd9Sstevel@tonic-gate #endif /* DEBUG */
2787c478bd9Sstevel@tonic-gate
2797c478bd9Sstevel@tonic-gate /*
2807c478bd9Sstevel@tonic-gate * VGA 80X25 text mode standard palette
2817c478bd9Sstevel@tonic-gate */
2827c478bd9Sstevel@tonic-gate unsigned char VGA_TEXT_PALETTES[64][3] = {
2837c478bd9Sstevel@tonic-gate { 0x00, 0x00, 0x00 },
2847c478bd9Sstevel@tonic-gate { 0x00, 0x00, 0x2A },
2857c478bd9Sstevel@tonic-gate { 0x00, 0x2A, 0x00 },
2867c478bd9Sstevel@tonic-gate { 0x00, 0x2A, 0x2A },
2877c478bd9Sstevel@tonic-gate { 0x2A, 0x00, 0x00 },
2887c478bd9Sstevel@tonic-gate { 0x2A, 0x00, 0x2A },
2897c478bd9Sstevel@tonic-gate { 0x2A, 0x2A, 0x00 },
2907c478bd9Sstevel@tonic-gate { 0x2A, 0x2A, 0x2A },
2917c478bd9Sstevel@tonic-gate { 0x00, 0x00, 0x15 },
2927c478bd9Sstevel@tonic-gate { 0x00, 0x00, 0x3F },
2937c478bd9Sstevel@tonic-gate { 0x00, 0x2A, 0x15 },
2947c478bd9Sstevel@tonic-gate { 0x00, 0x2A, 0x3F },
2957c478bd9Sstevel@tonic-gate { 0x2A, 0x00, 0x15 },
2967c478bd9Sstevel@tonic-gate { 0x2A, 0x00, 0x3F },
2977c478bd9Sstevel@tonic-gate { 0x2A, 0x2A, 0x15 },
2987c478bd9Sstevel@tonic-gate { 0x2A, 0x2A, 0x3F },
2997c478bd9Sstevel@tonic-gate { 0x00, 0x15, 0x00 },
3007c478bd9Sstevel@tonic-gate { 0x00, 0x15, 0x2A },
3017c478bd9Sstevel@tonic-gate { 0x00, 0x3F, 0x00 },
3027c478bd9Sstevel@tonic-gate { 0x00, 0x3F, 0x2A },
3037c478bd9Sstevel@tonic-gate { 0x2A, 0x15, 0x00 },
3047c478bd9Sstevel@tonic-gate { 0x2A, 0x15, 0x2A },
3057c478bd9Sstevel@tonic-gate { 0x2A, 0x3F, 0x00 },
3067c478bd9Sstevel@tonic-gate { 0x2A, 0x3F, 0x2A },
3077c478bd9Sstevel@tonic-gate { 0x00, 0x15, 0x15 },
3087c478bd9Sstevel@tonic-gate { 0x00, 0x15, 0x3F },
3097c478bd9Sstevel@tonic-gate { 0x00, 0x3F, 0x15 },
3107c478bd9Sstevel@tonic-gate { 0x00, 0x3F, 0x3F },
3117c478bd9Sstevel@tonic-gate { 0x2A, 0x15, 0x15 },
3127c478bd9Sstevel@tonic-gate { 0x2A, 0x15, 0x3F },
3137c478bd9Sstevel@tonic-gate { 0x2A, 0x3F, 0x15 },
3147c478bd9Sstevel@tonic-gate { 0x2A, 0x3F, 0x3F },
3157c478bd9Sstevel@tonic-gate { 0x15, 0x00, 0x00 },
3167c478bd9Sstevel@tonic-gate { 0x15, 0x00, 0x2A },
3177c478bd9Sstevel@tonic-gate { 0x15, 0x2A, 0x00 },
3187c478bd9Sstevel@tonic-gate { 0x15, 0x2A, 0x2A },
3197c478bd9Sstevel@tonic-gate { 0x3F, 0x00, 0x00 },
3207c478bd9Sstevel@tonic-gate { 0x3F, 0x00, 0x2A },
3217c478bd9Sstevel@tonic-gate { 0x3F, 0x2A, 0x00 },
3227c478bd9Sstevel@tonic-gate { 0x3F, 0x2A, 0x2A },
3237c478bd9Sstevel@tonic-gate { 0x15, 0x00, 0x15 },
3247c478bd9Sstevel@tonic-gate { 0x15, 0x00, 0x3F },
3257c478bd9Sstevel@tonic-gate { 0x15, 0x2A, 0x15 },
3267c478bd9Sstevel@tonic-gate { 0x15, 0x2A, 0x3F },
3277c478bd9Sstevel@tonic-gate { 0x3F, 0x00, 0x15 },
3287c478bd9Sstevel@tonic-gate { 0x3F, 0x00, 0x3F },
3297c478bd9Sstevel@tonic-gate { 0x3F, 0x2A, 0x15 },
3307c478bd9Sstevel@tonic-gate { 0x3F, 0x2A, 0x3F },
3317c478bd9Sstevel@tonic-gate { 0x15, 0x15, 0x00 },
3327c478bd9Sstevel@tonic-gate { 0x15, 0x15, 0x2A },
3337c478bd9Sstevel@tonic-gate { 0x15, 0x3F, 0x00 },
3347c478bd9Sstevel@tonic-gate { 0x15, 0x3F, 0x2A },
3357c478bd9Sstevel@tonic-gate { 0x3F, 0x15, 0x00 },
3367c478bd9Sstevel@tonic-gate { 0x3F, 0x15, 0x2A },
3377c478bd9Sstevel@tonic-gate { 0x3F, 0x3F, 0x00 },
3387c478bd9Sstevel@tonic-gate { 0x3F, 0x3F, 0x2A },
3397c478bd9Sstevel@tonic-gate { 0x15, 0x15, 0x15 },
3407c478bd9Sstevel@tonic-gate { 0x15, 0x15, 0x3F },
3417c478bd9Sstevel@tonic-gate { 0x15, 0x3F, 0x15 },
3427c478bd9Sstevel@tonic-gate { 0x15, 0x3F, 0x3F },
3437c478bd9Sstevel@tonic-gate { 0x3F, 0x15, 0x15 },
3447c478bd9Sstevel@tonic-gate { 0x3F, 0x15, 0x3F },
3457c478bd9Sstevel@tonic-gate { 0x3F, 0x3F, 0x15 },
3467c478bd9Sstevel@tonic-gate { 0x3F, 0x3F, 0x3F }
3477c478bd9Sstevel@tonic-gate };
348