]> sourceware.org Git - newlib-cygwin.git/blob - libgloss/mips/array-io.c
5c1d96fa345ed9e3e192a7036ff738b6d76ef41f
[newlib-cygwin.git] / libgloss / mips / array-io.c
1 /* array-io.c -- I/O code for the Array Tech RAID disk controller.
2 *
3 * Copyright (c) 1995 Cygnus Support
4 *
5 * The authors hereby grant permission to use, copy, modify, distribute,
6 * and license this software and its documentation for any purpose, provided
7 * that existing copyright notices are retained in all copies and that this
8 * notice is included verbatim in any distributions. No written agreement,
9 * license, or royalty fee is required for any of the authorized uses.
10 * Modifications to this software may be copyrighted by their authors
11 * and need not follow the licensing terms described here, provided that
12 * the new terms are clearly indicated on the first page of each file where
13 * they apply.
14 */
15 #include "mips.h"
16
17 /*
18 * outbyte -- shove a byte out the serial port. We wait till the byte
19 */
20 int
21 outbyte(byte)
22 unsigned char byte;
23 {
24 return (PUTCHAR(byte));
25 }
26
27 /*
28 * inbyte -- get a byte from the serial port
29 */
30 unsigned char
31 inbyte()
32 {
33 return ((unsigned char)GETCHAR);
34 }
35
36 /*
37 * led_putnum -- print a hex number on the LED. the value of num must be a byte.
38
39 * The max number 15, since the front panel only has 4 LEDs.
40 */
41 void
42 led_putnum ( num )
43 char num;
44 {
45 print ("Sorry, unimplemented, using putnum instead\r\n");
46 putnum (num);
47 }
48
49 /*
50 * zylons -- draw a rotating pattern. NOTE: this function never returns.
51 */
52 void
53 zylons()
54 {
55 print ("Sorry, unimplemented\r\n");
56 }
57
58 /*
59 * delay -- a really gross, ugly hack for simple time delays
60 */
61 void
62 delay (x)
63 int x;
64 {
65 int y = 17;
66 while (x-- !=0)
67 y = y^2;
68 }
This page took 0.044885 seconds and 6 git commands to generate.