⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ksr.h

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 H
字号:
#ifndef _KSRTCGMSG_H#define _KSRTCGMSG_H#define KSR_NUM_HEADERS    256#define KSR_NUM_SLOTS      256#define KSR_SLOT_SIZE      16384typedef __align128 unsigned char subpage[128];/* * Message slot type */typedef struct message_slot_t{    __align128 struct message_slot_t *next;    char data[KSR_SLOT_SIZE];} message_slot_t;/* * List of message slots */typedef struct{    __align128 message_slot_t *list;} message_slot_list_t;/* * Message header type */typedef struct message_hdr_t{    __align128 long type;    long from;    long length;    struct message_hdr_t *next;    struct message_hdr_t *prev;    message_slot_t *slot;    char *dataptr;    /*     * This macro should give the amount of unused space in this structure     */#define MSG_HDR_DATA (9 * sizeof(long))    char data[MSG_HDR_DATA];} message_hdr_t;/* * List of message headers */typedef struct{    __align128 message_hdr_t *list;} message_hdr_list_t;/* * Define constants for buffer space */#define KSR_SHMEM_BUF_SIZE KSR_NUM_SLOTS * sizeof(message_slot_t) + \                           sizeof(message_slot_list_t) + \                           KSR_NUM_HEADERS * sizeof(message_hdr_t) + \                           sizeof(message_hdr_list_t) + \                           sizeof(message_hdr_list_t)#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -