/titanic_41/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo.c | 86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path) in devinfo_set_default_properties() argument 100 devfs_path, in devinfo_set_default_properties() 111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); in devinfo_set_default_properties() 153 char *devfs_path; in devinfo_add_node() local 158 devfs_path = di_devfs_path (node); in devinfo_add_node() 165 d = handler->add (parent, node, devfs_path, device_type); in devinfo_add_node() 168 di_devfs_path_free(devfs_path); in devinfo_add_node() 175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, in… in devinfo_hotplug_enqueue() argument 183 strlcpy (hotplug_event->un.devfs.devfs_path, devfs_path, in devinfo_hotplug_enqueue() 184 sizeof (hotplug_event->un.devfs.devfs_path)); in devinfo_hotplug_enqueue() [all …]
|
H A D | devinfo_storage.c | 58 HalDevice *devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 59 static HalDevice *devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path); 60 static HalDevice *devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path); 61 static HalDevice *devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 62 HalDevice *devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 63 static HalDevice *devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 64 HalDevice *devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_typ… 65 static HalDevice *devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 66 HalDevice *devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_typ… 68 static HalDevice *devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *devic… [all …]
|
H A D | devinfo_misc.c | 73 devinfo_computer_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_computer_add() argument 78 if (strcmp (devfs_path, "/") != 0) { in devinfo_computer_add() 88 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); in devinfo_computer_add() 109 devinfo_add_enqueue (d, devfs_path, &devinfo_computer_handler); in devinfo_computer_add() 127 devinfo_keyboard_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_keyboard_add() argument 139 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_keyboard_add() 158 devinfo_add_enqueue(d, devfs_path, &devinfo_keyboard_handler); in devinfo_keyboard_add() 164 devinfo_mouse_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_mouse_add() argument 176 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_mouse_add() 193 devinfo_add_enqueue(d, devfs_path, &devinfo_mouse_handler); in devinfo_mouse_add() [all …]
|
H A D | sysevent.c | 325 sysevent_dev_add(gchar *devfs_path, gchar *name) in sysevent_dev_add() argument 330 HAL_INFO (("dev_add: %s %s", name, devfs_path)); in sysevent_dev_add() 332 parent = hal_util_find_closest_ancestor (devfs_path, &parent_devfs_path, &hotplug_devfs_path); in sysevent_dev_add() 349 sysevent_dev_remove(gchar *devfs_path, gchar *name) in sysevent_dev_remove() argument 351 HAL_INFO (("dev_remove: %s %s", name, devfs_path)); in sysevent_dev_remove() 353 devinfo_remove_branch (devfs_path, NULL); in sysevent_dev_remove() 358 sysevent_dev_branch(gchar *devfs_path) in sysevent_dev_branch() argument 360 HAL_INFO (("branch_remove: %s", devfs_path)); in sysevent_dev_branch() 362 devinfo_remove_branch (devfs_path, NULL); in sysevent_dev_branch() 367 sysevent_lofi_add(gchar *devfs_path, gchar *name) in sysevent_lofi_add() argument [all …]
|
H A D | devinfo_ieee1394.c | 36 HalDevice *devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_t… 37 static HalDevice *devinfo_scsa1394_add(HalDevice *d, di_node_t node, gchar *devfs_path); 49 devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_ieee1394_add() argument 69 d = devinfo_scsa1394_add (parent, node, devfs_path); in devinfo_ieee1394_add() 76 devinfo_scsa1394_add(HalDevice *parent, di_node_t node, gchar *devfs_path) in devinfo_scsa1394_add() argument 82 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_scsa1394_add() 86 devinfo_add_enqueue (d, devfs_path, &devinfo_ieee1394_handler); in devinfo_scsa1394_add()
|
H A D | devinfo.h | 25 HalDevice *(*add) (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 28 void (*remove) (char *devfs_path); 56 …devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path); 65 void hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token); 66 void devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int actio… 67 void devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler); 68 void devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler); 69 void devinfo_remove_enqueue(gchar *devfs_path, DevinfoDevHandler *handler);
|
H A D | devinfo_usb.c | 37 static HalDevice *devinfo_usb_if_add(HalDevice *d, di_node_t node, gchar *devfs_path, 45 static void set_usb_properties(HalDevice *d, di_node_t node, gchar *devfs_path, char *driver_name); 96 get_usb_devlink(char *devfs_path, const char *dir_name) in get_usb_devlink() argument 111 (strstr(lpath, devfs_path) != NULL)) { in get_usb_devlink() 124 devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_usb_add() argument 145 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_usb_add() 173 set_usb_properties (d, node, devfs_path, driver_name); in devinfo_usb_add() 177 if (hdl = di_devlink_init (devfs_path, DI_MAKE_LINK)) { in devinfo_usb_add() 182 devinfo_add_enqueue (d, devfs_path, &devinfo_usb_handler); in devinfo_usb_add() 191 devfs_path, 0); in devinfo_usb_add() [all …]
|
H A D | hotplug.c | 66 …_ERROR (("devpath %s already present in store, ignore event", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs_add() 80 if (strcmp(hotplug_event->un.devfs.devfs_path, "/") != 0) { in hotplug_event_begin_devfs_add() 81 …HAL_ERROR (("Parent is NULL devfs_path=%s parent_udi=%s", hotplug_event->un.devfs.devfs_path, pare… in hotplug_event_begin_devfs_add() 116 HAL_ERROR (("devpath %s not present in store, ignore event", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs_remove() 123 hotplug_event->un.devfs.devfs_path, in hotplug_event_begin_devfs_remove() 132 HAL_INFO (("hotplug_event_begin_devfs: %s", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs() 135 hotplug_event->un.devfs.devfs_path); in hotplug_event_begin_devfs()
|
H A D | devinfo_acpi.c | 39 char *devfs_path, char *device_type); 62 devinfo_acpi_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_acpi_add() argument 90 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_acpi_add() 91 devinfo_add_enqueue(d, devfs_path, &devinfo_acpi_handler); in devinfo_acpi_add() 131 devinfo_power_button_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_power_button_add() argument 144 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_power_button_add() 151 devinfo_add_enqueue(d, devfs_path, &devinfo_power_button_handler); in devinfo_power_button_add()
|
H A D | devinfo_pci.c | 31 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 42 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_pci_add() argument 63 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_pci_add() 118 devinfo_add_enqueue (d, devfs_path, &devinfo_pci_handler); in devinfo_pci_add()
|
/titanic_41/usr/src/lib/libdevice/ |
H A D | devctl.c | 106 devctl_bus_acquire(char *devfs_path, uint_t flags) in devctl_bus_acquire() argument 112 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_bus_acquire() 114 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { in devctl_bus_acquire() 120 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire() 129 devctl_device_acquire(char *devfs_path, uint_t flags) in devctl_device_acquire() argument 135 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_device_acquire() 137 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { in devctl_device_acquire() 143 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire() 153 devctl_ap_acquire(char *devfs_path, uint_t flags) in devctl_ap_acquire() argument 159 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_ap_acquire() [all …]
|
H A D | libdevice.h | 48 devctl_device_acquire(char *devfs_path, uint_t flags); 51 devctl_bus_acquire(char *devfs_path, uint_t flags); 54 devctl_ap_acquire(char *devfs_path, uint_t flags); 57 devctl_pm_dev_acquire(char *devfs_path, uint_t flags); 60 devctl_pm_bus_acquire(char *devfs_path, uint_t flags);
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | picllibdevinfo.c | 66 char devfs_path[MAXPATHLEN]; member 247 "r", port_info->devfs_path, in create_port_config_info() 316 char *devfs_path = NULL; in probe_tree() local 349 devfs_path = di_devfs_path(node); in probe_tree() 350 if (devfs_path == NULL) { in probe_tree() 358 di_devfs_path_free(devfs_path); in probe_tree() 364 di_devfs_path_free(devfs_path); in probe_tree() 368 (void) strncpy(port_info->devfs_path, devfs_path, in probe_tree() 369 sizeof (port_info->devfs_path)); in probe_tree() 402 di_devfs_path_free(devfs_path); in probe_tree() [all …]
|
H A D | piclscsi.c | 234 find_scsi_controller(char *devfs_path, plist_t *list, char *ap_id) in find_scsi_controller() argument 241 if (devfs_path == NULL || ap_id == NULL) { in find_scsi_controller() 244 (void) snprintf((char *)path, sizeof (path), "/devices%s", devfs_path); in find_scsi_controller() 272 get_scsislot_name(char *devfs_path, char *bus_addr, char *name) in get_scsislot_name() argument 301 if ((rc = find_scsi_controller(devfs_path, &list, in get_scsislot_name() 553 is_node_present(scsi_info_t *scsi_info, char *devfs_path, int target) in is_node_present() argument 570 (void) snprintf(path, sizeof (path), "/devices%s", devfs_path); in is_node_present() 685 char *devfs_path = NULL; in probe_disks() local 732 devfs_path = di_devfs_path(node); in probe_disks() 735 if (devfs_path == NULL) { in probe_disks() [all …]
|
/titanic_41/usr/src/cmd/hal/tools/sunos/ |
H A D | hal-system-lcd-get-brightness-sunos.c | 37 char *devfs_path; in main() local 42 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) { in main() 46 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
|
H A D | hal-system-lcd-set-brightness-sunos.c | 38 char *devfs_path; in main() local 43 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) { in main() 46 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/chicago/envd/ |
H A D | piclenvsetup.c | 391 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 435 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props() 439 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props() 513 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local 561 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props() 565 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_disk_nodes_and_props() 656 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 704 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props() 708 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/ |
H A D | piclenvsetup.c | 401 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 439 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props() 443 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props() 518 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local 560 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props() 564 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_disk_nodes_and_props() 655 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 699 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props() 703 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | devfsadm.h | 223 int devfsadm_enumerate_int(char *devfs_path, int index, char **buf, 225 int devfsadm_enumerate_char(char *devfs_path, int index, char **buf, 236 int disk_enumerate_int(char *devfs_path, int index, char **buf, 241 int devfsadm_enumerate_char_start(char *devfs_path, int index, 243 int devfsadm_read_link(di_node_t node, char *link, char **devfs_path);
|
H A D | port_link.c | 370 portcmp(char *devfs_path, char *phys_path) in portcmp() argument 377 p1 = strrchr(devfs_path, ':'); in portcmp() 395 rv = strcmp(devfs_path, phys_path); in portcmp() 420 char *devfs_path; in check_compat_ports() local 426 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && in check_compat_ports() 427 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports() 428 free(devfs_path); in check_compat_ports() 432 free(devfs_path); in check_compat_ports() 435 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && in check_compat_ports() 436 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports() [all …]
|
/titanic_41/usr/src/cmd/hal/probing/acpi/ |
H A D | probe-acpi.c | 38 char *devfs_path; in main() local 44 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) in main() 46 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/taco/envd/ |
H A D | piclenvsetup.c | 332 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 369 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props() 373 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props() 451 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 490 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props() 494 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | getdment.c | 57 static int dmap_resolve_link(char *devpath, char **devfs_path); 456 dmap_resolve_link(char *devpath, char **devfs_path) in dmap_resolve_link() argument 464 if (devfs_path) { in dmap_resolve_link() 465 *devfs_path = NULL; in dmap_resolve_link() 499 return (dmap_resolve_link(stage_link, devfs_path)); in dmap_resolve_link() 502 if (devfs_path) { in dmap_resolve_link() 503 *devfs_path = strdup(ptr); in dmap_resolve_link() 504 if (*devfs_path == NULL) { in dmap_resolve_link()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 451 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local 509 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props() 513 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props() 625 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 669 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props() 673 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
|
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/xaui/ |
H A D | xaui.c | 206 char *devfs_path; in xaui_get_path() local 242 devfs_path = di_devfs_path(dnode); in xaui_get_path() 243 if (devfs_path == NULL) { in xaui_get_path() 247 topo_mod_dprintf(mod, "devfs_path (%s)\n", devfs_path); in xaui_get_path() 248 dev_path_len = strlen(devfs_path) + 1; in xaui_get_path() 253 buf = xaui_trans_str(mod, devfs_path, "pci", dev_path_len); in xaui_get_path() 256 buf = xaui_trans_str(mod, devfs_path, "niu", dev_path_len); in xaui_get_path() 259 di_devfs_path_free(devfs_path); in xaui_get_path()
|