diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-e200.h | 12 | ||||
-rw-r--r-- | firmware/export/config-h10.h | 12 | ||||
-rw-r--r-- | firmware/export/config-h10_5gb.h | 12 | ||||
-rw-r--r-- | firmware/export/disk.h | 1 |
4 files changed, 28 insertions, 9 deletions
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h index 304c7062e5..0126cdf739 100644 --- a/firmware/export/config-e200.h +++ b/firmware/export/config-e200.h | |||
@@ -108,13 +108,19 @@ | |||
108 | #define CONFIG_LCD LCD_X5 | 108 | #define CONFIG_LCD LCD_X5 |
109 | 109 | ||
110 | /* Offset ( in the firmware file's header ) to the file length */ | 110 | /* Offset ( in the firmware file's header ) to the file length */ |
111 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | 111 | #define FIRMWARE_OFFSET_FILE_LENGTH 0x8 |
112 | 112 | ||
113 | /* Offset ( in the firmware file's header ) to the file CRC */ | 113 | /* Offset ( in the firmware file's header ) to the file CRC */ |
114 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 114 | #define FIRMWARE_OFFSET_FILE_CRC 0x0c |
115 | |||
116 | /* Offset ( in the firmware file's header ) to the file type */ | ||
117 | #define FIRMWARE_OFFSET_FILE_TYPE 0x1f8 | ||
118 | |||
119 | /* Offset ( in the firmware file's header ) to the file model id */ | ||
120 | #define FIRMWARE_OFFSET_FILE_MODEL 0x1fc | ||
115 | 121 | ||
116 | /* Offset ( in the firmware file's header ) to the real data */ | 122 | /* Offset ( in the firmware file's header ) to the real data */ |
117 | #define FIRMWARE_OFFSET_FILE_DATA 8 | 123 | #define FIRMWARE_OFFSET_FILE_DATA 0x200 |
118 | 124 | ||
119 | /* #define USB_IPODSTYLE */ | 125 | /* #define USB_IPODSTYLE */ |
120 | 126 | ||
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index a66a387f02..ec6f83fecb 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -138,13 +138,19 @@ | |||
138 | #define HAVE_ATA_POWER_OFF | 138 | #define HAVE_ATA_POWER_OFF |
139 | 139 | ||
140 | /* Offset ( in the firmware file's header ) to the file length */ | 140 | /* Offset ( in the firmware file's header ) to the file length */ |
141 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | 141 | #define FIRMWARE_OFFSET_FILE_LENGTH 0x8 |
142 | 142 | ||
143 | /* Offset ( in the firmware file's header ) to the file CRC */ | 143 | /* Offset ( in the firmware file's header ) to the file CRC */ |
144 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 144 | #define FIRMWARE_OFFSET_FILE_CRC 0x0c |
145 | |||
146 | /* Offset ( in the firmware file's header ) to the file type */ | ||
147 | #define FIRMWARE_OFFSET_FILE_TYPE 0x1f8 | ||
148 | |||
149 | /* Offset ( in the firmware file's header ) to the file model id */ | ||
150 | #define FIRMWARE_OFFSET_FILE_MODEL 0x1fc | ||
145 | 151 | ||
146 | /* Offset ( in the firmware file's header ) to the real data */ | 152 | /* Offset ( in the firmware file's header ) to the real data */ |
147 | #define FIRMWARE_OFFSET_FILE_DATA 8 | 153 | #define FIRMWARE_OFFSET_FILE_DATA 0x200 |
148 | 154 | ||
149 | /* #define USB_IPODSTYLE */ | 155 | /* #define USB_IPODSTYLE */ |
150 | 156 | ||
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index fa643b01b9..b809f3471c 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -118,13 +118,19 @@ | |||
118 | #define HAVE_ATA_POWER_OFF | 118 | #define HAVE_ATA_POWER_OFF |
119 | 119 | ||
120 | /* Offset ( in the firmware file's header ) to the file length */ | 120 | /* Offset ( in the firmware file's header ) to the file length */ |
121 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | 121 | #define FIRMWARE_OFFSET_FILE_LENGTH 0x8 |
122 | 122 | ||
123 | /* Offset ( in the firmware file's header ) to the file CRC */ | 123 | /* Offset ( in the firmware file's header ) to the file CRC */ |
124 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 124 | #define FIRMWARE_OFFSET_FILE_CRC 0x0c |
125 | |||
126 | /* Offset ( in the firmware file's header ) to the file type */ | ||
127 | #define FIRMWARE_OFFSET_FILE_TYPE 0x1f8 | ||
128 | |||
129 | /* Offset ( in the firmware file's header ) to the file model id */ | ||
130 | #define FIRMWARE_OFFSET_FILE_MODEL 0x1fc | ||
125 | 131 | ||
126 | /* Offset ( in the firmware file's header ) to the real data */ | 132 | /* Offset ( in the firmware file's header ) to the real data */ |
127 | #define FIRMWARE_OFFSET_FILE_DATA 8 | 133 | #define FIRMWARE_OFFSET_FILE_DATA 0x200 |
128 | 134 | ||
129 | /* #define USB_IPODSTYLE */ | 135 | /* #define USB_IPODSTYLE */ |
130 | 136 | ||
diff --git a/firmware/export/disk.h b/firmware/export/disk.h index e10fe9e7dc..b9619be983 100644 --- a/firmware/export/disk.h +++ b/firmware/export/disk.h | |||
@@ -30,6 +30,7 @@ struct partinfo { | |||
30 | #define PARTITION_TYPE_FAT32 0x0b | 30 | #define PARTITION_TYPE_FAT32 0x0b |
31 | #define PARTITION_TYPE_FAT32_LBA 0x0c | 31 | #define PARTITION_TYPE_FAT32_LBA 0x0c |
32 | #define PARTITION_TYPE_FAT16 0x06 | 32 | #define PARTITION_TYPE_FAT16 0x06 |
33 | #define PARTITION_TYPE_HIDDEN 0x84 | ||
33 | 34 | ||
34 | /* returns a pointer to an array of 8 partinfo structs */ | 35 | /* returns a pointer to an array of 8 partinfo structs */ |
35 | struct partinfo* disk_init(IF_MV_NONVOID(int volume)); | 36 | struct partinfo* disk_init(IF_MV_NONVOID(int volume)); |