linux/include/video/permedia2.h

/*
 * Permedia2 framebuffer driver definitions.
 * Copyright (c) 1998-2000 Ilario Nardinocchi ([email protected])
 * --------------------------------------------------------------------------
 * $Id: pm2fb.h,v 1.26 2000/09/19 00:11:53 illo Exp $
 * --------------------------------------------------------------------------
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file COPYING in the main directory of this archive
 * for more details.
 */

#ifndef PM2FB_H
#define PM2FB_H

#define PM2_REFERENCE_CLOCK
#define PM2_MAX_PIXCLOCK
#define PM2_REGS_SIZE

#define PM2TAG(r)

/*****************************************************************************
 * Permedia2 registers used in the framebuffer
 *****************************************************************************/
 
#define PM2R_RESET_STATUS
#define PM2R_IN_FIFO_SPACE
#define PM2R_OUT_FIFO_WORDS
#define PM2R_APERTURE_ONE
#define PM2R_APERTURE_TWO
#define PM2R_FIFO_DISCON
#define PM2R_CHIP_CONFIG

#define PM2R_REBOOT
#define PM2R_MEM_CONTROL
#define PM2R_BOOT_ADDRESS
#define PM2R_MEM_CONFIG
#define PM2R_BYPASS_WRITE_MASK
#define PM2R_FRAMEBUFFER_WRITE_MASK

#define PM2R_OUT_FIFO

#define PM2R_SCREEN_BASE
#define PM2R_SCREEN_STRIDE
#define PM2R_H_TOTAL
#define PM2R_HG_END
#define PM2R_HB_END
#define PM2R_HS_START
#define PM2R_HS_END
#define PM2R_V_TOTAL
#define PM2R_VB_END
#define PM2R_VS_START
#define PM2R_VS_END
#define PM2R_VIDEO_CONTROL
#define PM2R_LINE_COUNT
#define PM2R_FIFO_CONTROL

#define PM2R_RD_PALETTE_WRITE_ADDRESS
#define PM2R_RD_PALETTE_DATA
#define PM2R_RD_PIXEL_MASK
#define PM2R_RD_PALETTE_READ_ADDRESS
#define PM2R_RD_CURSOR_COLOR_ADDRESS
#define PM2R_RD_CURSOR_COLOR_DATA
#define PM2R_RD_INDEXED_DATA
#define PM2R_RD_CURSOR_DATA
#define PM2R_RD_CURSOR_X_LSB
#define PM2R_RD_CURSOR_X_MSB
#define PM2R_RD_CURSOR_Y_LSB
#define PM2R_RD_CURSOR_Y_MSB

