From 8636e6949e802556da1588b814e454155358df90 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 11 Apr 2007 23:51:00 +0000 Subject: Moved SH1 system code to target tree. * First shot at hwcompat cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/hwcompat.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'firmware/export/hwcompat.h') diff --git a/firmware/export/hwcompat.h b/firmware/export/hwcompat.h index 03fb161ce4..bffb76e3ef 100644 --- a/firmware/export/hwcompat.h +++ b/firmware/export/hwcompat.h @@ -22,6 +22,10 @@ #include #include "config.h" +#if (CONFIG_CPU == SH7034) && !defined(SIMULATOR) + +#define ROM_VERSION (*(short *)0x020000fe) + /* Bit mask values for HW compatibility */ #define ATA_ADDRESS_200 0x0100 #define USB_ACTIVE_HIGH 0x0100 @@ -30,11 +34,16 @@ #define MMC_CLOCK_POLARITY 0x0400 #define TUNER_MODEL 0x0800 -int read_rom_version(void); -int read_hw_mask(void); +#ifdef ARCHOS_PLAYER +#define HW_MASK 0 +#else /* Recorders, Ondios */ +#define HW_MASK (*(short *)0x020000fc) +#endif + +#endif /* (CONFIG_CPU == SH7034) && !SIMULATOR */ #ifdef ARCHOS_PLAYER bool is_new_player(void); #endif -#endif +#endif /* HWCOMPAT_H */ -- cgit v1.2.3