1 /* $NetBSD: static_edid.c,v 1.3 2019/01/28 02:45:13 sevan Exp $ */ 2 3 /*- 4 * Copyright (c) 2011 Michael Lorenz 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 #include <sys/cdefs.h> 30 __KERNEL_RCSID(0, "$NetBSD: static_edid.c,v 1.3 2019/01/28 02:45:13 sevan Exp $"); 31 #include <sys/param.h> 32 33 /* EDID blocks for some known hardware that doesn't provide its own */ 34 35 /* 36 * PowerBook Pismo, derived from iBook G4 which needs the same parameters 37 * should work on Lombard, PDQ and TFT Wallstreets as well 38 */ 39 uint8_t edid_pismo[128] = { 40 /* 00 */ 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 41 /* 08 */ 0x06, 0x10, 0x1f, 0x9c, 0x01, 0x01, 0x01, 0x01, 42 /* 10 */ 0x00, 0x0c, 0x01, 0x03, 0x80, 0x1c, 0x15, 0x78, 43 /* 18 */ 0x0a, 0xe7, 0xb5, 0x93, 0x56, 0x4f, 0x8d, 0x28, 44 /* 20 */ 0x1f, 0x50, 0x54, 0x00, 0x08, 0x00, 0x01, 0x01, 45 /* 28 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 46 /* 30 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x64, 0x19, 47 /* 38 */ 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 48 /* 40 */ 0x36, 0x00, 0xf6, 0xb8, 0x00, 0x00, 0x00, 0x18, 49 /* 48 */ 0x00, 0x00, 0x00, 0xfe, 0x00, 0x49, 0x42, 0x4d, 50 /* 50 */ 0x2d, 0x49, 0x41, 0x58, 0x47, 0x30, 0x31, 0x41, 51 /* 58 */ 0x0a, 0x20, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x49, 52 /* 60 */ 0x42, 0x4d, 0x2d, 0x49, 0x41, 0x58, 0x47, 0x30, 53 /* 68 */ 0x31, 0x41, 0x0a, 0x20, 0x00, 0x00, 0x00, 0xfc, 54 /* 70 */ 0x00, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x4c, 55 /* 78 */ 0x43, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x52 56 }; 57 58 /* 59 * iBook G3 Clamshell, obtained from the 2nd revision (firewire). 60 * Should work on the 1st revision. 61 */ 62 uint8_t edid_clamshell[128] = { 63 /* 00 */ 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 64 /* 08 */ 0x06, 0x10, 0x05, 0x9c, 0x01, 0x01, 0x01, 0x01, 65 /* 10 */ 0x09, 0x09, 0x01, 0x01, 0xa8, 0x18, 0x12, 0x80, 66 /* 18 */ 0xe8, 0x16, 0xe0, 0x98, 0x58, 0x51, 0x7e, 0x27, 67 /* 20 */ 0x25, 0x50, 0x54, 0x01, 0x00, 0x00, 0x01, 0x01, 68 /* 28 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 69 /* 30 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x70, 0x17, 70 /* 38 */ 0x20, 0x00, 0x31, 0x58, 0x1c, 0x20, 0x28, 0x80, 71 /* 40 */ 0x14, 0x00, 0x13, 0xc7, 0x10, 0x00, 0x00, 0x18, 72 /* 48 */ 0x00, 0x00, 0x00, 0xfe, 0x00, 0x4c, 0x54, 0x31, 73 /* 50 */ 0x32, 0x31, 0x53, 0x55, 0x2d, 0x31, 0x32, 0x31, 74 /* 58 */ 0x0a, 0x20, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x4c, 75 /* 60 */ 0x54, 0x31, 0x32, 0x31, 0x53, 0x55, 0x2d, 0x31, 76 /* 68 */ 0x32, 0x31, 0x0a, 0x20, 0x00, 0x00, 0x00, 0xfc, 77 /* 70 */ 0x00, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x20, 0x4c, 78 /* 78 */ 0x43, 0x44, 0x0A, 0x20, 0x20, 0x20, 0x00, 0x37 79 }; 80