Deleted Added
full compact
sbp.c (124169) sbp.c (124251)
1/*
2 * Copyright (c) 2003 Hidetoshi Shimokawa
3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
1/*
2 * Copyright (c) 2003 Hidetoshi Shimokawa
3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/dev/firewire/sbp.c 124169 2004-01-06 14:30:47Z simokawa $
34 * $FreeBSD: head/sys/dev/firewire/sbp.c 124251 2004-01-08 14:58:09Z simokawa $
35 *
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/module.h>
41#include <sys/bus.h>
42#include <sys/sysctl.h>

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

103#define SBP_INITIATOR 7
104
105static char *orb_fun_name[] = {
106 ORB_FUN_NAMES
107};
108
109static int debug = 0;
110static int auto_login = 1;
35 *
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/module.h>
41#include <sys/bus.h>
42#include <sys/sysctl.h>

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

103#define SBP_INITIATOR 7
104
105static char *orb_fun_name[] = {
106 ORB_FUN_NAMES
107};
108
109static int debug = 0;
110static int auto_login = 1;
111static int max_speed = 2;
111static int max_speed = -1;
112static int sbp_cold = 1;
113static int ex_login = 1;
114static int login_delay = 1000; /* msec */
115static int scan_delay = 500; /* msec */
116
117SYSCTL_DECL(_hw_firewire);
118SYSCTL_NODE(_hw_firewire, OID_AUTO, sbp, CTLFLAG_RD, 0, "SBP-II Subsystem");
119SYSCTL_INT(_debug, OID_AUTO, sbp_debug, CTLFLAG_RW, &debug, 0,

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

1874END_DEBUG
1875
1876 if (cold)
1877 sbp_cold ++;
1878 sbp = ((struct sbp_softc *)device_get_softc(dev));
1879 bzero(sbp, sizeof(struct sbp_softc));
1880 sbp->fd.dev = dev;
1881 sbp->fd.fc = device_get_ivars(dev);
112static int sbp_cold = 1;
113static int ex_login = 1;
114static int login_delay = 1000; /* msec */
115static int scan_delay = 500; /* msec */
116
117SYSCTL_DECL(_hw_firewire);
118SYSCTL_NODE(_hw_firewire, OID_AUTO, sbp, CTLFLAG_RD, 0, "SBP-II Subsystem");
119SYSCTL_INT(_debug, OID_AUTO, sbp_debug, CTLFLAG_RW, &debug, 0,

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

1874END_DEBUG
1875
1876 if (cold)
1877 sbp_cold ++;
1878 sbp = ((struct sbp_softc *)device_get_softc(dev));
1879 bzero(sbp, sizeof(struct sbp_softc));
1880 sbp->fd.dev = dev;
1881 sbp->fd.fc = device_get_ivars(dev);
1882
1883 if (max_speed < 0)
1884 max_speed = sbp->fd.fc->speed;
1885
1882 error = bus_dma_tag_create(/*parent*/sbp->fd.fc->dmat,
1883 /* XXX shoud be 4 for sane backend? */
1884 /*alignment*/1,
1885 /*boundary*/0,
1886 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
1887 /*highaddr*/BUS_SPACE_MAXADDR,
1888 /*filter*/NULL, /*filterarg*/NULL,
1889 /*maxsize*/0x100000, /*nsegments*/SBP_IND_MAX,

--- 911 unchanged lines hidden ---
1886 error = bus_dma_tag_create(/*parent*/sbp->fd.fc->dmat,
1887 /* XXX shoud be 4 for sane backend? */
1888 /*alignment*/1,
1889 /*boundary*/0,
1890 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
1891 /*highaddr*/BUS_SPACE_MAXADDR,
1892 /*filter*/NULL, /*filterarg*/NULL,
1893 /*maxsize*/0x100000, /*nsegments*/SBP_IND_MAX,

--- 911 unchanged lines hidden ---