/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * valkyriefb.h: Constants of all sorts for valkyriefb * * Created 8 August 1998 by * Martin Costabel <costabel@wanadoo.fr> and Kevin Schoedel * * Vmode-switching changes and vmode 15/17 modifications created 29 August * 1998 by Barry K. Nathan <barryn@pobox.com>. * * vmode 10 changed by Steven Borley <sjb@salix.demon.co.uk>, 14 mai 2000 * * Ported to 68k Macintosh by David Huggins-Daines <dhd@debian.org> * * Based directly on: * * controlfb.h: Constants of all sorts for controlfb * Copyright (C) 1998 Daniel Jacobowitz <dan@debian.org> * * pmc-valkyrie.h: Console support for PowerMac "control" display adaptor. * Copyright (C) 1997 Paul Mackerras. * * pmc-valkyrie.c: Console support for PowerMac "control" display adaptor. * Copyright (C) 1997 Paul Mackerras. * * and indirectly from: * * pmc-control.h: Console support for PowerMac "control" display adaptor. * Copyright (C) 1997 Paul Mackerras. * * pmc-control.c: Console support for PowerMac "control" display adaptor. * Copyright (C) 1996 Paul Mackerras. * * platinumfb.c: Console support for PowerMac "platinum" display adaptor. * Copyright (C) 1998 Jon Howell
*/
#ifdef CONFIG_MAC /* Valkyrie registers are word-aligned on m68k */ #define VALKYRIE_REG_PADSIZE 3 #else #define VALKYRIE_REG_PADSIZE 7 #endif
/* * Structure of the registers for the Valkyrie colormap registers.
*/ struct cmap_regs { unsignedchar addr; char pad1[VALKYRIE_REG_PADSIZE]; unsignedchar lut;
};
/* * Structure of the registers for the "valkyrie" display adaptor.
*/
/* * Register initialization tables for the valkyrie display. * * Dot clock rate is * 3.9064MHz * 2**clock_params[2] * clock_params[1] / clock_params[0].
*/ struct valkyrie_regvals { unsignedchar mode; unsignedchar clock_params[3]; int pitch[2]; /* bytes/line, indexed by color_mode */ int hres; int vres;
};
#ifndef CONFIG_MAC /* Register values for 1024x768, 75Hz mode (17) */ /* I'm not sure which mode this is (16 or 17), so I'm defining it as 17, * since the equivalent mode in controlfb (which I adapted this from) is * also 17. Just because MacOS can't do this on Valkyrie doesn't mean we * can't! :) * * I was going to use 12, 31, 3, which I found by myself, but instead I'm * using 11, 28, 3 like controlfb, for consistency's sake.
*/
/* Register values for 1024x768, 72Hz mode (15) */ /* This used to be 12, 30, 3 for pixel clock = 78.12MHz for V=72.12Hz, but * that didn't match MacOS in the same video mode on this chip, and it also * caused the 15" Apple Studio Display to not work in this mode. While this * mode still doesn't match MacOS exactly (as far as I can tell), it's a lot * closer now, and it works with the Apple Studio Display. * * Yes, even though MacOS calls it "72Hz", in reality it's about 70Hz.
*/ staticstruct valkyrie_regvals valkyrie_reg_init_15 = {
15,
{ 12, 29, 3 }, /* pixel clock = 75.52MHz for V=69.71Hz? */ /* I interpolated the V=69.71 from the vmode 14 and old 15 * numbers. Is this result correct?
*/
{ 1024, 0 },
1024, 768
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.