Deleted Added
full compact
amrvar.h (59249) amrvar.h (60833)
1/*-
2 * Copyright (c) 1999 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) 1999 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 * $FreeBSD: head/sys/dev/amr/amrvar.h 59249 2000-04-15 05:54:02Z phk $
26 * $FreeBSD: head/sys/dev/amr/amrvar.h 60833 2000-05-23 20:41:01Z jake $
27 */
28
29/*
30 * We could actually use all 17 segments, but using only 16 means that
31 * each scatter/gather map is 128 bytes in size, and thus we don't have to worry about
32 * maps crossing page boundaries.
33 */
34#define AMR_NSEG 16

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

64};
65
66
67/*
68 * Per-command control structure.
69 */
70struct amr_command
71{
27 */
28
29/*
30 * We could actually use all 17 segments, but using only 16 means that
31 * each scatter/gather map is 128 bytes in size, and thus we don't have to worry about
32 * maps crossing page boundaries.
33 */
34#define AMR_NSEG 16

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

64};
65
66
67/*
68 * Per-command control structure.
69 */
70struct amr_command
71{
72 TAILQ_ENTRY(amr_command) ac_link;
72 TAILQ_ENTRY(struct amr_command) ac_link;
73
74 struct amr_softc *ac_sc;
75 u_int8_t ac_slot;
76 int ac_status;
77#define AMR_STATUS_BUSY 0xffff
78#define AMR_STATUS_WEDGED 0xdead
79#define AMR_STATUS_LATE 0xdeed
80 struct amr_mailbox ac_mailbox;

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

135#define AMR_STATE_SHUTDOWN (1<<3)
136 struct callout_handle amr_timeout; /* periodic status check */
137
138 /* per-controller queues */
139 struct bio_queue_head amr_bioq; /* pending I/O */
140 int amr_waitbufs;
141 struct amr_command *amr_busycmd[AMR_MAXCMD];
142 int amr_busycmdcount;
73
74 struct amr_softc *ac_sc;
75 u_int8_t ac_slot;
76 int ac_status;
77#define AMR_STATUS_BUSY 0xffff
78#define AMR_STATUS_WEDGED 0xdead
79#define AMR_STATUS_LATE 0xdeed
80 struct amr_mailbox ac_mailbox;

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

135#define AMR_STATE_SHUTDOWN (1<<3)
136 struct callout_handle amr_timeout; /* periodic status check */
137
138 /* per-controller queues */
139 struct bio_queue_head amr_bioq; /* pending I/O */
140 int amr_waitbufs;
141 struct amr_command *amr_busycmd[AMR_MAXCMD];
142 int amr_busycmdcount;
143 TAILQ_HEAD(,amr_command) amr_work;
143 TAILQ_HEAD(, struct amr_command) amr_work;
144 int amr_workcount;
144 int amr_workcount;
145 TAILQ_HEAD(,amr_command) amr_freecmds;
145 TAILQ_HEAD(, struct amr_command) amr_freecmds;
146
147 int amr_locks; /* reentrancy avoidance */
148
149 /* controller type-specific support */
150 int amr_type;
151#define AMR_TYPE_STD 0
152#define AMR_TYPE_QUARTZ 1
153 void (* amr_submit_command)(struct amr_softc *sc);

--- 94 unchanged lines hidden ---
146
147 int amr_locks; /* reentrancy avoidance */
148
149 /* controller type-specific support */
150 int amr_type;
151#define AMR_TYPE_STD 0
152#define AMR_TYPE_QUARTZ 1
153 void (* amr_submit_command)(struct amr_softc *sc);

--- 94 unchanged lines hidden ---