Deleted Added
full compact
wd7000.c (166914) wd7000.c (168752)
1/*-
2 * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
3 * Copyright (c) 2000 Sergey A. Babkin
4 * All rights reserved.
5 *
6 * Written by Olof Johansson (offe@ludd.luth.se) 1995.
7 * Based on code written by Theo de Raadt (deraadt@fsa.ca).
8 * Resurrected, ported to CAM and generally cleaned up by Sergey Babkin

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

32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 */
38
39#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
3 * Copyright (c) 2000 Sergey A. Babkin
4 * All rights reserved.
5 *
6 * Written by Olof Johansson (offe@ludd.luth.se) 1995.
7 * Based on code written by Theo de Raadt (deraadt@fsa.ca).
8 * Resurrected, ported to CAM and generally cleaned up by Sergey Babkin

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

32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/dev/wds/wd7000.c 166914 2007-02-23 19:34:52Z imp $");
40__FBSDID("$FreeBSD: head/sys/dev/wds/wd7000.c 168752 2007-04-15 08:49:19Z scottl $");
41
42/* All bugs are subject to removal without further notice */
43
44/*
45 * offe 01/07/95
46 *
47 * This version of the driver _still_ doesn't implement scatter/gather for the
48 * WD7000-FASST2. This is due to the fact that my controller doesn't seem to

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

127#endif
128
129#include <sys/types.h>
130#include <sys/param.h>
131#include <sys/systm.h>
132#include <sys/errno.h>
133#include <sys/kernel.h>
134#include <sys/assym.h>
41
42/* All bugs are subject to removal without further notice */
43
44/*
45 * offe 01/07/95
46 *
47 * This version of the driver _still_ doesn't implement scatter/gather for the
48 * WD7000-FASST2. This is due to the fact that my controller doesn't seem to

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

127#endif
128
129#include <sys/types.h>
130#include <sys/param.h>
131#include <sys/systm.h>
132#include <sys/errno.h>
133#include <sys/kernel.h>
134#include <sys/assym.h>
135#include <sys/malloc.h>
135
136#include <sys/bio.h>
137#include <sys/buf.h>
138
139#include <cam/cam.h>
140#include <cam/cam_ccb.h>
141#include <cam/cam_sim.h>
142#include <cam/cam_xpt_sim.h>

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

601 device_printf(dev, "using %d bytes / %d frags for dma buffer\n",
602 BUFSIZ, nfrags);
603
604 devq = cam_simq_alloc(MAXSIMUL);
605 if (devq == NULL)
606 goto bad;
607
608 sim = cam_sim_alloc(wds_action, wds_poll, "wds", (void *) wp,
136
137#include <sys/bio.h>
138#include <sys/buf.h>
139
140#include <cam/cam.h>
141#include <cam/cam_ccb.h>
142#include <cam/cam_sim.h>
143#include <cam/cam_xpt_sim.h>

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

602 device_printf(dev, "using %d bytes / %d frags for dma buffer\n",
603 BUFSIZ, nfrags);
604
605 devq = cam_simq_alloc(MAXSIMUL);
606 if (devq == NULL)
607 goto bad;
608
609 sim = cam_sim_alloc(wds_action, wds_poll, "wds", (void *) wp,
609 wp->unit, 1, 1, devq);
610 wp->unit, &Giant, 1, 1, devq);
610 if (sim == NULL) {
611 cam_simq_free(devq);
612 goto bad;
613 }
614 wp->sim = sim;
615
616 if (xpt_bus_register(sim, 0) != CAM_SUCCESS) {
617 cam_sim_free(sim, /* free_devq */ TRUE);

--- 825 unchanged lines hidden ---
611 if (sim == NULL) {
612 cam_simq_free(devq);
613 goto bad;
614 }
615 wp->sim = sim;
616
617 if (xpt_bus_register(sim, 0) != CAM_SUCCESS) {
618 cam_sim_free(sim, /* free_devq */ TRUE);

--- 825 unchanged lines hidden ---