Annotation of researchv9/cmd/sun/pcc/sky.h, revision 1.1.1.1

1.1       root        1: /*     @(#)sky.h 1.1 86/02/03 SMI      */
                      2: 
                      3: /*
                      4:  * Copyright (c) 1985 by Sun Microsystems, Inc.
                      5:  */
                      6: 
                      7: /*
                      8:  * as include file for interfacing the sky ffp board
                      9:  *             21 June, 1983   rt
                     10:  */
                     11: 
                     12: /*  shape of the ffp register data structure: */
                     13: struct sky {
                     14:        unsigned short  sky_command;
                     15:        unsigned short  sky_status;
                     16:        union{
                     17:            short sword[2];
                     18:            long  slong;
                     19:        }s;
                     20: #define        sky_data        s.slong
                     21: #define sky_d1reg      s.sword[0]
                     22:        long    sky_ucode;
                     23: };
                     24: 
                     25: /*
                     26:  *
                     27:  * some commands:
                     28:  *
                     29:  */
                     30: /* control commands: */
                     31: #define        S_INIT          0x1000
                     32: #define        S_SAVE          0x1040
                     33: #define        S_REST          0x1041
                     34: #define        S_NOP           0x1063
                     35: /* state-free conversions: b <- f(a) */
                     36: #define        S_ITOS          0x1024
                     37: #define        S_ITOD          0x1044
                     38: #define        S_STOD          0x1042
                     39: #define        S_DTOS          0x1043
                     40: #define        S_DTOI          0x1045
                     41: #define        S_STOI          0x1027
                     42: /* state-free single-precision arithmetic: b <- f(a1,a2) */
                     43: #define        S_SADD3         0x1001
                     44: #define        S_SSUB3         0x1007
                     45: #define        S_SMUL3         0x100B
                     46: #define        S_SDIV3         0x1013
                     47: #define S_SPVT3                0x1017  /* b <- a3 + a1*a2 */
                     48: /* state-dependent single-precision arithmetic: b <- f(r0,a1) */
                     49: #define        S_SADD2         0x1003  /* S_SADD3+2 */
                     50: #define        S_SSUB2         0x1009  /*   &c.     */
                     51: #define        S_SMUL2         0x100D
                     52: #define        S_SDIV2         0x1015
                     53: /* state-free double-precision arithmetic: b <- f(a1,a2) */
                     54: #define        S_DADD3         0x1002  /* S_SADD3+1 */
                     55: #define        S_DSUB3         0x1008  /*   &c.     */
                     56: #define        S_DMUL3         0x100C
                     57: #define        S_DDIV3         0x1014
                     58: #define S_DPVT3                0x1018  /* b <- a3 + a1*a2 */
                     59: /* state-dependent double-precision arithmetic: b <- f(r0,a1) */
                     60: #define        S_DADD2         0x1004  /* S_DADD3+2 or S_SADD2+1 or S_SADD3+3 */
                     61: #define        S_DSUB2         0x100A  /*                &c.                  */
                     62: #define        S_DMUL2         0x100E
                     63: #define        S_DDIV2         0x1016
                     64: /* state-free comparisons: b <- a1 vs. a2 */
                     65: #define        S_SCMP3         0x105D
                     66: #define        S_DCMP3         0x105E
                     67: /* state-dependent comparisons: b <- r0 vs. a1 */
                     68: #define        S_SCMP2         0x105F  /* S_SCMP3+2 */
                     69: #define        S_DCMP2         0x1060  /* S_DCMP3+2 */
                     70: /* random data movement        */
                     71: #define        S_LDS           0x1031
                     72: #define        S_LDD           0x1034

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.