Manu Gautam | 43c61a1 | 2012-08-22 17:09:37 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __LINUX_DIAG_DLOAD_H__ |
| 14 | #define __LINUX_DIAG_DLOAD_H__ |
| 15 | |
| 16 | |
| 17 | #define PID_MAGIC_ID 0x71432909 |
| 18 | #define SERIAL_NUM_MAGIC_ID 0x61945374 |
| 19 | #define SERIAL_NUMBER_LENGTH 128 |
| 20 | |
| 21 | struct magic_num_struct { |
| 22 | uint32_t pid; |
| 23 | uint32_t serial_num; |
| 24 | }; |
| 25 | |
| 26 | struct dload_struct { |
| 27 | uint32_t pid; |
| 28 | char serial_number[SERIAL_NUMBER_LENGTH]; |
| 29 | struct magic_num_struct magic_struct; |
| 30 | }; |
| 31 | |
| 32 | #endif |