Annotation of xinu/h/sluinclude.h, revision 1.1.1.1

1.1       root        1: /* avoid #elif since not available in pre-ANSII C--          */
                      2: /* pass in SLUCHIP value via compiler args, for ex.,         */
                      3: /*   gcc -m68000 -c -DSLUCHIP=6850                           */
                      4: /*   or                                                      */
                      5: /*   gcc -m68000 -c -DSLUCHIP=7201                           */
                      6: /* Then the following will select the chip-specific headers  */
                      7: /* If SLUCHIP is not defined, we get the original headers    */
                      8: /*  slu.h and sluaccess.h                                    */
                      9: /*  and the original function names ttywrite, etc.           */
                     10: 
                     11: #ifdef SLUCHIP
                     12: 
                     13: #if SLUCHIP==6850
                     14: #include <slu6850.h>
                     15: #include <sluaccess6850.h>
                     16: /* the device-specific function names--used in sources ttywrite.c, etc. */
                     17: #define TTYWRITE ttywrite6850
                     18: #define TTYPUTC ttyputc6850
                     19: #define TTYINIT ttyinit6850
                     20: #define TTYIIN ttyiin6850
                     21: #define TTYOIN ttyoin6850
                     22: #define TTYCNTL ttycntl6850
                     23: /* extra code needed to discriminate between input and output interrupts-- */
                     24: #define SLUINT sluint6850
                     25: #endif  /* SLUCHIP==6850 */
                     26: 
                     27: #if SLUCHIP==7201
                     28: #include <slu7201.h>
                     29: #include <sluaccess7201.h>
                     30: /* the device-specific function names--used in sources ttywrite.c, etc. */
                     31: #define TTYWRITE ttywrite7201
                     32: #define TTYPUTC ttyputc7201
                     33: #define TTYINIT ttyinit7201
                     34: #define TTYIIN ttyiin7201
                     35: #define TTYOIN ttyoin7201
                     36: #define TTYCNTL ttycntl7201
                     37: /* extra code needed to discriminate between input and output interrupts-- */
                     38: #define SLUINT sluint7201
                     39: #endif  /* case SLUCHIP==7201 */
                     40: 
                     41: #else  /* SLUCHIP not defined: only one, default SLU chip--original case */
                     42: #include <slu6850.h>
                     43: #include <sluaccess6850.h>
                     44: #define TTYWRITE ttywrite
                     45: #define TTYPUTC ttyputc
                     46: #define TTYINIT ttyinit
                     47: #define TTYIIN ttyiin
                     48: #define TTYOIN ttyoin
                     49: #define TTYCNTL ttycntl
                     50: /* extra code needed to discriminate between input and output interrupts-- */
                     51: #define SLUINT sluint
                     52: #endif
                     53: 

unix.superglobalmegacorp.com

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