Deleted Added
full compact
ppb_1284.c (55939) ppb_1284.c (55957)
1/*-
2 * Copyright (c) 1997 Nicolas Souchu
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 Nicolas Souchu
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 * $FreeBSD: head/sys/dev/ppbus/ppb_1284.c 55939 2000-01-14 00:18:06Z nsouch $
26 * $FreeBSD: head/sys/dev/ppbus/ppb_1284.c 55957 2000-01-14 08:03:15Z nsouch $
27 *
28 */
29
30/*
31 * General purpose routines for the IEEE1284-1994 Standard
32 */
33
34#include "opt_ppb_1284.h"

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

83 return (0);
84}
85
86/*
87 * ppb_1284_get_state()
88 *
89 * Get IEEE1284 state
90 */
27 *
28 */
29
30/*
31 * General purpose routines for the IEEE1284-1994 Standard
32 */
33
34#include "opt_ppb_1284.h"

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

83 return (0);
84}
85
86/*
87 * ppb_1284_get_state()
88 *
89 * Get IEEE1284 state
90 */
91static int
91int
92ppb_1284_get_state(device_t bus)
93{
94 return (DEVTOSOFTC(bus)->state);
95}
96
97/*
98 * ppb_1284_set_state()
99 *
100 * Change IEEE1284 state if no error occured
101 */
92ppb_1284_get_state(device_t bus)
93{
94 return (DEVTOSOFTC(bus)->state);
95}
96
97/*
98 * ppb_1284_set_state()
99 *
100 * Change IEEE1284 state if no error occured
101 */
102static int
102int
103ppb_1284_set_state(device_t bus, int state)
104{
105 struct ppb_data *ppb = DEVTOSOFTC(bus);
106
107 /* call ppb_1284_reset_error() if you absolutly want to change
108 * the state from PPB_ERROR to another */
109 if ((ppb->state != PPB_ERROR) &&
110 (ppb->error == PPB_NO_ERROR)) {

--- 748 unchanged lines hidden ---
103ppb_1284_set_state(device_t bus, int state)
104{
105 struct ppb_data *ppb = DEVTOSOFTC(bus);
106
107 /* call ppb_1284_reset_error() if you absolutly want to change
108 * the state from PPB_ERROR to another */
109 if ((ppb->state != PPB_ERROR) &&
110 (ppb->error == PPB_NO_ERROR)) {

--- 748 unchanged lines hidden ---