Deleted Added
full compact
vpoio.h (55939) vpoio.h (70608)
1/*-
2 * Copyright (c) 1998 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) 1998 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/vpoio.h 55939 2000-01-14 00:18:06Z nsouch $
26 * $FreeBSD: head/sys/dev/ppbus/vpoio.h 70608 2001-01-02 21:29:06Z nsouch $
27 *
28 */
29#ifndef __VP0IO_H
30#define __VP0IO_H
31
32/*
33 * The ZIP drive cannot act as an initiator.
34 */

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

54 * Data structure used during microsequence execution
55 * when characters are received in nibble mode
56 */
57struct vpo_nibble {
58 char h; /* most significant nibble */
59 char l; /* less significant nibble */
60};
61
27 *
28 */
29#ifndef __VP0IO_H
30#define __VP0IO_H
31
32/*
33 * The ZIP drive cannot act as an initiator.
34 */

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

54 * Data structure used during microsequence execution
55 * when characters are received in nibble mode
56 */
57struct vpo_nibble {
58 char h; /* most significant nibble */
59 char l; /* less significant nibble */
60};
61
62/* Mode found during initialisation */
63#define VP0_MODE_UNDEFINED 0x0
64#define VP0_MODE_NIBBLE 0x1
65#define VP0_MODE_PS2 0x2
66#define VP0_MODE_EPP 0x3
67
62struct vpoio_data {
63 unsigned short int vpo_unit;
68struct vpoio_data {
69 unsigned short int vpo_unit;
70 int vpo_mode_found; /* Mode found during init */
64
65 struct vpo_nibble vpo_nibble;
66
67 /* each device must have its own nibble inbyte microsequence */
68 struct ppb_microseq *vpo_nibble_inbyte_msq;
69
70 device_t vpo_dev;
71};

--- 22 unchanged lines hidden ---
71
72 struct vpo_nibble vpo_nibble;
73
74 /* each device must have its own nibble inbyte microsequence */
75 struct ppb_microseq *vpo_nibble_inbyte_msq;
76
77 device_t vpo_dev;
78};

--- 22 unchanged lines hidden ---