diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-06-10 02:27:39 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-06-10 02:27:39 +0000 |
commit | fae8fb052d3ef91a0cb89bff1ae6a84112d1496c (patch) | |
tree | 317f5df8cc9d5f26b3afc5413e9f6101774eafd1 /sys/dev/firewire | |
parent | c30bd0e029cde0a777001777351334c0862fd059 (diff) | |
download | FreeBSD-src-fae8fb052d3ef91a0cb89bff1ae6a84112d1496c.zip FreeBSD-src-fae8fb052d3ef91a0cb89bff1ae6a84112d1496c.tar.gz |
Add tx_speed sysctl variable.
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r-- | sys/dev/firewire/if_fwe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index 92b27f3..d029533 100644 --- a/sys/dev/firewire/if_fwe.c +++ b/sys/dev/firewire/if_fwe.c @@ -77,6 +77,7 @@ static void fwe_as_input __P((struct fw_xferq *)); static int fwedebug = 0; static int stream_ch = 1; +static int tx_speed = 2; MALLOC_DEFINE(M_FWE, "if_fwe", "Ethernet over FireWire interface"); SYSCTL_INT(_debug, OID_AUTO, if_fwe_debug, CTLFLAG_RW, &fwedebug, 0, ""); @@ -85,6 +86,8 @@ SYSCTL_NODE(_hw_firewire, OID_AUTO, fwe, CTLFLAG_RD, 0, "Ethernet Emulation Subsystem"); SYSCTL_INT(_hw_firewire_fwe, OID_AUTO, stream_ch, CTLFLAG_RW, &stream_ch, 0, "Stream channel to use"); +SYSCTL_INT(_hw_firewire_fwe, OID_AUTO, tx_speed, CTLFLAG_RW, &tx_speed, 0, + "Transmission Speed"); #ifdef DEVICE_POLLING #define FWE_POLL_REGISTER(func, fwe, ifp) \ @@ -354,7 +357,7 @@ fwe_init(void *arg) xfer = fw_xfer_alloc(M_FWE); if (xfer == NULL) break; - xfer->spd = 2; + xfer->spd = tx_speed; xfer->fc = fwe->fd.fc; xfer->retry_req = fw_asybusy; xfer->sc = (caddr_t)fwe; |