···11-/****************************************************************************22- ******* *******33- ******* RUPSTAT44- ******* *******55- ****************************************************************************66-77- Author : Jeremy Rolls88- Date :99-1010- *1111- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.1212- *1313- * This program is free software; you can redistribute it and/or modify1414- * it under the terms of the GNU General Public License as published by1515- * the Free Software Foundation; either version 2 of the License, or1616- * (at your option) any later version.1717- *1818- * This program is distributed in the hope that it will be useful,1919- * but WITHOUT ANY WARRANTY; without even the implied warranty of2020- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2121- * GNU General Public License for more details.2222- *2323- * You should have received a copy of the GNU General Public License2424- * along with this program; if not, write to the Free Software2525- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2626-2727- Version : 0.012828-2929-3030- Mods3131- ----------------------------------------------------------------------------3232- Date By Description3333- ----------------------------------------------------------------------------3434-3535- ***************************************************************************/3636-3737-#ifndef _rupstat_h3838-#define _rupstat_h3939-4040-#ifndef lint4141-#ifdef SCCS_LABELS4242-static char *_rio_rupstat_h_sccs = "@(#)rupstat.h 1.1";4343-#endif4444-#endif4545-4646-#define STATUS_SYNC 04747-#define STATUS_REQ_TOP 14848-#define STATUS_TOPOLOGY 24949-5050-#endif
-73
drivers/char/rio/selftest.h
···11-/*22-** File: selftest.h33-**44-** Author: David Dix55-**66-** Created: 15th March 199377-**88-** Last modified: 94/06/1499-**1010- *1111- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.1212- *1313- * This program is free software; you can redistribute it and/or modify1414- * it under the terms of the GNU General Public License as published by1515- * the Free Software Foundation; either version 2 of the License, or1616- * (at your option) any later version.1717- *1818- * This program is distributed in the hope that it will be useful,1919- * but WITHOUT ANY WARRANTY; without even the implied warranty of2020- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2121- * GNU General Public License for more details.2222- *2323- * You should have received a copy of the GNU General Public License2424- * along with this program; if not, write to the Free Software2525- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2626-*/2727-2828-#ifndef _selftests_h_2929-#define _selftests_h_3030-3131-/*3232-** Selftest identifier...3333-*/3434-#define SELFTEST_MAGIC 0x5a5a3535-3636-/*3737-** This is the structure of the packet that is sent back after each3838-** selftest on a booting RTA.3939-*/4040-typedef struct {4141- short magic; /* Identifies packet type */4242- int test; /* Test number, see below */4343- unsigned int result; /* Result value */4444- unsigned int dataIn;4545- unsigned int dataOut;4646-} selftestStruct;4747-4848-/*4949-** The different tests are identified by the following data values.5050-*/5151-enum test {5252- TESTS_COMPLETE = 0x00,5353- MEMTEST_ADDR = 0x01,5454- MEMTEST_BIT = 0x02,5555- MEMTEST_FILL = 0x03,5656- MEMTEST_DATABUS = 0x04,5757- MEMTEST_ADDRBUS = 0x05,5858- CD1400_INIT = 0x10,5959- CD1400_LOOP = 0x11,6060- CD1400_INTERRUPT = 0x126161-};6262-6363-enum result {6464- E_PORT = 0x10,6565- E_TX = 0x11,6666- E_RX = 0x12,6767- E_EXCEPT = 0x13,6868- E_COMPARE = 0x14,6969- E_MODEM = 0x15,7070- E_TIMEOUT = 0x16,7171- E_INTERRUPT = 0x177272-};7373-#endif /* _selftests_h_ */
-62
drivers/char/rio/sysmap.h
···11-22-/****************************************************************************33- ******* *******44- ******* S Y S T E M M A P H E A D E R55- ******* *******66- ****************************************************************************77-88- Author : Ian Nandhra99- Date :1010-1111- *1212- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.1313- *1414- * This program is free software; you can redistribute it and/or modify1515- * it under the terms of the GNU General Public License as published by1616- * the Free Software Foundation; either version 2 of the License, or1717- * (at your option) any later version.1818- *1919- * This program is distributed in the hope that it will be useful,2020- * but WITHOUT ANY WARRANTY; without even the implied warranty of2121- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2222- * GNU General Public License for more details.2323- *2424- * You should have received a copy of the GNU General Public License2525- * along with this program; if not, write to the Free Software2626- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2727-2828- Version : 0.012929-3030-3131- Mods3232- ----------------------------------------------------------------------------3333- Date By Description3434- ----------------------------------------------------------------------------3535-3636- ***************************************************************************/3737-3838-#ifndef lint3939-#ifdef SCCS_LABELS4040-static char *_rio_sysmap_h_sccs = "@(#)sysmap.h 1.1";4141-#endif4242-#endif4343-4444-#define SYSTEM_MAP_LEN 64 /* Len of System Map array */4545-4646-4747-typedef struct SYS_MAP SYS_MAP;4848-typedef struct SYS_MAP_LINK SYS_MAP_LINK;4949-5050-struct SYS_MAP_LINK {5151- short id; /* Unit Id */5252- short link; /* Id's Link */5353- short been_here; /* Used by map_gen */5454-};5555-5656-struct SYS_MAP {5757- char serial_num[4];5858- SYS_MAP_LINK link[4];5959-};6060-6161-6262-/*********** end of file ***********/
-50
drivers/char/rio/timeouts.h
···11-22-/****************************************************************************33- ******* *******44- ******* T I M E O U T S55- ******* *******66- ****************************************************************************77-88- Author : Ian Nandhra99- Date :1010-1111- *1212- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.1313- *1414- * This program is free software; you can redistribute it and/or modify1515- * it under the terms of the GNU General Public License as published by1616- * the Free Software Foundation; either version 2 of the License, or1717- * (at your option) any later version.1818- *1919- * This program is distributed in the hope that it will be useful,2020- * but WITHOUT ANY WARRANTY; without even the implied warranty of2121- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2222- * GNU General Public License for more details.2323- *2424- * You should have received a copy of the GNU General Public License2525- * along with this program; if not, write to the Free Software2626- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2727-2828- Version : 0.012929-3030-3131- Mods3232- ----------------------------------------------------------------------------3333- Date By Description3434- ----------------------------------------------------------------------------3535-3636- ***************************************************************************/3737-3838-#ifndef lint3939-#ifdef SCCS_LABELS4040-static char *_rio_defaults_h_sccs = "@(#)timeouts.h 1.3";4141-#endif4242-#endif4343-4444-#define MILLISECOND (int) (1000/64) /* 15.625 low ticks */4545-#define SECOND (int) 15625 /* Low priority ticks */4646-4747-#define TX_TIMEOUT (int) (200 * MILLISECOND)4848-4949-5050-/*********** end of file ***********/