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" 23 #define CFM_IMAGE_SIZE 0x20000 24 #define CFM_DESCR_LEN 256 25 #define CFM_MAX_CYCX 1 26 #define CFM_LOAD_BUFSZ 0x400 27 #define GEN_POWER_ON 0x1280 28 #define GEN_SET_SEG 0x1401 29 #define GEN_BOOT_DAT 0x1402 30 #define GEN_START 0x1403 31 #define GEN_DEFPAR 0x1404 32 #define CYCX_2X 2 33 #define CYCX_8X 8 34 #define CYCX_16X 16 35 #define CFID_X25_2X 5200 36 struct cycx_fw_info { 37 unsigned short codeid; 38 unsigned short version; 39 unsigned short adapter[CFM_MAX_CYCX]; 40 unsigned long memsize; 41 unsigned short reserved[2]; 42 unsigned short startoffs; 43 unsigned short winoffs; 44 unsigned short codeoffs; 45 unsigned long codesize; 46 unsigned short dataoffs; 47 unsigned long datasize; 48 }; 49 struct cycx_firmware { 50 char signature[80]; 51 unsigned short version; 52 unsigned short checksum; 53 unsigned short reserved[6]; 54 char descr[CFM_DESCR_LEN]; 55 struct cycx_fw_info info; 56 unsigned char image[0]; 57 }; 58 struct cycx_fw_header { 59 unsigned long reset_size; 60 unsigned long data_size; 61 unsigned long code_size; 62 }; 63 #endif 64