/illumos-gate/usr/src/cmd/hal/probing/storage/ |
H A D | probe-storage.c | 335 char *drive_type; in main() local 361 if ((drive_type = getenv ("HAL_PROP_STORAGE_DRIVE_TYPE")) == NULL) in main() 373 is_cdrom = (strcmp (drive_type, "cdrom") == 0); in main() 374 is_floppy = (strcmp (drive_type, "floppy") == 0); in main() 386 device_file, drive_type, udi, only_check_for_media)); in main() 394 if (strcmp (drive_type, "cdrom") == 0) { in main() 396 } else if (strcmp (drive_type, "disk") == 0) { in main()
|
/illumos-gate/usr/src/lib/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 212 LibHalDriveType drive_type; in libhal_drive_policy_compute_display_name() local 220 drive_type = libhal_drive_get_type (drive); in libhal_drive_policy_compute_display_name() 246 if (drive_type==LIBHAL_DRIVE_TYPE_CDROM) { in libhal_drive_policy_compute_display_name() 308 } else if (drive_type==LIBHAL_DRIVE_TYPE_FLOPPY) { in libhal_drive_policy_compute_display_name() 316 } else if (drive_type==LIBHAL_DRIVE_TYPE_DISK && !drive_is_removable) { in libhal_drive_policy_compute_display_name() 356 LibHalDriveType drive_type; in libhal_volume_policy_compute_display_name() local 361 drive_type = libhal_drive_get_type (drive); in libhal_volume_policy_compute_display_name() 376 if (drive_type==LIBHAL_DRIVE_TYPE_CDROM) { in libhal_volume_policy_compute_display_name() 514 LibHalDriveType drive_type; in libhal_drive_policy_compute_icon_name() local 517 drive_type = libhal_drive_get_type (drive); in libhal_drive_policy_compute_icon_name() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fd.c | 263 int drive_type; in fd_probe() local 292 cmos = drive_type = (int)inb(CMOS_DATA); in fd_probe() 298 drive_type = drive_type >> 4; in fd_probe() 301 if (cmos && (drive_type & 0x0F)) { in fd_probe() 347 int drive_num, drive_size, drive_type; in fd_attach() local 369 cmos = drive_type = (int)inb(CMOS_DATA); in fd_attach() 375 drive_type = drive_type >> 4; in fd_attach() 378 drive_type = drive_type & 0x0F; in fd_attach() 390 drive_type = 0; in fd_attach() 403 drive_type = 1; in fd_attach() [all …]
|
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 320 char *drive_type; in main() local 332 if ((drive_type = getenv ("HAL_PROP_STORAGE_DRIVE_TYPE")) == NULL) in main() 355 …oing addon-storage for %s (bus %s) (drive_type %s) (udi %s)\n", device_file, bus, drive_type, udi); in main()
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_storage.c | 1146 const char *drive_type; in devinfo_storage_hotplug_begin_add() local 1166 drive_type = hal_device_property_get_string (d, "storage.drive_type"); in devinfo_storage_hotplug_begin_add() 1167 if ((drive_type != NULL) && (strcmp (drive_type, "floppy") == 0)) { in devinfo_storage_hotplug_begin_add() 1315 const char *drive_type; in devinfo_storage_device_rescan() local 1326 drive_type = hal_device_property_get_string (d, "storage.drive_type"); in devinfo_storage_device_rescan() 1327 is_floppy = (drive_type != NULL) && (strcmp (drive_type, "floppy") == 0); in devinfo_storage_device_rescan() 1631 const char *drive_type; in devinfo_storage_get_legacy_media() local 1635 } else if (((drive_type = hal_device_property_get_string (d, in devinfo_storage_get_legacy_media() 1636 "storage.drive_type")) != NULL) && (strcmp (drive_type, "floppy") == 0)) { in devinfo_storage_get_legacy_media()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_lib.c | 1020 char *drive_type; in probe_scsi() local 1056 drive_type = ndmpd_get_prop(NDMP_DRIVE_TYPE); in probe_scsi() 1058 if ((strcasecmp(drive_type, "sysv") != 0) && in probe_scsi() 1059 (strcasecmp(drive_type, "bsd") != 0)) { in probe_scsi() 1078 if (strcasecmp(drive_type, "sysv") == 0) { in probe_scsi() 1081 } else if (strcasecmp(drive_type, "bsd") == 0) { in probe_scsi()
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-mount.c | 488 const char *drive_type; local 641 drive_type = libhal_drive_get_type_textual (drive); 649 } else if ((drive_type != NULL) && (strlen (drive_type) > 0)) { 650 g_strlcpy (mount_point, drive_type, sizeof (mount_point));
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_common.c | 775 int drive_type; in ata_bus_ctl() local 809 drive_type = ATA_DEV_ATAPI; in ata_bus_ctl() 811 drive_type = ATA_DEV_DISK; in ata_bus_ctl() 820 (target_type != drive_type)) in ata_bus_ctl() 823 target_type = drive_type; in ata_bus_ctl() 825 if (drive_type == ATA_DEV_ATAPI) { in ata_bus_ctl() 849 if (target_type != drive_type) in ata_bus_ctl() 1174 int drive_type; in ata_init_drive() local 1212 drive_type = ata_drive_type(ata_drvp->ad_drive_bits, in ata_init_drive() 1219 switch (drive_type) { in ata_init_drive() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 334 static int conv_drive_type(uint_t drive_type); 700 conv_drive_type(uint_t drive_type) in conv_drive_type() argument 702 switch (drive_type) { in conv_drive_type()
|