From 005fb7c998311a0cc21a6279ece0ddf38ced0a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 3 Jan 2008 00:18:14 +0000 Subject: [PATCH] Allow using defines from .S files git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23226 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../boot/platform/atari_m68k/toscalls.h | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/toscalls.h b/src/system/boot/platform/atari_m68k/toscalls.h index 20be21f465..c792ff4e88 100644 --- a/src/system/boot/platform/atari_m68k/toscalls.h +++ b/src/system/boot/platform/atari_m68k/toscalls.h @@ -21,6 +21,22 @@ extern "C" { #define DEV_IKBD 4 #define DEV_RAW 5 +#define K_RSHIFT 0x01 +#define K_LSHIFT 0x02 +#define K_CTRL 0x04 +#define K_ALT 0x08 +#define K_CAPSLOCK 0x10 +#define K_CLRHOME 0x20 +#define K_INSERT 0x40 + +#define RW_READ 0x00 +#define RW_WRITE 0x01 +#define RW_NOMEDIACH 0x02 +#define RW_NORETRY 0x04 +#define RW_NOTRANSLATE 0x08 + +#ifndef __ASSEMBLER__ + /* * Atari BIOS calls */ @@ -41,19 +57,6 @@ struct tosbpb { int16 bflags; }; -#define K_RSHIFT 0x01 -#define K_LSHIFT 0x02 -#define K_CTRL 0x04 -#define K_ALT 0x08 -#define K_CAPSLOCK 0x10 -#define K_CLRHOME 0x20 -#define K_INSERT 0x40 - -#define RW_READ 0x00 -#define RW_WRITE 0x01 -#define RW_NOMEDIACH 0x02 -#define RW_NORETRY 0x04 -#define RW_NOTRANSLATE 0x08 //#define Getmpb() bios(0) #define Bconstat(dev) bios(1, (uint16)dev) @@ -125,6 +128,8 @@ extern int32 gemdos(uint16 nr, ...); extern status_t toserror(int32 err); +#endif /* __ASSEMBLER__ */ + #ifdef __cplusplus } #endif