/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	pmagdv.h,v $
 * Revision 1.1.3.2  92/02/13  17:44:06  Barbara_Corriero
 * 	Ported from Ultrix 4.L
 * 	[92/02/12  19:02:03  Barbara_Corriero]
 * 
 * $EndLog$
 */
/************************************************************************
 *									*
 *			Copyright (c) 1989 by				*
 *		Digital Equipment Corporation, Maynard, MA		*
 *			All rights reserved.				*
 *									*
 *   This software is furnished under a license and may be used and	*
 *   copied  only  in accordance with the terms of such license and	*
 *   with the  inclusion  of  the  above  copyright  notice.   This	*
 *   software  or  any  other copies thereof may not be provided or	*
 *   otherwise made available to any other person.  No title to and	*
 *   ownership of the software is hereby transferred.			*
 *									*
 *   The information in this software is subject to change  without	*
 *   notice  and should not be construed as a commitment by Digital	*
 *   Equipment Corporation.						*
 *									*
 *   Digital assumes no responsibility for the use  or  reliability	*
 *   of its software on equipment which is not supplied by Digital.	*
 *									*
 ************************************************************************/

/*
 *  support for Maxine Baseboard Graphics
 *  Joel Gringorten
 */

/*
#include <hal/cpuconf.h>
*/

#define PMAGDV_FB_OFFSET		0x1C1E0000

#define PMAGDV_SSR			0x1C040100
#define PMAGDV_VIDEO_BUFFER		0x1C140000
#define PMAGDV_FRAME_BUFFER		0xA000000
#define PMAGDV_VDAC_WRITE		0x1C1E0000
#define PMAGDV_VDAC_READ		0x1C1C0000

#define PMAGDV_SSR_BASE		    (*(u_int *)PHYS_TO_K1(PMAGDV_SSR))
#define PMAGDV_SSR_ADDR		    &PMAGDV_SSR_BASE
#define PMAGDV_VIDEO_BUFFER_BASE    (*(u_int *)PHYS_TO_K1(PMAGDV_VIDEO_BUFFER))
#define PMAGDV_VIDEO_BUFFER_ADDR    &PMAGDV_VIDEO_BUFFER_BASE

#define PMAGDV_VDAC_WRITE_BASE	     (*(u_int *) PHYS_TO_K1(PMAGDV_VDAC_WRITE))
#define PMAGDV_VDAC_WRITE_ADDR      &PMAGDV_VDAC_WRITE_BASE

#define PMAGDV_VDAC_READ_BASE	     (*(u_int *) PHYS_TO_K1(PMAGDV_VDAC_READ))
#define PMAGDV_VDAC_READ_ADDR       &PMAGDV_VDAC_READ_BASE

int pmagdv_attach();
void pmagdv_interrupt();
void pmagdv_enable_interrupt();
caddr_t pmagdv_init_closure();
caddr_t pmagdv_screen_init_closure();
