/titanic_44/usr/src/uts/common/io/1394/ |
H A D | s1394_bus_reset.c | 54 static void s1394_hal_stack_push(s1394_hal_t *hal, void *o); 56 static void *s1394_hal_stack_pop(s1394_hal_t *hal); 58 static void s1394_hal_queue_insert(s1394_hal_t *hal, void *o); 60 static void *s1394_hal_queue_remove(s1394_hal_t *hal); 62 static void s1394_node_number_list_add(s1394_hal_t *hal, int node_num); 64 static void s1394_speed_map_fill_speed_N(s1394_hal_t *hal, int min_spd); 66 static void s1394_speed_map_initialize(s1394_hal_t *hal); 87 s1394_parse_selfid_buffer(s1394_hal_t *hal, void *selfid_buf_addr, in s1394_parse_selfid_buffer() argument 100 ASSERT(MUTEX_HELD(&hal->topology_tree_mutex)); in s1394_parse_selfid_buffer() 110 s1394_initiate_hal_reset(hal, CRITICAL); in s1394_parse_selfid_buffer() [all …]
|
H A D | s1394_misc.c | 52 extern void nx1394_undefine_events(s1394_hal_t *hal); 53 static void s1394_cleanup_node_cfgrom(s1394_hal_t *hal); 62 s1394_cleanup_for_detach(s1394_hal_t *hal, uint_t cleanup_level) in s1394_cleanup_for_detach() argument 72 if ((s1394_statep->hal_head == hal) && in s1394_cleanup_for_detach() 73 (s1394_statep->hal_tail == hal)) { in s1394_cleanup_for_detach() 77 if (hal->hal_prev) in s1394_cleanup_for_detach() 78 hal->hal_prev->hal_next = hal->hal_next; in s1394_cleanup_for_detach() 79 if (hal->hal_next) in s1394_cleanup_for_detach() 80 hal->hal_next->hal_prev = hal->hal_prev; in s1394_cleanup_for_detach() 81 if (s1394_statep->hal_head == hal) in s1394_cleanup_for_detach() [all …]
|
H A D | h1394.c | 58 extern int nx1394_define_events(s1394_hal_t *hal); 59 extern void nx1394_undefine_events(s1394_hal_t *hal); 128 s1394_hal_t *hal; in h1394_attach() local 139 hal = (s1394_hal_t *)(*sl_private); in h1394_attach() 141 if (hal->halinfo.phy == H1394_PHY_1394A) in h1394_attach() 142 (void) HAL_CALL(hal).set_contender_bit( in h1394_attach() 143 hal->halinfo.hal_private); in h1394_attach() 157 hal = kmem_zalloc(sizeof (s1394_hal_t), KM_SLEEP); in h1394_attach() 160 hal->hal_state = S1394_HAL_INIT; in h1394_attach() 163 hal->halinfo = *halinfo; in h1394_attach() [all …]
|
H A D | s1394_dev_disc.c | 100 static void s1394_wait_for_events(s1394_hal_t *hal, int firsttime); 102 static int s1394_wait_for_cfgrom_callbacks(s1394_hal_t *hal, uint_t wait_gen, 103 hcmd_ret_t(*handle_cmd_fn)(s1394_hal_t *hal, cmd1394_cmd_t *cmd)); 105 static void s1394_flush_cmplq(s1394_hal_t *hal); 107 static void s1394_br_thread_exit(s1394_hal_t *hal); 109 static void s1394_target_bus_reset_notifies(s1394_hal_t *hal, 112 static int s1394_alloc_cfgrom(s1394_hal_t *hal, s1394_node_t *node, 115 static int s1394_cfgrom_scan_phase1(s1394_hal_t *hal); 117 static hcmd_ret_t s1394_br_thread_handle_cmd_phase1(s1394_hal_t *hal, 120 static int s1394_cfgrom_scan_phase2(s1394_hal_t *hal); [all …]
|
H A D | s1394_csr.c | 81 static void s1394_common_CSR_routine(s1394_hal_t *hal, cmd1394_cmd_t *req); 83 static int s1394_init_config_rom_structures(s1394_hal_t *hal); 85 static int s1394_destroy_config_rom_structures(s1394_hal_t *hal); 92 s1394_setup_CSR_space(s1394_hal_t *hal) in s1394_setup_CSR_space() argument 125 addr.aa_arg = hal; in s1394_setup_CSR_space() 126 result = s1394_claim_addr_blk(hal, &addr); in s1394_setup_CSR_space() 149 addr.aa_arg = hal; in s1394_setup_CSR_space() 150 result = s1394_claim_addr_blk(hal, &addr); in s1394_setup_CSR_space() 173 addr.aa_arg = hal; in s1394_setup_CSR_space() 174 result = s1394_claim_addr_blk(hal, &addr); in s1394_setup_CSR_space() [all …]
|
H A D | s1394_cmp.c | 46 static void s1394_cmp_init(s1394_hal_t *hal); 47 static void s1394_cmp_fini(s1394_hal_t *hal); 52 static void s1394_cmp_notify_reg_change(s1394_hal_t *hal, t1394_cmp_reg_t reg, 90 s1394_hal_t *hal = target->on_hal; in s1394_cmp_register() local 95 rw_enter(&hal->target_list_rwlock, RW_WRITER); in s1394_cmp_register() 99 if (s1394_fa_list_is_empty(hal, S1394_FA_TYPE_CMP)) { in s1394_cmp_register() 100 if (s1394_fa_claim_addr(hal, S1394_FA_TYPE_CMP_OMPR, in s1394_cmp_register() 102 rw_exit(&hal->target_list_rwlock); in s1394_cmp_register() 106 if (s1394_fa_claim_addr(hal, S1394_FA_TYPE_CMP_IMPR, in s1394_cmp_register() 108 s1394_fa_free_addr(hal, S1394_FA_TYPE_CMP_OMPR); in s1394_cmp_register() [all …]
|
H A D | s1394_asynch.c | 51 static cmd1394_cmd_t *s1394_pending_q_remove(s1394_hal_t *hal); 53 static boolean_t s1394_process_pending_q(s1394_hal_t *hal); 55 static boolean_t s1394_pending_q_helper(s1394_hal_t *hal, cmd1394_cmd_t *cmd); 68 s1394_alloc_cmd(s1394_hal_t *hal, uint_t flags, cmd1394_cmd_t **cmdp) in s1394_alloc_cmd() argument 100 *cmdp = kmem_cache_alloc(hal->hal_kmem_cachep, alloc_sleep); in s1394_alloc_cmd() 107 sizeof (s1394_cmd_priv_t) + hal->halinfo.hal_overhead; in s1394_alloc_cmd() 131 hal->hal_kstats->cmd_alloc++; in s1394_alloc_cmd() 143 s1394_free_cmd(s1394_hal_t *hal, cmd1394_cmd_t **cmdp) in s1394_free_cmd() argument 164 kmem_cache_free(hal->hal_kmem_cachep, *cmdp); in s1394_free_cmd() 170 hal->hal_kstats->cmd_free++; in s1394_free_cmd() [all …]
|
H A D | s1394_addr.c | 48 static s1394_addr_space_blk_t *s1394_free_list_search(s1394_hal_t *hal, 51 static s1394_addr_space_blk_t *s1394_free_list_find(s1394_hal_t *hal, 54 static s1394_addr_space_blk_t *s1394_free_list_delete(s1394_hal_t *hal, 57 static void s1394_used_tree_insert(s1394_hal_t *hal, s1394_addr_space_blk_t *x); 87 s1394_request_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp) in s1394_request_addr_blk() argument 96 ASSERT(hal != NULL); in s1394_request_addr_blk() 99 mutex_enter(&hal->addr_space_free_mutex); in s1394_request_addr_blk() 101 curr_blk = s1394_free_list_find(hal, addr_allocp->aa_type, in s1394_request_addr_blk() 105 mutex_exit(&hal->addr_space_free_mutex); in s1394_request_addr_blk() 119 curr_blk = s1394_free_list_delete(hal, curr_blk); in s1394_request_addr_blk() [all …]
|
H A D | s1394_isoch.c | 54 s1394_isoch_rsrc_realloc(s1394_hal_t *hal) in s1394_isoch_rsrc_realloc() argument 73 generation = hal->generation_count; in s1394_isoch_rsrc_realloc() 76 mutex_enter(&hal->isoch_cec_list_mutex); in s1394_isoch_rsrc_realloc() 78 cec_curr = hal->isoch_cec_list_head; in s1394_isoch_rsrc_realloc() 89 bw_alloc_units = s1394_compute_bw_alloc_units(hal, in s1394_isoch_rsrc_realloc() 93 if (generation != hal->generation_count) { in s1394_isoch_rsrc_realloc() 107 mutex_exit(&hal->isoch_cec_list_mutex); in s1394_isoch_rsrc_realloc() 110 ret = s1394_bandwidth_alloc(hal, bw_alloc_units, in s1394_isoch_rsrc_realloc() 114 mutex_enter(&hal->isoch_cec_list_mutex); in s1394_isoch_rsrc_realloc() 144 mutex_exit(&hal->isoch_cec_list_mutex); in s1394_isoch_rsrc_realloc() [all …]
|
H A D | s1394_fcp.c | 54 static void s1394_fcp_recv_write_unclaimed(s1394_hal_t *hal, 82 s1394_fcp_hal_init(s1394_hal_t *hal) in s1394_fcp_hal_init() argument 88 if ((ddi_prop_exists(DDI_DEV_T_ANY, hal->halinfo.dip, DDI_PROP_DONTPASS, in s1394_fcp_hal_init() 91 ret = s1394_fa_claim_addr(hal, S1394_FA_TYPE_FCP_CTL, in s1394_fcp_hal_init() 94 ret = s1394_fa_claim_addr(hal, S1394_FA_TYPE_FCP_TGT, in s1394_fcp_hal_init() 97 s1394_fa_free_addr(hal, S1394_FA_TYPE_FCP_CTL); in s1394_fcp_hal_init() 137 s1394_hal_t *hal = target->on_hal; in s1394_fcp_register_common() local 140 rw_enter(&hal->target_list_rwlock, RW_WRITER); in s1394_fcp_register_common() 142 if (s1394_fa_list_is_empty(hal, type)) { in s1394_fcp_register_common() 143 if (s1394_fa_claim_addr(hal, type, descr) != DDI_SUCCESS) { in s1394_fcp_register_common() [all …]
|
H A D | s1394_hotplug.c | 54 static void s1394_send_remove_event(s1394_hal_t *hal, dev_info_t *dip, 56 static void s1394_send_insert_event(s1394_hal_t *hal, dev_info_t *dip, 58 static dev_info_t *s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node, 60 static void s1394_update_unit_dir_location(s1394_hal_t *hal, dev_info_t *tdip, 69 s1394_send_remove_event(s1394_hal_t *hal, dev_info_t *dip, in s1394_send_remove_event() argument 82 if (ndi_event_retrieve_cookie(hal->hal_ndi_event_hdl, dip, in s1394_send_remove_event() 85 (void) ndi_event_run_callbacks(hal->hal_ndi_event_hdl, dip, in s1394_send_remove_event() 98 s1394_send_insert_event(s1394_hal_t *hal, dev_info_t *dip, in s1394_send_insert_event() argument 111 if (ndi_event_retrieve_cookie(hal->hal_ndi_event_hdl, dip, in s1394_send_insert_event() 114 (void) ndi_event_run_callbacks(hal->hal_ndi_event_hdl, dip, in s1394_send_insert_event() [all …]
|
H A D | s1394_fa.c | 54 s1394_fa_claim_addr(s1394_hal_t *hal, s1394_fa_type_t type, in s1394_fa_claim_addr() argument 58 s1394_fa_hal_t *falp = &hal->hal_fa[type]; in s1394_fa_claim_addr() 78 addr.aa_arg = hal; in s1394_fa_claim_addr() 80 ret = s1394_claim_addr_blk(hal, &addr); in s1394_fa_claim_addr() 97 s1394_fa_free_addr(s1394_hal_t *hal, s1394_fa_type_t type) in s1394_fa_free_addr() argument 99 s1394_fa_hal_t *falp = &hal->hal_fa[type]; in s1394_fa_free_addr() 106 ret = s1394_free_addr_blk(hal, falp->fal_addr_blk); in s1394_fa_free_addr() 123 s1394_fa_list_add(s1394_hal_t *hal, s1394_target_t *target, in s1394_fa_list_add() argument 126 s1394_fa_hal_t *fal = &hal->hal_fa[type]; in s1394_fa_list_add() 144 s1394_fa_list_remove(s1394_hal_t *hal, s1394_target_t *target, in s1394_fa_list_remove() argument [all …]
|
H A D | t1394.c | 75 s1394_hal_t *hal; in t1394_attach() local 97 hal = s1394_dip_to_hal(ddi_get_parent(dip)); in t1394_attach() 98 if (hal == NULL) { in t1394_attach() 106 ASSERT(MUTEX_NOT_HELD(&hal->topology_tree_mutex)); in t1394_attach() 114 mutex_enter(&hal->topology_tree_mutex); in t1394_attach() 120 target->on_hal = hal; in t1394_attach() 135 mutex_exit(&hal->topology_tree_mutex); in t1394_attach() 191 mutex_exit(&hal->topology_tree_mutex); in t1394_attach() 294 s1394_hal_t *hal; in t1394_alloc_cmd() local 306 hal = target->on_hal; in t1394_alloc_cmd() [all …]
|
H A D | nx1394.c | 308 s1394_hal_t *hal; in nx1394_dma_allochdl() local 323 hal = s1394_dip_to_hal(ddi_get_parent(rdip)); in nx1394_dma_allochdl() 324 ASSERT(hal); in nx1394_dma_allochdl() 325 hal_attr = &hal->halinfo.dma_attr; in nx1394_dma_allochdl() 345 s1394_hal_t *hal; in nx1394_get_event_cookie() local 350 hal = s1394_dip_to_hal(dip); in nx1394_get_event_cookie() 351 ASSERT(hal); in nx1394_get_event_cookie() 353 ret = ndi_event_retrieve_cookie(hal->hal_ndi_event_hdl, in nx1394_get_event_cookie() 379 s1394_hal_t *hal; in nx1394_add_eventcall() local 384 hal = s1394_dip_to_hal(dip); in nx1394_add_eventcall() [all …]
|
/titanic_44/usr/src/cmd/hal/tools/ |
H A D | Makefile | 28 HAL_PROG = hal-device hal-find-by-capability hal-find-by-property \ 29 hal-get-property hal-set-property lshal 31 HAL_LIB = hal-is-caller-privileged 33 SCRIPT_BIN = hal-fdi-validate 35 SCRIPT_LIB = hal-system-lcd-set-brightness hal-system-lcd-get-brightness \ 36 hal-system-power-hibernate hal-system-power-suspend \ 37 hal-system-power-reboot hal-system-power-shutdown hal-functions 39 STORAGE_METHOD_PROG = hal-storage-closetray hal-storage-eject \ 40 hal-storage-mount hal-storage-unmount \ 41 hal-storage-zpool-export hal-storage-zpool-import [all …]
|
H A D | hal-system-power-suspend.sh | 8 . ./hal-functions 9 hal_check_priv hal-power-suspend
|
/titanic_44/usr/src/pkg/manifests/ |
H A D | service-hal.mf | 27 set name=pkg.fmri value=pkg:/service/hal@$(PKGVERS) 37 dir path=etc/hal variant.opensolaris.zone=global 38 dir path=etc/hal/fdi variant.opensolaris.zone=global 39 dir path=etc/hal/fdi/information variant.opensolaris.zone=global 40 dir path=etc/hal/fdi/information/10freedesktop variant.opensolaris.zone=global 41 dir path=etc/hal/fdi/information/20thirdparty variant.opensolaris.zone=global 42 dir path=etc/hal/fdi/information/30user variant.opensolaris.zone=global 43 dir path=etc/hal/fdi/policy variant.opensolaris.zone=global 44 dir path=etc/hal/fdi/policy/10osvendor variant.opensolaris.zone=global 45 dir path=etc/hal/fdi/policy/20thirdparty variant.opensolaris.zone=global [all …]
|
/titanic_44/usr/src/uts/common/sys/1394/ |
H A D | s1394.h | 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); [all …]
|
/titanic_44/usr/src/cmd/hal/fdi/ |
H A D | README | 2 This file describe the layout of device information files in the hal 5 integrate with hal. 21 conditions such as telling hal to ignore a device and all children 24 probing routines in hal (using info.callouts.preprobing) [1]. 28 Subdirs are installed in $(sysconfdir)/hal/preprobe (e.g. /etc/hal/preprobe) 31 |-- 10osvendor # From the hal tarball and/or supplied by the os vendor 32 | # -> installs into /usr/share/hal/fdi/preprobe/10osvendor 34 | # -> installs into /usr/share/hal/fdi/preprobe/20thirdparty 36 # -> installs into /etc/hal/fdi/preprobe/ 38 [1] : http://lists.freedesktop.org/archives/hal/2004-August/000858.html [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/s1394/ |
H A D | s1394.c | 34 static int print_node_info(s1394_hal_t *hal); 44 s1394_hal_t hal; in speedmap() local 48 if (mdb_vread(&hal, sizeof (s1394_hal_t), addr) == -1) { in speedmap() 53 ret = print_node_info(&hal); in speedmap() 88 s1394_hal_t hal; in speedmap_walk_step() local 94 if (mdb_vread(&hal, sizeof (s1394_hal_t), addr) == -1) { in speedmap_walk_step() 99 wsp->walk_addr = (uintptr_t)hal.hal_next; in speedmap_walk_step() 100 return (wsp->walk_callback(addr, &hal, wsp->walk_cbdata)); in speedmap_walk_step() 136 print_node_info(s1394_hal_t *hal) in print_node_info() argument 144 num_nodes = hal->number_of_nodes; in print_node_info() [all …]
|
/titanic_44/usr/src/cmd/hal/tools/sunos/ |
H A D | Makefile | 28 HAL_PROGS = hal-system-lcd-set-brightness-sunos \ 29 hal-system-lcd-get-brightness-sunos 31 HAL_SCRIPTS = hal-system-power-reboot-sunos hal-system-power-suspend-sunos \ 32 hal-system-power-hibernate-sunos hal-system-power-shutdown-sunos 39 include ../../Makefile.hal 44 CPPFLAGS += -I$(ROOT)/usr/include/hal
|
/titanic_44/usr/src/cmd/hal/ |
H A D | Makefile.hal | 30 ROOTLIB_HAL = $(ROOTLIB)/hal 31 ROOTLIB_HAL_SCRIPTS = $(ROOTLIB)/hal 33 ROOT_HAL_FDI = $(ROOT)/etc/hal/fdi 47 -DPACKAGE_STRING=\""hal $(HAL_VERSION)"\" \
|
/titanic_44/usr/src/lib/hal/libhal-storage/common/ |
H A D | hal-storage.pc.in | 13 Name: hal-storage 14 Description: hal library for storage devices and volumes 16 Requires: dbus-1 hal 18 Cflags: -DDBUS_API_SUBJECT_TO_CHANGE -I${includedir}/hal
|
/titanic_44/usr/src/cmd/hal/hald/solaris/ |
H A D | Makefile | 32 MANIFEST = hal.xml 33 SVCMETHOD = svc-hal 36 include ../../Makefile.hal 40 $(ROOTLIBSVCMETHOD)/svc-hal:= FILEMODE = 555
|
/titanic_44/usr/src/cmd/rmvolmgr/ |
H A D | Makefile | 34 include ../hal/Makefile.hal 42 CPPFLAGS += -I$(ROOT)/usr/include/hal
|