Deleted Added
full compact
ppi.c (42475) ppi.c (43301)
1/*-
2 * Copyright (c) 1997, 1998 Nicolas Souchu, Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997, 1998 Nicolas Souchu, Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: ppi.c,v 1.8 1998/12/07 21:58:16 archie Exp $
26 * $Id: ppi.c,v 1.9 1999/01/10 12:04:55 nsouch Exp $
27 *
28 */
29#include "ppi.h"
30
31#if NPPI > 0
32
33#include <sys/param.h>
34#include <sys/systm.h>

--- 409 unchanged lines hidden (view full) ---

444 goto error;
445 }
446 }
447#ifdef DEBUG_1284
448 printf("N");
449#endif
450
451 /* negociation done, write bytes to master host */
27 *
28 */
29#include "ppi.h"
30
31#if NPPI > 0
32
33#include <sys/param.h>
34#include <sys/systm.h>

--- 409 unchanged lines hidden (view full) ---

444 goto error;
445 }
446 }
447#ifdef DEBUG_1284
448 printf("N");
449#endif
450
451 /* negociation done, write bytes to master host */
452 while (len = min(uio->uio_resid, BUFSIZE)) {
452 while ((len = min(uio->uio_resid, BUFSIZE)) != 0) {
453 uiomove(ppi->ppi_buffer, len, uio);
454 if ((error = byte_peripheral_write(&ppi->ppi_dev,
455 ppi->ppi_buffer, len, &sent)))
456 goto error;
457#ifdef DEBUG_1284
458 printf("d");
459#endif
460 }

--- 124 unchanged lines hidden ---
453 uiomove(ppi->ppi_buffer, len, uio);
454 if ((error = byte_peripheral_write(&ppi->ppi_dev,
455 ppi->ppi_buffer, len, &sent)))
456 goto error;
457#ifdef DEBUG_1284
458 printf("d");
459#endif
460 }

--- 124 unchanged lines hidden ---