/titanic_41/usr/src/lib/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 205 libhal_drive_policy_compute_display_name (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePo… in libhal_drive_policy_compute_display_name() argument 218 model = libhal_drive_get_model (drive); in libhal_drive_policy_compute_display_name() 219 vendor = libhal_drive_get_vendor (drive); in libhal_drive_policy_compute_display_name() 220 drive_type = libhal_drive_get_type (drive); in libhal_drive_policy_compute_display_name() 221 drive_is_hotpluggable = libhal_drive_is_hotpluggable (drive); in libhal_drive_policy_compute_display_name() 222 drive_is_removable = libhal_drive_uses_removable_media (drive); in libhal_drive_policy_compute_display_name() 223 drive_cdrom_caps = libhal_drive_get_cdrom_caps (drive); in libhal_drive_policy_compute_display_name() 351 libhal_volume_policy_compute_display_name (LibHalDrive *drive, LibHalVolume *volume, LibHalStorageP… in libhal_volume_policy_compute_display_name() argument 365 model = libhal_drive_get_model (drive); in libhal_volume_policy_compute_display_name() 366 vendor = libhal_drive_get_vendor (drive); in libhal_volume_policy_compute_display_name() [all …]
|
H A D | libhal-storage.h | 196 void libhal_drive_free (LibHalDrive *drive); 198 dbus_bool_t libhal_drive_is_hotpluggable (LibHalDrive *drive); 199 dbus_bool_t libhal_drive_uses_removable_media (LibHalDrive *drive); 200 dbus_bool_t libhal_drive_is_media_detected (LibHalDrive *drive); 201 dbus_uint64_t libhal_drive_get_size (LibHalDrive *drive); 202 dbus_uint64_t libhal_drive_get_media_size (LibHalDrive *drive); 203 const char *libhal_drive_get_partition_scheme (LibHalDrive *drive); 204 dbus_bool_t libhal_drive_no_partitions_hint (LibHalDrive *drive); 205 dbus_bool_t libhal_drive_requires_eject (LibHalDrive *drive); 206 LibHalDriveType libhal_drive_get_type (LibHalDrive *drive); [all …]
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | bios.c | 26 extern int biosdisk_int13_extensions (int ax, int drive, void *dap); 27 extern int biosdisk_standard (int ah, int drive, 30 extern int check_int13_extensions (int drive); 31 extern int get_diskinfo_standard (int drive, 36 extern int get_diskinfo_floppy (int drive, 49 biosdisk (int read, int drive, struct geometry *geometry, in biosdisk() argument 83 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap); in biosdisk() 102 return biosdisk (read, drive, geometry, sector, nsec, segment); in biosdisk() 121 err = biosdisk_standard (read + 0x02, drive, in biosdisk() 131 get_cdinfo (int drive, struct geometry *geometry) in get_cdinfo() argument [all …]
|
H A D | common.c | 159 int drive; in init_bios_info() local 279 for (drive = 0x80; drive < 0x88; drive++) in init_bios_info() 286 if (get_diskinfo (drive, &geom)) in init_bios_info() 297 track_int13 (drive); in init_bios_info() 301 info->drive_number = drive; in init_bios_info()
|
H A D | disk_io.c | 158 rawread(int drive, unsigned int sector, int byte_offset, int byte_len, in rawread() argument 177 if (buf_drive != drive) in rawread() 179 if (get_diskinfo (drive, &buf_geom)) in rawread() 184 buf_drive = drive; in rawread() 222 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 237 || biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 263 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, in rawread() 346 rawwrite(int drive, unsigned int sector, char *buf) in rawwrite() argument 350 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, 0, 1, SCRATCHSEG)) in rawwrite() 364 if (biosdisk (BIOSDISK_WRITE, drive, &buf_geom, in rawwrite() [all …]
|
H A D | shared.h | 631 extern void assign_device_name (int drive, const char *device); 800 void track_int13 (int drive); 890 int get_diskinfo (int drive, struct geometry *geometry); 891 int biosdisk (int subfunc, int drive, struct geometry *geometry, 1009 int rawread (int drive, unsigned int sector, int byte_offset, int byte_len, 1012 int rawwrite (int drive, unsigned int sector, char *buf); 1020 int next_partition (unsigned long drive, unsigned long dest,
|
H A D | builtins.c | 837 char *drive = arg; in device_func() local 841 if (! set_device (drive)) in device_func() 845 device = skip_to (0, drive); in device_func() 1578 set_root (char *root, unsigned long drive, unsigned long part) in set_root() argument 1584 grub_sprintf (root, "(hd%d,%d)\n", drive - 0x80, pc_slice); in set_root() 1587 drive - 0x80, pc_slice, bsd_part + 'a'); in set_root() 1598 unsigned long drive; in find_common() local 1628 for (drive = 0; drive < 8; drive++) in find_common() 1630 current_drive = drive; in find_common() 1642 grub_sprintf(root, "(fd%d)", drive); in find_common() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 235 assign_device_name (int drive, const char *device) in assign_device_name() argument 238 if (device_map[drive]) in assign_device_name() 239 free (device_map[drive]); in assign_device_name() 242 if (disks[drive].flags != -1) in assign_device_name() 244 close (disks[drive].flags); in assign_device_name() 245 disks[drive].flags = -1; in assign_device_name() 250 device_map[drive] = 0; in assign_device_name() 252 device_map[drive] = strdup (device); in assign_device_name() 442 track_int13 (int drive) in track_int13() argument 759 get_diskinfo (int drive, struct geometry *geometry) in get_diskinfo() argument [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | emul64.conf | 54 wombat-drive-1GB= 0, 2097152, 0, 128, 128, 128; 55 wombat-drive-1TB= 0, 2147483648, 0, 131072, 128, 128; 56 wombat-drive-1_5TB= 0, 3221225472, 0, 196608, 128, 128; 57 wombat-drive-2TB= 1, 0, 0, 262144, 128, 128; 58 wombat-drive-3TB= 1, 2147483648, 0, 393216, 128, 128; 59 wombat-drive-5TB= 2, 2147483648, 0, 655360, 128, 128;
|
/titanic_41/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 140 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument 146 fd = open (map[drive], O_RDONLY); in get_drive_geometry() 257 if (drive & 0x80) in get_drive_geometry() 428 get_dac960_disk_name (char *name, int controller, int drive) in get_dac960_disk_name() argument 430 sprintf (name, "/dev/rd/c%dd%d", controller, drive); in get_dac960_disk_name() 550 int drive; in read_device_map() local 586 drive = strtoul (ptr, &ptr, 10); in read_device_map() 587 if (drive < 0) in read_device_map() 592 else if (drive > 127) in read_device_map() 596 is_floppy ? 'f' : 'h', drive); in read_device_map() [all …]
|
H A D | device.h | 36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive); 43 extern int is_disk_device (char **map, int drive); 44 extern int write_to_partition (char **map, int drive, int partition,
|
/titanic_41/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_info.c | 98 tlm_drive_t *drive; in tlm_drive() local 104 drive = library->tl_drive; in tlm_drive() 105 while (drive != NULL) { in tlm_drive() 106 if (drv == drive->td_number) { in tlm_drive() 107 return (drive); in tlm_drive() 109 drive = drive->td_next; in tlm_drive() 347 tlm_drive_t *drive = ndmp_malloc(sizeof (tlm_drive_t)); in tlm_insert_new_drive() local 356 drive->td_library = library; in tlm_insert_new_drive() 357 drive->td_number = library->tl_drive_count; in tlm_insert_new_drive() 358 *p_drive = drive; in tlm_insert_new_drive() [all …]
|
/titanic_41/usr/src/cmd/hal/tools/ |
H A D | hal-storage-unmount.c | 172 LibHalDrive *drive; in main() local 174 drive = libhal_drive_from_udi (hal_ctx, udi); in main() 175 if (drive == NULL) { in main() 182 udi, NULL, drive, device, invoked_by_uid, in main() 189 LibHalDrive *drive; in main() local 195 drive = libhal_drive_from_udi (hal_ctx, drive_udi); in main() 196 if (drive == NULL) in main() 203 udi, volume, drive, device, invoked_by_uid, in main()
|
H A D | hal-storage-eject.c | 80 LibHalDrive *drive; in main() local 169 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) { in main() 174 volume_udis = libhal_drive_find_all_volumes (hal_ctx, drive, &num_volumes); in main() 205 volume_udi, volume_to_unmount, drive, in main() 226 libhal_drive_get_udi (drive), in main() 227 drive, in main() 228 libhal_drive_get_device_file (drive), in main()
|
H A D | hal-storage-closetray.c | 81 LibHalDrive *drive; in main() local 158 if ((drive = libhal_drive_from_udi (hal_ctx, udi)) == NULL) { in main() 167 libhal_drive_get_udi (drive), in main() 168 drive, in main() 169 libhal_drive_get_device_file (drive), in main()
|
H A D | hal-storage-mount.c | 450 LibHalVolume *volume, LibHalDrive *drive, const char *device, argument 579 append_ro = libhal_device_get_property_bool (hal_ctx, libhal_drive_get_udi(drive), 640 model = libhal_drive_get_model (drive); 641 drive_type = libhal_drive_get_type_textual (drive); 779 if (libhal_drive_is_hotpluggable (drive) || libhal_drive_uses_removable_media (drive)) 1116 LibHalDrive *drive; local 1118 drive = libhal_drive_from_udi (hal_ctx, udi); 1119 if (drive == NULL) { 1126 udi, NULL, drive, device, invoked_by_uid, 1132 LibHalDrive *drive; local [all …]
|
H A D | hal-storage-shared.h | 59 LibHalVolume *volume, LibHalDrive *drive, const char *device, 69 LibHalDrive *drive, const char *device,
|
/titanic_41/usr/src/uts/common/io/blkdev/ |
H A D | blkdev.c | 316 bd_create_inquiry_props(dev_info_t *dip, bd_drive_t *drive) in bd_create_inquiry_props() argument 318 if (drive->d_vendor_len > 0) in bd_create_inquiry_props() 320 drive->d_vendor, drive->d_vendor_len); in bd_create_inquiry_props() 322 if (drive->d_product_len > 0) in bd_create_inquiry_props() 324 drive->d_product, drive->d_product_len); in bd_create_inquiry_props() 326 if (drive->d_serial_len > 0) in bd_create_inquiry_props() 328 drive->d_serial, drive->d_serial_len); in bd_create_inquiry_props() 330 if (drive->d_revision_len > 0) in bd_create_inquiry_props() 332 drive->d_revision, drive->d_revision_len); in bd_create_inquiry_props() 336 bd_create_errstats(bd_t *bd, int inst, bd_drive_t *drive) in bd_create_errstats() argument [all …]
|
/titanic_41/usr/src/cmd/rmvolmgr/ |
H A D | rmm_common.c | 164 LibHalDrive *drive; in rmm_hal_volume_find() local 180 if (((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find() 182 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find() 184 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find() 186 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find() 195 if ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find() 200 drive = rmm_hal_volume_findby_nickname(hal_ctx, name, volumes); in rmm_hal_volume_find() 206 return (drive); in rmm_hal_volume_find() 216 LibHalDrive *drive; in rmm_hal_volume_find_default() local 223 if ((drive = rmm_hal_volume_findby_nickname(hal_ctx, in rmm_hal_volume_find_default() [all …]
|
/titanic_41/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | capacity.notes.txt | 34 case that a drive supports LBA access and therefore the BIOS's geometry 48 reliably calculate the capacity of an ATA drive, but I can't make 58 Even assertions in the specs seem to be ignored; I have a drive for 71 with what the BIOS and the drive have figured out unless it 82 >reliably calculate the capacity of an ATA drive, but I can't make 92 >Even assertions in the specs seem to be ignored; I have a drive for 96 If the words [54]*[55]*[56] don't match [57:58] then the drive is 100 Of course Read/Set Max do alter the drive's apparent capacity but assuming 105 53:58. Words 60:61 are the drive capacity. But even if you must use CHS 106 mode, words 60:61 are still the true drive capacity but words 57:58 are [all …]
|
/titanic_41/usr/src/uts/common/io/vioblk/ |
H A D | vioblk.c | 168 static void vioblk_driveinfo(void *arg, bd_drive_t *drive); 436 vioblk_driveinfo(void *arg, bd_drive_t *drive) in vioblk_driveinfo() argument 440 drive->d_qsize = sc->sc_vq->vq_num; in vioblk_driveinfo() 441 drive->d_removable = B_FALSE; in vioblk_driveinfo() 442 drive->d_hotpluggable = B_TRUE; in vioblk_driveinfo() 443 drive->d_target = 0; in vioblk_driveinfo() 444 drive->d_lun = 0; in vioblk_driveinfo() 446 drive->d_vendor = "Virtio"; in vioblk_driveinfo() 447 drive->d_vendor_len = strlen(drive->d_vendor); in vioblk_driveinfo() 449 drive->d_product = "Block Device"; in vioblk_driveinfo() [all …]
|
/titanic_41/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_noe.c | 287 uint16_t drive = 0; in cpqary3_NOE_handler() local 466 drive = *(uint16_t *) in cpqary3_NOE_handler() 468 drive = ((drive < CTLR_SCSI_ID) in cpqary3_NOE_handler() 469 ? drive : drive + CPQARY3_TGT_ALIGNMENT); in cpqary3_NOE_handler() 470 if (ctlr && ctlr->cpqary3_tgtp[drive]) { in cpqary3_NOE_handler() 471 ctlr->cpqary3_tgtp[drive]->type = in cpqary3_NOE_handler()
|
H A D | cpqary3_ioctl.c | 597 uint16_t drive = 0; in cpqary3_ioctl_send_scsicmd() local 659 drive = *(uint16_t *)(&evt->event_specific_data[0]); in cpqary3_ioctl_send_scsicmd() 660 drive = ((drive < CTLR_SCSI_ID) ? in cpqary3_ioctl_send_scsicmd() 661 drive : drive + CPQARY3_TGT_ALIGNMENT); in cpqary3_ioctl_send_scsicmd() 663 if (cpqary3p && cpqary3p->cpqary3_tgtp[drive]) { in cpqary3_ioctl_send_scsicmd() 664 cpqary3p->cpqary3_tgtp[drive]->type = in cpqary3_ioctl_send_scsicmd()
|
H A D | cpqary3_util.c | 300 return ((tgtp->properties.drive.heads << 16) | in cpqary3_target_geometry() 301 tgtp->properties.drive.sectors); in cpqary3_target_geometry() 709 ctlr->cpqary3_tgtp[i]->properties.drive.heads = in cpqary3_detect_target_geometry() 711 ctlr->cpqary3_tgtp[i]->properties.drive.sectors = in cpqary3_detect_target_geometry() 783 ctlr->cpqary3_tgtp[i]->properties.drive.heads = in cpqary3_detect_target_geometry() 785 ctlr->cpqary3_tgtp[i]->properties.drive.sectors = in cpqary3_detect_target_geometry()
|
/titanic_41/usr/src/uts/common/io/sdcard/impl/ |
H A D | sda_mem.c | 187 sda_mem_bd_driveinfo(void *arg, bd_drive_t *drive) in sda_mem_bd_driveinfo() argument 191 drive->d_qsize = 4; /* we queue up internally, 4 is enough */ in sda_mem_bd_driveinfo() 192 drive->d_maxxfer = 65536; in sda_mem_bd_driveinfo() 193 drive->d_removable = B_TRUE; in sda_mem_bd_driveinfo() 194 drive->d_hotpluggable = B_FALSE; in sda_mem_bd_driveinfo() 195 drive->d_target = slot->s_slot_num; in sda_mem_bd_driveinfo()
|