idprom.h
来自「TCP-IP红宝书源代码」· C头文件 代码 · 共 38 行
H
38 行
/* @(#)idprom.h 1.5 85/04/15 SMI */
/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*/
/*
* Structure declaration for ID prom in CPU and Ethernet boards
*/
struct idprom {
unsigned char id_format; /* format identifier */
/* The following fields are valid only in format IDFORM_1. */
unsigned char id_machine; /* machine type */
unsigned char id_ether[6]; /* ethernet address */
long id_date; /* date of manufacture */
unsigned id_serial:24; /* serial number */
unsigned char id_xsum; /* xor checksum */
unsigned char id_undef[16]; /* undefined */
};
#define IDFORM_1 1 /* Format number for first ID proms */
/*
* The machine type field assignments are constrained such that the
* IDM_ARCH_MASK bits define the CPU architecture and the remaining bits
* identify the individual implementation of that architecture.
*/
#define IDM_ARCH_MASK 0xf0 /* mask for architecture bits */
#define IDM_ARCH_SUN2 0x00 /* arch value for Sun-2 */
#define IDM_ARCH_SUN3 0x10 /* arch value for Sun-3 */
/* All possible values of the id_machine field (so far): */
#define IDM_SUN2_MULTI 1 /* Machine type for Multibus CPU board */
#define IDM_SUN2_VME 2 /* Machine type for VME CPU board */
#define IDM_SUN3_CARRERA 0x11 /* Carrera CPU */
#define IDM_SUN3_M25 0x12 /* M25 CPU */
#define IDM_SUN3_SIRIUS 0x13 /* Sirius CPU */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?