#define PM2R_START_X_DOM
#define PM2R_D_X_DOM
#define PM2R_START_X_SUB
#define PM2R_D_X_SUB
#define PM2R_START_Y
#define PM2R_D_Y
#define PM2R_COUNT
#define PM2R_RENDER
#define PM2R_BIT_MASK_PATTERN
#define PM2R_RASTERIZER_MODE
#define PM2R_RECTANGLE_ORIGIN
#define PM2R_RECTANGLE_SIZE
#define PM2R_PACKED_DATA_LIMITS
#define PM2R_SCISSOR_MODE
#define PM2R_SCISSOR_MIN_XY
#define PM2R_SCISSOR_MAX_XY
#define PM2R_SCREEN_SIZE
#define PM2R_AREA_STIPPLE_MODE
#define PM2R_WINDOW_ORIGIN
#define PM2R_TEXTURE_ADDRESS_MODE
#define PM2R_TEXTURE_MAP_FORMAT
#define PM2R_TEXTURE_DATA_FORMAT
#define PM2R_TEXTURE_READ_MODE
#define PM2R_TEXEL_LUT_MODE
#define PM2R_TEXTURE_COLOR_MODE
#define PM2R_FOG_MODE
#define PM2R_TEXEL0
#define PM2R_COLOR_DDA_MODE
#define PM2R_CONSTANT_COLOR
#define PM2R_ALPHA_BLEND_MODE
#define PM2R_DITHER_MODE
#define PM2R_FB_SOFT_WRITE_MASK
#define PM2R_LOGICAL_OP_MODE
#define PM2R_LB_READ_MODE
#define PM2R_LB_READ_FORMAT
#define PM2R_LB_SOURCE_OFFSET
#define PM2R_LB_WINDOW_BASE
#define PM2R_LB_WRITE_FORMAT
#define PM2R_STENCIL_MODE
#define PM2R_DEPTH_MODE
#define PM2R_FB_READ_MODE
#define PM2R_FB_SOURCE_OFFSET
#define PM2R_FB_PIXEL_OFFSET
#define PM2R_FB_WINDOW_BASE
#define PM2R_FB_WRITE_MODE
#define PM2R_FB_HARD_WRITE_MASK
#define PM2R_FB_BLOCK_COLOR
#define PM2R_FB_READ_PIXEL
#define PM2R_FILTER_MODE
#define PM2R_SYNC
#define PM2R_YUV_MODE
#define PM2R_STATISTICS_MODE
#define PM2R_FB_SOURCE_DELTA
#define PM2R_CONFIG
#define PM2R_DELTA_MODE

/* Permedia2v */
#define PM2VR_RD_INDEX_LOW
#define PM2VR_RD_INDEX_HIGH
#define PM2VR_RD_INDEXED_DATA

/* Permedia2 RAMDAC indexed registers */
#define PM2I_RD_CURSOR_CONTROL
#define PM2I_RD_COLOR_MODE
#define PM2I_RD_MODE_CONTROL
#define PM2I_RD_MISC_CONTROL
#define PM2I_RD_PIXEL_CLOCK_A1
#define PM2I_RD_PIXEL_CLOCK_A2
#define PM2I_RD_PIXEL_CLOCK_A3
#define PM2I_RD_PIXEL_CLOCK_STATUS
#define PM2I_RD_MEMORY_CLOCK_1
#define PM2I_RD_MEMORY_CLOCK_2
#define PM2I_RD_MEMORY_CLOCK_3
#define PM2I_RD_MEMORY_CLOCK_STATUS
#define PM2I_RD_COLOR_KEY_CONTROL
#define PM2I_RD_OVERLAY_KEY
#define PM2I_RD_RED_KEY
#define PM2I_RD_GREEN_KEY
#define PM2I_RD_BLUE_KEY

/* Permedia2v extensions */
#define PM2VI_RD_MISC_CONTROL
#define PM2VI_RD_SYNC_CONTROL
#define PM2VI_RD_DAC_CONTROL
#define PM2VI_RD_PIXEL_SIZE
#define PM2VI_RD_COLOR_FORMAT
#define PM2VI_RD_CURSOR_MODE
#define PM2VI_RD_CURSOR_X_LOW
#define PM2VI_RD_CURSOR_X_HIGH
#define PM2VI_RD_CURSOR_Y_LOW
#define PM2VI_RD_CURSOR_Y_HIGH
#define PM2VI_RD_CURSOR_X_HOT
#define PM2VI_RD_CURSOR_Y_HOT
#define PM2VI_RD_OVERLAY_KEY
#define PM2VI_RD_CLK0_PRESCALE
#define PM2VI_RD_CLK0_FEEDBACK
#define PM2VI_RD_CLK0_POSTSCALE
#define PM2VI_RD_CLK1_PRESCALE
#define PM2VI_RD_CLK1_FEEDBACK
#define PM2VI_RD_CLK1_POSTSCALE
#define PM2VI_RD_MCLK_CONTROL
#define PM2VI_RD_MCLK_PRESCALE
#define PM2VI_RD_MCLK_FEEDBACK
#define PM2VI_RD_MCLK_POSTSCALE
#define PM2VI_RD_CURSOR_PALETTE
#define PM2VI_RD_CURSOR_PATTERN

