From 6d4e8bc473223e588bf997fd8193e138f857684b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 6 May 2011 21:35:17 +0000 Subject: [PATCH] More Milan specific stuff... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41355 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../boot/platform/atari_m68k/toscalls.h | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/system/boot/platform/atari_m68k/toscalls.h b/src/system/boot/platform/atari_m68k/toscalls.h index 2813caf400..ca2d04ae9f 100644 --- a/src/system/boot/platform/atari_m68k/toscalls.h +++ b/src/system/boot/platform/atari_m68k/toscalls.h @@ -397,10 +397,58 @@ static inline int Bconputs(int16 handle, const char *string) #define VM_INQUIRE -1 +/* Milan specific video constants */ #define MI_MAGIC 0x4d49 +#define CMD_GETMODE 0 +#define CMD_SETMODE 1 +#define CMD_GETINFO 2 +#define CMD_ALLOCPAGE 3 +#define CMD_FREEPAGE 4 +#define CMD_FLIPPAGE 5 +#define CMD_ALLOCMEM 6 +#define CMD_FREEMEM 7 +#define CMD_SETADR 8 +#define CMD_ENUMMODES 9 +#define ENUMMODE_EXIT 0 +#define ENUMMODE_CONT 1 +/* scrFlags */ +#define SCRINFO_OK 1 +/* scrFormat */ +#define INTERLEAVE_PLANES 0 +#define STANDARD_PLANES 1 +#define PACKEDPIX_PLANES 2 +/* bitFlags */ +#define STANDARD_BITS 1 +#define FALCON_BITS 2 +#define INTEL_BITS 8 + #ifndef __ASSEMBLER__ +/* Milan specific video stuff */ +typedef struct screeninfo { + int32 size; + int32 devID; + char name[64]; + int32 scrFlags; + int32 frameadr; + int32 scrHeight; + int32 scrWidth; + int32 virtHeight; + int32 virtWidth; + int32 scrPlanes; + int32 scrColors; + int32 lineWrap; + int32 planeWrap; + int32 scrFormat; + int32 scrClut; + /* + int32 redBits; + ... + */ +} SCREENINFO; + + //extern int32 xbios(uint16 nr, ...);