···11-/*22-** -----------------------------------------------------------------------------33-**44-** Perle Specialix driver for Linux55-** Ported from existing RIO Driver for SCO sources.66- *77- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.88- *99- * This program is free software; you can redistribute it and/or modify1010- * it under the terms of the GNU General Public License as published by1111- * the Free Software Foundation; either version 2 of the License, or1212- * (at your option) any later version.1313- *1414- * This program is distributed in the hope that it will be useful,1515- * but WITHOUT ANY WARRANTY; without even the implied warranty of1616- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1717- * GNU General Public License for more details.1818- *1919- * You should have received a copy of the GNU General Public License2020- * along with this program; if not, write to the Free Software2121- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2222-**2323-** Module : riscos.h2424-** SID : 1.22525-** Last Modified : 11/6/98 11:34:192626-** Retrieved : 11/6/98 11:34:222727-**2828-** ident @(#)riscos.h 1.22929-**3030-** -----------------------------------------------------------------------------3131-*/3232-3333-#ifndef __rio_riscos_h__3434-#define __rio_riscos_h__3535-3636-#ifdef SCCS_LABELS3737-static char *_riscos_h_sccs_ = "@(#)riscos.h 1.2";3838-#endif3939-4040-/*4141-** This module used to define all those little itsy bits required for RISC/OS4242-** now it's full of null macros.4343-*/4444-4545-/*4646-** RBYTE reads a byte from a location.4747-** RWORD reads a word from a location.4848-** WBYTE writes a byte to a location.4949-** WWORD writes a word to a location.5050-** RINDW reads a word through a pointer.5151-** WINDW writes a word through a pointer.5252-** RIOSWAB swaps the two bytes of a word, if needed.5353-*/5454-5555-#define RIOSWAB(N) (N)5656-#define WBYTE(A,V) (A)=(uchar)(V)5757-#define WWORD(A,V) (A)=(ushort)(V)5858-#define RBYTE(A) (uchar)(A)5959-#define RWORD(A) (ushort)(A)6060-#define RINDW(A) (*(ushort *)(A))6161-#define WINDW(A,V) (*(ushort *)(A)=(ushort)(V))6262-6363-#endif /* __rio_riscos_h__ */