/* $XConsortium: Bt481.h,v 1.1 95/01/26 15:31:41 kaleb Exp $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/accel/agx/Bt481.h,v 3.0 1994/06/15 15:35:50 dawes Exp $ */ /* * Copyright 1993 by David Wexelblat * Copyright 1994 by Henry A. Worth * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of David Wexelblat not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. David Wexelblat makes no representations * about the suitability of this software for any purpose. It is provided * "as is" without express or implied warranty. * * DAVID WEXELBLAT AND HENRY A. WORTH DISCLAIM ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTORS BE LIABLE * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. * * Modified for the AGX and Bt481/2 by Henry. A. Worth * */ #ifndef XF86_BT481_H #define XF86_BT481_H #include "compiler.h" #include /* directly addressed registers */ #define BT481_WRITE_ADDR 0x00 #define BT481_RAMDAC_DATA 0x01 #define BT481_PIXEL_MASK 0x02 #define BT481_READ_ADDR 0x03 #define BT482_CURS_WR_ADDR 0x04 #define BT482_CURS_RAM_DATA 0x05 #define BT481_COMMAND_REG_A 0x06 #define BT482_CURS_RD_ADDR 0x07 /* indirectly addressed register addresses */ #define BT481_IND_PIXEL_MASK 0x00 #define BT481_OVERLAY_MASK 0x01 #define BT481_COMMAND_REG_B 0x02 #define BT482_CURSOR_REG 0x03 #define BT482_CURS_X_LOW 0x04 #define BT482_CURS_X_HIGH 0x05 #define BT482_CURS_Y_LOW 0x06 #define BT482_CURS_Y_HIGH 0x07 _XFUNCPROTOBEGIN extern void xf86OutBt481IndReg( #if NeedFunctionPrototypes unsigned char, unsigned char, unsigned char #endif ); extern unsigned char xf86InBt481IndReg( #if NeedFunctionPrototypes unsigned char #endif ); extern void xf86Bt481HWSave( #if NeedFunctionPrototypes union xf86RamDacSave * #endif ); extern void xf86Bt481HWRestore( #if NeedFunctionPrototypes union xf86RamDacSave * #endif ); extern void xf86Bt481Init( #if NeedFunctionPrototypes void #endif ); _XFUNCPROTOEND #endif /* XF86_BT481_H */