diff options
Diffstat (limited to 'drivers/ieee1394/ieee1394_core.c')
-rw-r--r-- | drivers/ieee1394/ieee1394_core.c | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c index 629070b83a33..b248d89de8b4 100644 --- a/drivers/ieee1394/ieee1394_core.c +++ b/drivers/ieee1394/ieee1394_core.c | |||
@@ -52,7 +52,7 @@ | |||
52 | /* | 52 | /* |
53 | * Disable the nodemgr detection and config rom reading functionality. | 53 | * Disable the nodemgr detection and config rom reading functionality. |
54 | */ | 54 | */ |
55 | static int disable_nodemgr = 0; | 55 | static int disable_nodemgr; |
56 | module_param(disable_nodemgr, int, 0444); | 56 | module_param(disable_nodemgr, int, 0444); |
57 | MODULE_PARM_DESC(disable_nodemgr, "Disable nodemgr functionality."); | 57 | MODULE_PARM_DESC(disable_nodemgr, "Disable nodemgr functionality."); |
58 | 58 | ||
@@ -520,6 +520,9 @@ int hpsb_send_packet(struct hpsb_packet *packet) | |||
520 | 520 | ||
521 | if (!packet->no_waiter || packet->expect_response) { | 521 | if (!packet->no_waiter || packet->expect_response) { |
522 | atomic_inc(&packet->refcnt); | 522 | atomic_inc(&packet->refcnt); |
523 | /* Set the initial "sendtime" to 10 seconds from now, to | ||
524 | prevent premature expiry. If a packet takes more than | ||
525 | 10 seconds to hit the wire, we have bigger problems :) */ | ||
523 | packet->sendtime = jiffies + 10 * HZ; | 526 | packet->sendtime = jiffies + 10 * HZ; |
524 | skb_queue_tail(&host->pending_packet_queue, packet->skb); | 527 | skb_queue_tail(&host->pending_packet_queue, packet->skb); |
525 | } | 528 | } |
@@ -1223,9 +1226,7 @@ EXPORT_SYMBOL(hpsb_protocol_class); | |||
1223 | EXPORT_SYMBOL(hpsb_set_packet_complete_task); | 1226 | EXPORT_SYMBOL(hpsb_set_packet_complete_task); |
1224 | EXPORT_SYMBOL(hpsb_alloc_packet); | 1227 | EXPORT_SYMBOL(hpsb_alloc_packet); |
1225 | EXPORT_SYMBOL(hpsb_free_packet); | 1228 | EXPORT_SYMBOL(hpsb_free_packet); |
1226 | EXPORT_SYMBOL(hpsb_send_phy_config); | ||
1227 | EXPORT_SYMBOL(hpsb_send_packet); | 1229 | EXPORT_SYMBOL(hpsb_send_packet); |
1228 | EXPORT_SYMBOL(hpsb_send_packet_and_wait); | ||
1229 | EXPORT_SYMBOL(hpsb_reset_bus); | 1230 | EXPORT_SYMBOL(hpsb_reset_bus); |
1230 | EXPORT_SYMBOL(hpsb_bus_reset); | 1231 | EXPORT_SYMBOL(hpsb_bus_reset); |
1231 | EXPORT_SYMBOL(hpsb_selfid_received); | 1232 | EXPORT_SYMBOL(hpsb_selfid_received); |
@@ -1233,6 +1234,10 @@ EXPORT_SYMBOL(hpsb_selfid_complete); | |||
1233 | EXPORT_SYMBOL(hpsb_packet_sent); | 1234 | EXPORT_SYMBOL(hpsb_packet_sent); |
1234 | EXPORT_SYMBOL(hpsb_packet_received); | 1235 | EXPORT_SYMBOL(hpsb_packet_received); |
1235 | EXPORT_SYMBOL_GPL(hpsb_disable_irm); | 1236 | EXPORT_SYMBOL_GPL(hpsb_disable_irm); |
1237 | #ifdef CONFIG_IEEE1394_EXPORT_FULL_API | ||
1238 | EXPORT_SYMBOL(hpsb_send_phy_config); | ||
1239 | EXPORT_SYMBOL(hpsb_send_packet_and_wait); | ||
1240 | #endif | ||
1236 | 1241 | ||
1237 | /** ieee1394_transactions.c **/ | 1242 | /** ieee1394_transactions.c **/ |
1238 | EXPORT_SYMBOL(hpsb_get_tlabel); | 1243 | EXPORT_SYMBOL(hpsb_get_tlabel); |
@@ -1262,9 +1267,11 @@ EXPORT_SYMBOL(hpsb_destroy_hostinfo); | |||
1262 | EXPORT_SYMBOL(hpsb_set_hostinfo_key); | 1267 | EXPORT_SYMBOL(hpsb_set_hostinfo_key); |
1263 | EXPORT_SYMBOL(hpsb_get_hostinfo_bykey); | 1268 | EXPORT_SYMBOL(hpsb_get_hostinfo_bykey); |
1264 | EXPORT_SYMBOL(hpsb_set_hostinfo); | 1269 | EXPORT_SYMBOL(hpsb_set_hostinfo); |
1270 | EXPORT_SYMBOL(highlevel_host_reset); | ||
1271 | #ifdef CONFIG_IEEE1394_EXPORT_FULL_API | ||
1265 | EXPORT_SYMBOL(highlevel_add_host); | 1272 | EXPORT_SYMBOL(highlevel_add_host); |
1266 | EXPORT_SYMBOL(highlevel_remove_host); | 1273 | EXPORT_SYMBOL(highlevel_remove_host); |
1267 | EXPORT_SYMBOL(highlevel_host_reset); | 1274 | #endif |
1268 | 1275 | ||
1269 | /** nodemgr.c **/ | 1276 | /** nodemgr.c **/ |
1270 | EXPORT_SYMBOL(hpsb_node_fill_packet); | 1277 | EXPORT_SYMBOL(hpsb_node_fill_packet); |
@@ -1272,7 +1279,9 @@ EXPORT_SYMBOL(hpsb_node_write); | |||
1272 | EXPORT_SYMBOL(hpsb_register_protocol); | 1279 | EXPORT_SYMBOL(hpsb_register_protocol); |
1273 | EXPORT_SYMBOL(hpsb_unregister_protocol); | 1280 | EXPORT_SYMBOL(hpsb_unregister_protocol); |
1274 | EXPORT_SYMBOL(ieee1394_bus_type); | 1281 | EXPORT_SYMBOL(ieee1394_bus_type); |
1282 | #ifdef CONFIG_IEEE1394_EXPORT_FULL_API | ||
1275 | EXPORT_SYMBOL(nodemgr_for_each_host); | 1283 | EXPORT_SYMBOL(nodemgr_for_each_host); |
1284 | #endif | ||
1276 | 1285 | ||
1277 | /** csr.c **/ | 1286 | /** csr.c **/ |
1278 | EXPORT_SYMBOL(hpsb_update_config_rom); | 1287 | EXPORT_SYMBOL(hpsb_update_config_rom); |
@@ -1309,19 +1318,21 @@ EXPORT_SYMBOL(hpsb_iso_wake); | |||
1309 | EXPORT_SYMBOL(hpsb_iso_recv_flush); | 1318 | EXPORT_SYMBOL(hpsb_iso_recv_flush); |
1310 | 1319 | ||
1311 | /** csr1212.c **/ | 1320 | /** csr1212.c **/ |
1312 | EXPORT_SYMBOL(csr1212_create_csr); | ||
1313 | EXPORT_SYMBOL(csr1212_init_local_csr); | ||
1314 | EXPORT_SYMBOL(csr1212_new_immediate); | ||
1315 | EXPORT_SYMBOL(csr1212_new_directory); | 1321 | EXPORT_SYMBOL(csr1212_new_directory); |
1316 | EXPORT_SYMBOL(csr1212_associate_keyval); | ||
1317 | EXPORT_SYMBOL(csr1212_attach_keyval_to_directory); | 1322 | EXPORT_SYMBOL(csr1212_attach_keyval_to_directory); |
1318 | EXPORT_SYMBOL(csr1212_new_string_descriptor_leaf); | ||
1319 | EXPORT_SYMBOL(csr1212_detach_keyval_from_directory); | 1323 | EXPORT_SYMBOL(csr1212_detach_keyval_from_directory); |
1320 | EXPORT_SYMBOL(csr1212_release_keyval); | 1324 | EXPORT_SYMBOL(csr1212_release_keyval); |
1321 | EXPORT_SYMBOL(csr1212_destroy_csr); | ||
1322 | EXPORT_SYMBOL(csr1212_read); | 1325 | EXPORT_SYMBOL(csr1212_read); |
1323 | EXPORT_SYMBOL(csr1212_generate_csr_image); | ||
1324 | EXPORT_SYMBOL(csr1212_parse_keyval); | 1326 | EXPORT_SYMBOL(csr1212_parse_keyval); |
1325 | EXPORT_SYMBOL(csr1212_parse_csr); | ||
1326 | EXPORT_SYMBOL(_csr1212_read_keyval); | 1327 | EXPORT_SYMBOL(_csr1212_read_keyval); |
1327 | EXPORT_SYMBOL(_csr1212_destroy_keyval); | 1328 | EXPORT_SYMBOL(_csr1212_destroy_keyval); |
1329 | #ifdef CONFIG_IEEE1394_EXPORT_FULL_API | ||
1330 | EXPORT_SYMBOL(csr1212_create_csr); | ||
1331 | EXPORT_SYMBOL(csr1212_init_local_csr); | ||
1332 | EXPORT_SYMBOL(csr1212_new_immediate); | ||
1333 | EXPORT_SYMBOL(csr1212_associate_keyval); | ||
1334 | EXPORT_SYMBOL(csr1212_new_string_descriptor_leaf); | ||
1335 | EXPORT_SYMBOL(csr1212_destroy_csr); | ||
1336 | EXPORT_SYMBOL(csr1212_generate_csr_image); | ||
1337 | EXPORT_SYMBOL(csr1212_parse_csr); | ||
1338 | #endif | ||