~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/cycx_cfm.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/cycx_cfm.h (Architecture sparc64) and /include/uapi/linux/cycx_cfm.h (Architecture m68k)


  1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu      1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2 /*                                                  2 /*
  3 * cycx_cfm.h    Cyclom 2X WAN Link Driver.          3 * cycx_cfm.h    Cyclom 2X WAN Link Driver.
  4 *               Definitions for the Cyclom 2X       4 *               Definitions for the Cyclom 2X Firmware Module (CFM).
  5 *                                                   5 *
  6 * Author:       Arnaldo Carvalho de Melo <acme      6 * Author:       Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  7 *                                                   7 *
  8 * Copyright:    (c) 1998-2003 Arnaldo Carvalho      8 * Copyright:    (c) 1998-2003 Arnaldo Carvalho de Melo
  9 *                                                   9 *
 10 * Based on sdlasfm.h by Gene Kozin <74604.152@     10 * Based on sdlasfm.h by Gene Kozin <74604.152@compuserve.com>
 11 *                                                  11 *
 12 *               This program is free software;     12 *               This program is free software; you can redistribute it and/or
 13 *               modify it under the terms of t     13 *               modify it under the terms of the GNU General Public License
 14 *               as published by the Free Softw     14 *               as published by the Free Software Foundation; either version
 15 *               2 of the License, or (at your      15 *               2 of the License, or (at your option) any later version.
 16 * ============================================     16 * ============================================================================
 17 * 1998/08/08    acme            Initial versio     17 * 1998/08/08    acme            Initial version.
 18 */                                                 18 */
 19 #ifndef _CYCX_CFM_H                                19 #ifndef _CYCX_CFM_H
 20 #define _CYCX_CFM_H                                20 #define _CYCX_CFM_H
 21                                                    21 
 22 /* Defines */                                      22 /* Defines */
 23                                                    23 
 24 #define CFM_VERSION     2                          24 #define CFM_VERSION     2
 25 #define CFM_SIGNATURE   "CFM - Cyclades CYCX F     25 #define CFM_SIGNATURE   "CFM - Cyclades CYCX Firmware Module"
 26                                                    26 
 27 /* min/max */                                      27 /* min/max */
 28 #define CFM_IMAGE_SIZE  0x20000 /* max size of     28 #define CFM_IMAGE_SIZE  0x20000 /* max size of CYCX code image file */
 29 #define CFM_DESCR_LEN   256     /* max length      29 #define CFM_DESCR_LEN   256     /* max length of description string */
 30 #define CFM_MAX_CYCX    1       /* max number      30 #define CFM_MAX_CYCX    1       /* max number of compatible adapters */
 31 #define CFM_LOAD_BUFSZ  0x400   /* buffer size     31 #define CFM_LOAD_BUFSZ  0x400   /* buffer size for reset code (buffer_load) */
 32                                                    32 
 33 /* Firmware Commands */                            33 /* Firmware Commands */
 34 #define GEN_POWER_ON    0x1280                     34 #define GEN_POWER_ON    0x1280
 35                                                    35 
 36 #define GEN_SET_SEG     0x1401  /* boot segmen     36 #define GEN_SET_SEG     0x1401  /* boot segment setting. */
 37 #define GEN_BOOT_DAT    0x1402  /* boot data.      37 #define GEN_BOOT_DAT    0x1402  /* boot data. */
 38 #define GEN_START       0x1403  /* board start     38 #define GEN_START       0x1403  /* board start. */
 39 #define GEN_DEFPAR      0x1404  /* buffer leng     39 #define GEN_DEFPAR      0x1404  /* buffer length for boot. */
 40                                                    40 
 41 /* Adapter Types */                                41 /* Adapter Types */
 42 #define CYCX_2X         2                          42 #define CYCX_2X         2
 43 /* for now only the 2X is supported, no plans      43 /* for now only the 2X is supported, no plans to support 8X or 16X */
 44 #define CYCX_8X         8                          44 #define CYCX_8X         8
 45 #define CYCX_16X        16                         45 #define CYCX_16X        16
 46                                                    46 
 47 #define CFID_X25_2X     5200                       47 #define CFID_X25_2X     5200
 48                                                    48 
 49 /**                                                49 /**
 50  *      struct cycx_fw_info - firmware module      50  *      struct cycx_fw_info - firmware module information.
 51  *      @codeid - firmware ID                      51  *      @codeid - firmware ID
 52  *      @version - firmware version number         52  *      @version - firmware version number
 53  *      @adapter - compatible adapter types        53  *      @adapter - compatible adapter types
 54  *      @memsize - minimum memory size             54  *      @memsize - minimum memory size
 55  *      @reserved - reserved                       55  *      @reserved - reserved
 56  *      @startoffs - entry point offset            56  *      @startoffs - entry point offset
 57  *      @winoffs - dual-port memory window off     57  *      @winoffs - dual-port memory window offset
 58  *      @codeoffs - code load offset               58  *      @codeoffs - code load offset
 59  *      @codesize - code size                      59  *      @codesize - code size
 60  *      @dataoffs - configuration data load of     60  *      @dataoffs - configuration data load offset
 61  *      @datasize - configuration data size        61  *      @datasize - configuration data size
 62  */                                                62  */
 63 struct cycx_fw_info {                              63 struct cycx_fw_info {
 64         unsigned short  codeid;                    64         unsigned short  codeid;
 65         unsigned short  version;                   65         unsigned short  version;
 66         unsigned short  adapter[CFM_MAX_CYCX];     66         unsigned short  adapter[CFM_MAX_CYCX];
 67         unsigned long   memsize;                   67         unsigned long   memsize;
 68         unsigned short  reserved[2];               68         unsigned short  reserved[2];
 69         unsigned short  startoffs;                 69         unsigned short  startoffs;
 70         unsigned short  winoffs;                   70         unsigned short  winoffs;
 71         unsigned short  codeoffs;                  71         unsigned short  codeoffs;
 72         unsigned long   codesize;                  72         unsigned long   codesize;
 73         unsigned short  dataoffs;                  73         unsigned short  dataoffs;
 74         unsigned long   datasize;                  74         unsigned long   datasize;
 75 };                                                 75 };
 76                                                    76 
 77 /**                                                77 /**
 78  *      struct cycx_firmware - CYCX firmware f     78  *      struct cycx_firmware - CYCX firmware file structure
 79  *      @signature - CFM file signature            79  *      @signature - CFM file signature
 80  *      @version - file format version             80  *      @version - file format version
 81  *      @checksum - info + image                   81  *      @checksum - info + image
 82  *      @reserved - reserved                       82  *      @reserved - reserved
 83  *      @descr - description string                83  *      @descr - description string
 84  *      @info - firmware module info               84  *      @info - firmware module info
 85  *      @image - code image (variable size)        85  *      @image - code image (variable size)
 86  */                                                86  */
 87 struct cycx_firmware {                             87 struct cycx_firmware {
 88         char                signature[80];         88         char                signature[80];
 89         unsigned short      version;               89         unsigned short      version;
 90         unsigned short      checksum;              90         unsigned short      checksum;
 91         unsigned short      reserved[6];           91         unsigned short      reserved[6];
 92         char                descr[CFM_DESCR_LE     92         char                descr[CFM_DESCR_LEN];
 93         struct cycx_fw_info info;                  93         struct cycx_fw_info info;
 94         unsigned char       image[];               94         unsigned char       image[];
 95 };                                                 95 };
 96                                                    96 
 97 struct cycx_fw_header {                            97 struct cycx_fw_header {
 98         unsigned long  reset_size;                 98         unsigned long  reset_size;
 99         unsigned long  data_size;                  99         unsigned long  data_size;
100         unsigned long  code_size;                 100         unsigned long  code_size;
101 };                                                101 };
102 #endif  /* _CYCX_CFM_H */                         102 #endif  /* _CYCX_CFM_H */
103                                                   103 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php