summaryrefslogtreecommitdiff
path: root/firmware/export/hwcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/hwcompat.h')
-rw-r--r--firmware/export/hwcompat.h15
1 files changed, 12 insertions, 3 deletions
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 @@
22#include <stdbool.h> 22#include <stdbool.h>
23#include "config.h" 23#include "config.h"
24 24
25#if (CONFIG_CPU == SH7034) && !defined(SIMULATOR)
26
27#define ROM_VERSION (*(short *)0x020000fe)
28
25/* Bit mask values for HW compatibility */ 29/* Bit mask values for HW compatibility */
26#define ATA_ADDRESS_200 0x0100 30#define ATA_ADDRESS_200 0x0100
27#define USB_ACTIVE_HIGH 0x0100 31#define USB_ACTIVE_HIGH 0x0100
@@ -30,11 +34,16 @@
30#define MMC_CLOCK_POLARITY 0x0400 34#define MMC_CLOCK_POLARITY 0x0400
31#define TUNER_MODEL 0x0800 35#define TUNER_MODEL 0x0800
32 36
33int read_rom_version(void); 37#ifdef ARCHOS_PLAYER
34int read_hw_mask(void); 38#define HW_MASK 0
39#else /* Recorders, Ondios */
40#define HW_MASK (*(short *)0x020000fc)
41#endif
42
43#endif /* (CONFIG_CPU == SH7034) && !SIMULATOR */
35 44
36#ifdef ARCHOS_PLAYER 45#ifdef ARCHOS_PLAYER
37bool is_new_player(void); 46bool is_new_player(void);
38#endif 47#endif
39 48
40#endif 49#endif /* HWCOMPAT_H */