diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-11 23:51:00 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-11 23:51:00 +0000 |
commit | 8636e6949e802556da1588b814e454155358df90 (patch) | |
tree | fb668ba4b210d21185ee6f46a8e80e61171af8bf /firmware/export/hwcompat.h | |
parent | b16137e10b0b309ccd9bf81fb2d70f24b090aa7d (diff) | |
download | rockbox-8636e6949e802556da1588b814e454155358df90.tar.gz rockbox-8636e6949e802556da1588b814e454155358df90.zip |
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
Diffstat (limited to 'firmware/export/hwcompat.h')
-rw-r--r-- | firmware/export/hwcompat.h | 15 |
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 | ||
33 | int read_rom_version(void); | 37 | #ifdef ARCHOS_PLAYER |
34 | int 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 |
37 | bool is_new_player(void); | 46 | bool is_new_player(void); |
38 | #endif | 47 | #endif |
39 | 48 | ||
40 | #endif | 49 | #endif /* HWCOMPAT_H */ |