diff options
| author | 2012-07-04 21:04:26 +0200 | |
|---|---|---|
| committer | 2012-07-04 21:04:26 +0200 | |
| commit | 6d9cc73e983b5e950b21f172af2a727c8711cba8 (patch) | |
| tree | 99a13ed905852b5dceae31aa20892d6393ab835e /include | |
| parent | 648eeecea5bf029513e0266a47d7b0cb4e62d1b8 (diff) | |
| download | libirecovery-6d9cc73e983b5e950b21f172af2a727c8711cba8.tar.gz libirecovery-6d9cc73e983b5e950b21f172af2a727c8711cba8.tar.bz2 | |
CPID/BDID are actually hex values
Diffstat (limited to 'include')
| -rw-r--r-- | include/libirecovery.h | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index 84d8681..0118c8b 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h | |||
| @@ -37,39 +37,39 @@ extern "C" { | |||
| 37 | 37 | ||
| 38 | #define APPLE_VENDOR_ID 0x05AC | 38 | #define APPLE_VENDOR_ID 0x05AC |
| 39 | 39 | ||
| 40 | #define CPID_UNKNOWN -1 | 40 | #define CPID_UNKNOWN -1 |
| 41 | #define CPID_IPHONE2G 8900 | 41 | #define CPID_IPHONE2G 0x8900 |
| 42 | #define CPID_IPOD1G 8900 | 42 | #define CPID_IPOD1G 0x8900 |
| 43 | #define CPID_IPHONE3G 8900 | 43 | #define CPID_IPHONE3G 0x8900 |
| 44 | #define CPID_IPOD2G 8720 | 44 | #define CPID_IPOD2G 0x8720 |
| 45 | #define CPID_IPHONE3GS 8920 | 45 | #define CPID_IPHONE3GS 0x8920 |
| 46 | #define CPID_IPOD3G 8922 | 46 | #define CPID_IPOD3G 0x8922 |
| 47 | #define CPID_IPAD1G 8930 | 47 | #define CPID_IPAD1G 0x8930 |
| 48 | #define CPID_IPHONE4 8930 | 48 | #define CPID_IPHONE4 0x8930 |
| 49 | #define CPID_IPOD4G 8930 | 49 | #define CPID_IPOD4G 0x8930 |
| 50 | #define CPID_APPLETV2 8930 | 50 | #define CPID_APPLETV2 0x8930 |
| 51 | #define CPID_IPHONE42 8930 | 51 | #define CPID_IPHONE42 0x8930 |
| 52 | #define CPID_IPAD21 8940 | 52 | #define CPID_IPAD21 0x8940 |
| 53 | #define CPID_IPAD22 8940 | 53 | #define CPID_IPAD22 0x8940 |
| 54 | #define CPID_IPAD23 8940 | 54 | #define CPID_IPAD23 0x8940 |
| 55 | #define CPID_IPHONE4S 8940 | 55 | #define CPID_IPHONE4S 0x8940 |
| 56 | 56 | ||
| 57 | #define BDID_UNKNOWN -1 | 57 | #define BDID_UNKNOWN -1 |
| 58 | #define BDID_IPHONE2G 0 | 58 | #define BDID_IPHONE2G 0x00 |
| 59 | #define BDID_IPOD1G 2 | 59 | #define BDID_IPOD1G 0x02 |
| 60 | #define BDID_IPHONE3G 4 | 60 | #define BDID_IPHONE3G 0x04 |
| 61 | #define BDID_IPOD2G 0 | 61 | #define BDID_IPOD2G 0x00 |
| 62 | #define BDID_IPHONE3GS 0 | 62 | #define BDID_IPHONE3GS 0x00 |
| 63 | #define BDID_IPOD3G 2 | 63 | #define BDID_IPOD3G 0x02 |
| 64 | #define BDID_IPAD1G 2 | 64 | #define BDID_IPAD1G 0x02 |
| 65 | #define BDID_IPHONE4 0 | 65 | #define BDID_IPHONE4 0x00 |
| 66 | #define BDID_IPOD4G 8 | 66 | #define BDID_IPOD4G 0x08 |
| 67 | #define BDID_APPLETV2 10 | 67 | #define BDID_APPLETV2 0x10 |
| 68 | #define BDID_IPHONE42 6 | 68 | #define BDID_IPHONE42 0x06 |
| 69 | #define BDID_IPAD21 4 | 69 | #define BDID_IPAD21 0x04 |
| 70 | #define BDID_IPAD22 6 | 70 | #define BDID_IPAD22 0x06 |
| 71 | #define BDID_IPAD23 2 | 71 | #define BDID_IPAD23 0x02 |
| 72 | #define BDID_IPHONE4S 8 | 72 | #define BDID_IPHONE4S 0x08 |
| 73 | 73 | ||
| 74 | #define DEVICE_UNKNOWN -1 | 74 | #define DEVICE_UNKNOWN -1 |
| 75 | #define DEVICE_IPHONE2G 0 | 75 | #define DEVICE_IPHONE2G 0 |
| @@ -169,21 +169,21 @@ struct irecv_device { | |||
| 169 | }; | 169 | }; |
| 170 | 170 | ||
| 171 | static struct irecv_device irecv_devices[] = { | 171 | static struct irecv_device irecv_devices[] = { |
| 172 | { 0, "iPhone1,1", "m68ap", 0, 8900 }, | 172 | { 0, "iPhone1,1", "m68ap", 0x00, 0x8900 }, |
| 173 | { 1, "iPod1,1", "n45ap", 2, 8900 }, | 173 | { 1, "iPod1,1", "n45ap", 0x02, 0x8900 }, |
| 174 | { 2, "iPhone1,2", "n82ap", 4, 8900 }, | 174 | { 2, "iPhone1,2", "n82ap", 0x04, 0x8900 }, |
| 175 | { 3, "iPod2,1", "n72ap", 0, 8720 }, | 175 | { 3, "iPod2,1", "n72ap", 0x00, 0x8720 }, |
| 176 | { 4, "iPhone2,1", "n88ap", 0, 8920 }, | 176 | { 4, "iPhone2,1", "n88ap", 0x00, 0x8920 }, |
| 177 | { 5, "iPod3,1", "n18ap", 2, 8922 }, | 177 | { 5, "iPod3,1", "n18ap", 0x02, 0x8922 }, |
| 178 | { 6, "iPad1,1", "k48ap", 2, 8930 }, | 178 | { 6, "iPad1,1", "k48ap", 0x02, 0x8930 }, |
| 179 | { 7, "iPhone3,1", "n90ap", 0, 8930 }, | 179 | { 7, "iPhone3,1", "n90ap", 0x00, 0x8930 }, |
| 180 | { 8, "iPod4,1", "n81ap", 8, 8930 }, | 180 | { 8, "iPod4,1", "n81ap", 0x08, 0x8930 }, |
| 181 | { 9, "AppleTV2,1", "k66ap", 10, 8930 }, | 181 | { 9, "AppleTV2,1", "k66ap", 0x10, 0x8930 }, |
| 182 | { 10, "iPhone3,3", "n92ap", 6, 8930 }, | 182 | { 10, "iPhone3,3", "n92ap", 0x06, 0x8930 }, |
| 183 | { 11, "iPad2,1", "k93ap", 4, 8940 }, | 183 | { 11, "iPad2,1", "k93ap", 0x04, 0x8940 }, |
| 184 | { 12, "iPad2,2", "k94ap", 6, 8940 }, | 184 | { 12, "iPad2,2", "k94ap", 0x06, 0x8940 }, |
| 185 | { 13, "iPad2,3", "k95ap", 2, 8940 }, | 185 | { 13, "iPad2,3", "k95ap", 0x02, 0x8940 }, |
| 186 | { 14, "iPhone4,1", "n94ap", 8, 8940 }, | 186 | { 14, "iPhone4,1", "n94ap", 0x08, 0x8940 }, |
| 187 | { -1, NULL, NULL, -1, -1 } | 187 | { -1, NULL, NULL, -1, -1 } |
| 188 | }; | 188 | }; |
| 189 | 189 | ||
