/* * UAE - The U*nix Amiga Emulator * * Picasso96 Support Module Header * * Copyright 1997 Brian King */ #ifndef __PICASSO96_H__ #define __PICASSO96_H__ #ifdef FSUAE // NL #ifdef HAVE_CONFIG_H #include "config.h" #endif #endif #ifdef PICASSO96 #include "dxwrap.h" #define NOSIGNAL 0xFFFFFFFF /************************************************************************/ /* Types for BoardType Identification */ typedef enum { BT_NoBoard, BT_oMniBus, BT_Graffity, BT_CyberVision, BT_Domino, BT_Merlin, BT_PicassoII, BT_Piccolo, BT_RetinaBLT, BT_Spectrum, BT_PicassoIV, BT_PiccoloSD64, BT_A2410, BT_Pixel64, BT_uaegfx, BT_CVision3D, BT_Altais, BT_Prototype1, BT_Prototype2, BT_Prototype3, BT_Prototype4, BT_Prototype5, BT_MaxBoardTypes } BTYPE; /************************************************************************/ /* Types for PaletteChipType Identification */ typedef enum { PCT_Unknown, PCT_S11483, // Sierra S11483: HiColor 15 bit, oMniBus, Domino PCT_S15025, // Sierra S15025: TrueColor 32 bit, oMniBus PCT_CirrusGD542x, // Cirrus GD542x internal: TrueColor 24 bit PCT_Domino, // is in fact a Sierra S11483 PCT_BT482, // BrookTree BT482: TrueColor 32 bit, Merlin PCT_Music, // Music MU9C4910: TrueColor 24 bit, oMniBus PCT_ICS5300, // ICS 5300: ...., Retina BLT Z3 PCT_CirrusGD5446, // Cirrus GD5446 internal: TrueColor 24 bit PCT_CirrusGD5434, // Cirrus GD5434 internal: TrueColor 32 bit PCT_S3Trio64, // S3 Trio64 internal: TrueColor 32 bit PCT_A2410_xxx, // A2410 DAC, *type unknown* PCT_S3ViRGE, // S3 ViRGE internal: TrueColor 32 bit PCT_MaxPaletteChipTypes } PCTYPE; /************************************************************************/ /* Types for GraphicsControllerType Identification */ typedef enum { GCT_Unknown, GCT_ET4000, GCT_ETW32, GCT_CirrusGD542x, GCT_NCR77C32BLT, GCT_CirrusGD5446, GCT_CirrusGD5434, GCT_S3Trio64, GCT_TI34010, GCT_S3ViRGE, GCT_MaxGraphicsControllerTypes } GCTYPE; #define JAM1 0 #define JAM2 1 #define COMP 2 #define INVERS 4 /************************************************************************/ enum { PLANAR, CHUNKY, HICOLOR, TRUECOLOR, TRUEALPHA, MAXMODES }; /************************************************************************/ struct MyCLUTEntry { uae_u8 Red; uae_u8 Green; uae_u8 Blue; uae_u8 Pad; }; struct ColorIndexMapping { uae_u32 ColorMask; uae_u32 Colors[256]; }; struct CLUTEntry { uae_u8 Red; uae_u8 Green; uae_u8 Blue; }; #define PSSO_BitMap_BytesPerRow 0 #define PSSO_BitMap_Rows 2 #define PSSO_BitMap_Flags 4 #define PSSO_BitMap_Depth 5 #define PSSO_BitMap_pad 6 #define PSSO_BitMap_Planes 8 #define PSSO_BitMap_sizeof 40 struct BitMap { uae_u16 BytesPerRow; uae_u16 Rows; uae_u8 Flags; uae_u8 Depth; uae_u16 pad; uae_u8 *Planes[8]; }; /************************************************************************/ #define SETTINGSNAMEMAXCHARS 30 #define BOARDNAMEMAXCHARS 30 struct Settings { uae_u32 BoardType; /* a value discribing assignment to nth board local to boardtype * to be used for reassignment when boards are added or removed. */ uae_u16 LocalOrdering; uae_s16 LastSelected; char NameField[SETTINGSNAMEMAXCHARS]; /* neu! */ char *BoardName; }; #define MAXRESOLUTIONNAMELENGTH 22 /******************************** * only used within rtg.library * ********************************/ #define PSSO_LibResolution_P96ID 14 #define PSSO_LibResolution_Name 20 #define PSSO_LibResolution_DisplayID 42 /* Name + MAXRESOLUTIONNAMELENGTH */ #define PSSO_LibResolution_Width 46 #define PSSO_LibResolution_Height 48 #define PSSO_LibResolution_Flags 50 #define PSSO_LibResolution_Modes 52 #define PSSO_LibResolution_BoardInfo (52 + MAXMODES * 4) #define PSSO_LibResolution_sizeof (60 + MAXMODES * 4) struct LibResolution { char P96ID[6]; char Name[MAXRESOLUTIONNAMELENGTH]; uae_u32 DisplayID; uae_u16 Width; uae_u16 Height; uae_u16 Flags; uaecptr Modes[MAXMODES]; uaecptr BoardInfo; }; #define P96B_FAMILY 0 /* obsolete (Resolution is an entire family) */ #define P96B_PUBLIC 1 /* Resolution should be added to the public */ #define P96B_MONITOOL 2 #define P96F_FAMILY (1<