si.c (132226) | si.c (132771) |
---|---|
1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992, 1998 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au> 7 * 8 * Originally derived from: SunOS 4.x version --- 19 unchanged lines hidden (view full) --- 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * 33 */ 34 35#include <sys/cdefs.h> | 1/* 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 1990, 1992, 1998 Specialix International, 5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk> 6 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au> 7 * 8 * Originally derived from: SunOS 4.x version --- 19 unchanged lines hidden (view full) --- 28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 31 * NO EVENT SHALL THE AUTHORS BE LIABLE. 32 * 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/si/si.c 132226 2004-07-15 20:47:41Z phk $"); | 36__FBSDID("$FreeBSD: head/sys/dev/si/si.c 132771 2004-07-28 06:21:53Z kan $"); |
37 38#ifndef lint 39static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998", 40 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993", 41 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000"; 42#endif /* not lint */ 43 44#include "opt_compat.h" --- 165 unchanged lines hidden (view full) --- 210 211/* 212 * We have to make an 8 bit version of bcopy, since some cards can't 213 * deal with 32 bit I/O 214 */ 215static void __inline 216si_bcopy(const void *src, void *dst, size_t len) 217{ | 37 38#ifndef lint 39static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998", 40 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993", 41 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000"; 42#endif /* not lint */ 43 44#include "opt_compat.h" --- 165 unchanged lines hidden (view full) --- 210 211/* 212 * We have to make an 8 bit version of bcopy, since some cards can't 213 * deal with 32 bit I/O 214 */ 215static void __inline 216si_bcopy(const void *src, void *dst, size_t len) 217{ |
218 u_char *d; 219 const u_char *s; 220 221 d = dst; 222 s = src; |
|
218 while (len--) | 223 while (len--) |
219 *(((u_char *)dst)++) = *(((const u_char *)src)++); | 224 *d++ = *s++; |
220} 221static void __inline 222si_vbcopy(const volatile void *src, void *dst, size_t len) 223{ | 225} 226static void __inline 227si_vbcopy(const volatile void *src, void *dst, size_t len) 228{ |
229 u_char *d; 230 const volatile u_char *s; 231 232 d = dst; 233 s = src; |
|
224 while (len--) | 234 while (len--) |
225 *(((u_char *)dst)++) = *(((const volatile u_char *)src)++); | 235 *d++ = *s++; |
226} 227static void __inline 228si_bcopyv(const void *src, volatile void *dst, size_t len) 229{ | 236} 237static void __inline 238si_bcopyv(const void *src, volatile void *dst, size_t len) 239{ |
240 volatile u_char *d; 241 const u_char *s; 242 243 d = dst; 244 s = src; |
|
230 while (len--) | 245 while (len--) |
231 *(((volatile u_char *)dst)++) = *(((const u_char *)src)++); | 246 *d++ = *s++; |
232} 233 | 247} 248 |
234 | |
235/* 236 * Attach the device. Initialize the card. 237 */ 238int 239siattach(device_t dev) 240{ 241 int unit; 242 struct si_softc *sc; --- 1875 unchanged lines hidden --- | 249/* 250 * Attach the device. Initialize the card. 251 */ 252int 253siattach(device_t dev) 254{ 255 int unit; 256 struct si_softc *sc; --- 1875 unchanged lines hidden --- |