/* Fields and flags */
#define PM2F_RENDER_AREASTIPPLE
#define PM2F_RENDER_FASTFILL
#define PM2F_RENDER_PRIMITIVE_MASK
#define PM2F_RENDER_LINE
#define PM2F_RENDER_TRAPEZOID
#define PM2F_RENDER_POINT
#define PM2F_RENDER_RECTANGLE
#define PM2F_RENDER_SYNC_ON_BIT_MASK
#define PM2F_RENDER_TEXTURE_ENABLE
#define PM2F_SYNCHRONIZATION
#define PM2F_PLL_LOCKED
#define PM2F_BEING_RESET
#define PM2F_DATATYPE_COLOR
#define PM2F_VGA_ENABLE
#define PM2F_VGA_FIXED
#define PM2F_FB_WRITE_ENABLE
#define PM2F_FB_READ_SOURCE_ENABLE
#define PM2F_RD_PALETTE_WIDTH_8
#define PM2F_PART_PROD_MASK
#define PM2F_SCREEN_SCISSOR_ENABLE
#define PM2F_DATA_64_ENABLE
#define PM2F_BLANK_LOW
#define PM2F_HSYNC_MASK
#define PM2F_VSYNC_MASK
#define PM2F_HSYNC_ACT_HIGH
#define PM2F_HSYNC_FORCED_LOW
#define PM2F_HSYNC_ACT_LOW
#define PM2F_VSYNC_ACT_HIGH
#define PM2F_VSYNC_FORCED_LOW
#define PM2F_VSYNC_ACT_LOW
#define PM2F_LINE_DOUBLE
#define PM2F_VIDEO_ENABLE
#define PM2F_RD_PIXELFORMAT_SVGA
#define PM2F_RD_PIXELFORMAT_RGB232OFFSET
#define PM2F_RD_PIXELFORMAT_RGBA2321
#define PM2F_RD_PIXELFORMAT_RGBA5551
#define PM2F_RD_PIXELFORMAT_RGBA4444
#define PM2F_RD_PIXELFORMAT_RGB565
#define PM2F_RD_PIXELFORMAT_RGBA8888
#define PM2F_RD_PIXELFORMAT_RGB888
#define PM2F_RD_GUI_ACTIVE
#define PM2F_RD_COLOR_MODE_RGB
#define PM2F_DELTA_ORDER_RGB
#define PM2F_RD_TRUECOLOR
#define PM2F_NO_ALPHA_BUFFER
#define PM2F_TEXTEL_SIZE_16
#define PM2F_TEXTEL_SIZE_32
#define PM2F_TEXTEL_SIZE_4
#define PM2F_TEXTEL_SIZE_24
#define PM2F_INCREASE_X
#define PM2F_INCREASE_Y
#define PM2F_CONFIG_FB_WRITE_ENABLE
#define PM2F_CONFIG_FB_PACKED_DATA
#define PM2F_CONFIG_FB_READ_DEST_ENABLE
#define PM2F_CONFIG_FB_READ_SOURCE_ENABLE
#define PM2F_COLOR_KEY_TEST_OFF
#define PM2F_MEM_CONFIG_RAM_MASK
#define PM2F_MEM_BANKS_1
#define PM2F_MEM_BANKS_2
#define PM2F_MEM_BANKS_3
#define PM2F_MEM_BANKS_4
#define PM2F_APERTURE_STANDARD
#define PM2F_APERTURE_BYTESWAP
#define PM2F_APERTURE_HALFWORDSWAP
#define PM2F_CURSORMODE_CURSOR_ENABLE
#define PM2F_CURSORMODE_TYPE_X

pm2type_t;

#endif /* PM2FB_H */

/*****************************************************************************
 * That's all folks!
 *****************************************************************************/