Lines Matching defs:s1394_hal_t

254 typedef struct s1394_hal_s		s1394_hal_t;
479 s1394_hal_t *on_hal;
542 /* s1394_hal_t */
544 s1394_hal_t *hal_next;
545 s1394_hal_t *hal_prev;
885 s1394_hal_t *sent_on_hal;
938 s1394_hal_t *hal_head;
939 s1394_hal_t *hal_tail;
947 int s1394_request_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
949 int s1394_claim_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
951 int s1394_free_addr_blk(s1394_hal_t *hal, s1394_addr_space_blk_t *blk);
953 int s1394_reserve_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
955 int s1394_init_addr_space(s1394_hal_t *hal);
957 void s1394_destroy_addr_space(s1394_hal_t *hal);
959 void s1394_free_list_insert(s1394_hal_t *hal, s1394_addr_space_blk_t *new_blk);
961 s1394_addr_space_blk_t *s1394_used_tree_search(s1394_hal_t *hal,
964 s1394_addr_space_blk_t *s1394_used_tree_delete(s1394_hal_t *hal,
967 boolean_t s1394_is_posted_write(s1394_hal_t *hal, uint64_t addr);
969 boolean_t s1394_is_physical_addr(s1394_hal_t *hal, uint64_t addr);
971 boolean_t s1394_is_csr_addr(s1394_hal_t *hal, uint64_t addr);
973 boolean_t s1394_is_normal_addr(s1394_hal_t *hal, uint64_t addr);
976 int s1394_alloc_cmd(s1394_hal_t *hal, uint_t flags, cmd1394_cmd_t **cmdp);
978 int s1394_free_cmd(s1394_hal_t *hal, cmd1394_cmd_t **cmdp);
980 int s1394_xfer_asynch_command(s1394_hal_t *hal, cmd1394_cmd_t *cmd, int *err);
982 int s1394_setup_asynch_command(s1394_hal_t *hal, s1394_target_t *target,
985 void s1394_insert_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
987 void s1394_remove_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
989 void s1394_atreq_cmd_complete(s1394_hal_t *hal, cmd1394_cmd_t *req,
992 void s1394_atresp_cmd_complete(s1394_hal_t *hal, cmd1394_cmd_t *resp,
995 int s1394_send_response(s1394_hal_t *hal, cmd1394_cmd_t *resp);
997 int s1394_compare_swap(s1394_hal_t *hal, s1394_target_t *target,
1000 int s1394_split_lock_req(s1394_hal_t *hal, s1394_target_t *target,
1003 void s1394_pending_q_insert(s1394_hal_t *hal, cmd1394_cmd_t *cmd, uint_t flags);
1005 void s1394_resend_pending_cmds(s1394_hal_t *hal);
1008 int s1394_parse_selfid_buffer(s1394_hal_t *hal, void *selfid_buf_addr,
1011 void s1394_sort_selfids(s1394_hal_t *hal);
1013 void s1394_init_topology_tree(s1394_hal_t *hal, boolean_t copied,
1016 int s1394_topology_tree_build(s1394_hal_t *hal);
1018 void s1394_topology_tree_mark_all_unvisited(s1394_hal_t *hal);
1020 void s1394_old_tree_mark_all_unvisited(s1394_hal_t *hal);
1022 void s1394_old_tree_mark_all_unmatched(s1394_hal_t *hal);
1024 void s1394_copy_old_tree(s1394_hal_t *hal);
1026 void s1394_match_tree_nodes(s1394_hal_t *hal);
1028 int s1394_topology_tree_calculate_diameter(s1394_hal_t *hal);
1032 int s1394_get_current_gap_count(s1394_hal_t *hal);
1034 void s1394_speed_map_fill(s1394_hal_t *hal);
1036 uint8_t s1394_speed_map_get(s1394_hal_t *hal, uint32_t from_node,
1039 void s1394_update_speed_map_link_speeds(s1394_hal_t *hal);
1041 int s1394_get_isoch_rsrc_mgr(s1394_hal_t *hal);
1043 void s1394_physical_arreq_setup_all(s1394_hal_t *hal);
1049 s1394_node_t *s1394_topology_tree_get_root_node(s1394_hal_t *hal);
1052 int s1394_setup_CSR_space(s1394_hal_t *hal);
1054 void s1394_CSR_topology_map_update(s1394_hal_t *hal);
1056 void s1394_CSR_topology_map_disable(s1394_hal_t *hal);
1058 int s1394_init_local_config_rom(s1394_hal_t *hal);
1060 void s1394_destroy_local_config_rom(s1394_hal_t *hal);
1062 int s1394_add_config_rom_entry(s1394_hal_t *hal, uint8_t key,
1065 int s1394_remove_config_rom_entry(s1394_hal_t *hal, void **handle,
1071 void s1394_br_thread(s1394_hal_t *hal);
1073 void s1394_free_cfgrom(s1394_hal_t *hal, s1394_node_t *node,
1078 int s1394_read_rest_of_cfgrom(s1394_hal_t *hal, s1394_node_t *node,
1084 boolean_t s1394_valid_cfgrom(s1394_hal_t *hal, s1394_node_t *node);
1086 boolean_t s1394_valid_dir(s1394_hal_t *hal, s1394_node_t *node, uint32_t key,
1092 int s1394_lock_tree(s1394_hal_t *hal);
1094 void s1394_unlock_tree(s1394_hal_t *hal);
1099 int s1394_update_devinfo_tree(s1394_hal_t *hal, s1394_node_t *node);
1101 int s1394_offline_node(s1394_hal_t *hal, s1394_node_t *node);
1103 int s1394_process_topology_tree(s1394_hal_t *hal, int *wait_for_cbs,
1106 int s1394_process_old_tree(s1394_hal_t *hal);
1113 int s1394_fa_claim_addr(s1394_hal_t *hal, s1394_fa_type_t type,
1116 void s1394_fa_free_addr(s1394_hal_t *hal, s1394_fa_type_t type);
1118 void s1394_fa_list_add(s1394_hal_t *hal, s1394_target_t *target,
1121 int s1394_fa_list_remove(s1394_hal_t *hal, s1394_target_t *target,
1124 boolean_t s1394_fa_list_is_empty(s1394_hal_t *hal, s1394_fa_type_t type);
1126 uint_t s1394_fa_list_gen(s1394_hal_t *hal, s1394_fa_type_t type);
1130 void s1394_fa_convert_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1132 void s1394_fa_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1134 void s1394_fa_check_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1137 int s1394_fcp_hal_init(s1394_hal_t *hal);
1160 void s1394_isoch_rsrc_realloc(s1394_hal_t *hal);
1162 void s1394_isoch_rsrc_realloc_notify(s1394_hal_t *hal);
1164 int s1394_channel_alloc(s1394_hal_t *hal, uint32_t channel_mask,
1167 int s1394_channel_free(s1394_hal_t *hal, uint32_t channel_mask,
1170 int s1394_bandwidth_alloc(s1394_hal_t *hal, uint32_t bw_alloc_units,
1173 uint_t s1394_compute_bw_alloc_units(s1394_hal_t *hal, uint_t bandwidth,
1176 int s1394_bandwidth_free(s1394_hal_t *hal, uint32_t bw_alloc_units,
1179 void s1394_isoch_cec_list_insert(s1394_hal_t *hal, s1394_isoch_cec_t *cec);
1181 void s1394_isoch_cec_list_remove(s1394_hal_t *hal, s1394_isoch_cec_t *cec);
1183 void s1394_isoch_cec_member_list_insert(s1394_hal_t *hal,
1186 void s1394_isoch_cec_member_list_remove(s1394_hal_t *hal,
1190 void s1394_cleanup_for_detach(s1394_hal_t *hal, uint_t cleanup_level);
1192 void s1394_hal_shutdown(s1394_hal_t *hal, boolean_t disable_hal);
1194 void s1394_initiate_hal_reset(s1394_hal_t *hal, int reason);
1196 boolean_t s1394_on_br_thread(s1394_hal_t *hal);
1198 void s1394_destroy_br_thread(s1394_hal_t *hal);
1200 void s1394_tickle_bus_reset_thread(s1394_hal_t *hal);
1204 int s1394_HAL_asynch_error(s1394_hal_t *hal, cmd1394_cmd_t *cmd,
1217 int s1394_ioctl(s1394_hal_t *hal, int cmd, intptr_t arg, int mode,
1220 void s1394_check_pwr_mgmt(s1394_hal_t *hal, s1394_target_t *target,
1223 int s1394_kstat_init(s1394_hal_t *hal);
1225 int s1394_kstat_delete(s1394_hal_t *hal);
1229 void s1394_addr_alloc_kstat(s1394_hal_t *hal, uint64_t addr);
1231 void s1394_print_node_info(s1394_hal_t *hal);
1233 s1394_hal_t *s1394_dip_to_hal(dev_info_t *dip);
1235 s1394_target_t *s1394_target_from_dip(s1394_hal_t *hal, dev_info_t *tdip);
1236 s1394_target_t *s1394_target_from_dip_locked(s1394_hal_t *hal,
1239 void s1394_destroy_timers(s1394_hal_t *hal);