diff options
author | simokawa <simokawa@FreeBSD.org> | 2007-06-07 13:20:48 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2007-06-07 13:20:48 +0000 |
commit | 18d7fd2d4371f5d79c2ac1c217e458bfda61f04d (patch) | |
tree | 83fc5cd4b3460eb14dfa30054d61cacad953ae19 /sys/dev/firewire/sbp.c | |
parent | 50b46323332dccf71371a6dcce216db32734e531 (diff) | |
download | FreeBSD-src-18d7fd2d4371f5d79c2ac1c217e458bfda61f04d.zip FreeBSD-src-18d7fd2d4371f5d79c2ac1c217e458bfda61f04d.tar.gz |
Add a tunable hw.firewire.phydma_enable.
This is enabled by default. It should be disabled for
those who are uneasy with peeking/poking from FireWire.
Please note sbp(4) and dcons(4) over FireWire need
this feature.
Diffstat (limited to 'sys/dev/firewire/sbp.c')
-rw-r--r-- | sys/dev/firewire/sbp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 2d14bfd..6dc4de9 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -824,6 +824,10 @@ sbp_post_explore(void *arg) SBP_DEBUG(0) printf("sbp_post_explore (sbp_cold=%d)\n", sbp_cold); END_DEBUG + /* We need physical access */ + if (!firewire_phydma_enable) + return; + if (sbp_cold > 0) sbp_cold --; @@ -1946,6 +1950,9 @@ sbp_attach(device_t dev) "SBP_MAXPHYS(%dKB).\n", DFLTPHYS / 1024, SBP_MAXPHYS / 1024); + if (!firewire_phydma_enable) + device_printf(dev, "Warning, hw.firewire.phydma_enable must be 1 " + "for SBP over FireWire.\n"); SBP_DEBUG(0) printf("sbp_attach (cold=%d)\n", cold); END_DEBUG |