Home
last modified time | relevance | path

Searched refs:drive_type (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c335 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 Dlibhal-storage.c212 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 Dfd.c263 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 Daddon-storage.c320 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 Ddevinfo_storage.c1146 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 Dtlm_lib.c1020 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 Dhal-storage-mount.c488 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 Data_common.c775 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 Ddrive.c334 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()