| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _CYCX_CFM_H | 
|  | 20 | #define _CYCX_CFM_H | 
|  | 21 | #define CFM_VERSION 2 | 
|  | 22 | #define CFM_SIGNATURE "CFM - Cyclades CYCX Firmware Module" | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define CFM_IMAGE_SIZE 0x20000 | 
|  | 24 | #define CFM_DESCR_LEN 256 | 
|  | 25 | #define CFM_MAX_CYCX 1 | 
|  | 26 | #define CFM_LOAD_BUFSZ 0x400 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define GEN_POWER_ON 0x1280 | 
|  | 28 | #define GEN_SET_SEG 0x1401 | 
|  | 29 | #define GEN_BOOT_DAT 0x1402 | 
|  | 30 | #define GEN_START 0x1403 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define GEN_DEFPAR 0x1404 | 
|  | 32 | #define CYCX_2X 2 | 
|  | 33 | #define CYCX_8X 8 | 
|  | 34 | #define CYCX_16X 16 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define CFID_X25_2X 5200 | 
|  | 36 | struct cycx_fw_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 37 | unsigned short codeid; | 
|  | 38 | unsigned short version; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | unsigned short adapter[CFM_MAX_CYCX]; | 
|  | 40 | unsigned long memsize; | 
|  | 41 | unsigned short reserved[2]; | 
|  | 42 | unsigned short startoffs; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | unsigned short winoffs; | 
|  | 44 | unsigned short codeoffs; | 
|  | 45 | unsigned long codesize; | 
|  | 46 | unsigned short dataoffs; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | unsigned long datasize; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | }; | 
|  | 49 | struct cycx_firmware { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 50 | char signature[80]; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | unsigned short version; | 
|  | 52 | unsigned short checksum; | 
|  | 53 | unsigned short reserved[6]; | 
|  | 54 | char descr[CFM_DESCR_LEN]; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | struct cycx_fw_info info; | 
|  | 56 | unsigned char image[0]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | }; | 
|  | 58 | struct cycx_fw_header { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | unsigned long reset_size; | 
|  | 60 | unsigned long data_size; | 
|  | 61 | unsigned long code_size; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 62 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | #endif |