diff options
author | simokawa <simokawa@FreeBSD.org> | 2004-01-08 14:58:09 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2004-01-08 14:58:09 +0000 |
commit | c71c484186b980c3641d396aa5fc5b735da4e63f (patch) | |
tree | 506efe348e0a1a5f0a0e763358e26385053e6d99 /sys/dev/firewire/sbp.c | |
parent | 4a8b6d970d56f429d84dabc87c5c3b3fb9b42dc0 (diff) | |
download | FreeBSD-src-c71c484186b980c3641d396aa5fc5b735da4e63f.zip FreeBSD-src-c71c484186b980c3641d396aa5fc5b735da4e63f.tar.gz |
* firewire
Add tcode_str[] and improve debug message.
* sbp
If max_speed is negative, use the maximum speed which the
ohci chip supports. The default max_speed is -1.
* if_fwe
If tx_speed is negative, use the maximum speed which the
ohci chip supports. The default tx_speed is 2.
Diffstat (limited to 'sys/dev/firewire/sbp.c')
-rw-r--r-- | sys/dev/firewire/sbp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 12f7113..13b9aa1 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -108,7 +108,7 @@ static char *orb_fun_name[] = { static int debug = 0; static int auto_login = 1; -static int max_speed = 2; +static int max_speed = -1; static int sbp_cold = 1; static int ex_login = 1; static int login_delay = 1000; /* msec */ @@ -1879,6 +1879,10 @@ END_DEBUG bzero(sbp, sizeof(struct sbp_softc)); sbp->fd.dev = dev; sbp->fd.fc = device_get_ivars(dev); + + if (max_speed < 0) + max_speed = sbp->fd.fc->speed; + error = bus_dma_tag_create(/*parent*/sbp->fd.fc->dmat, /* XXX shoud be 4 for sane backend? */ /*alignment*/1, |