Lines Matching defs:disk

290 fill_disk_identifier_v3(disk_identifier &disk, const drive_parameters &parameters)
299 disk.bus_type = PCI_BUS;
301 disk.bus.pci.bus = parameters.interface.pci.bus;
302 disk.bus.pci.slot = parameters.interface.pci.slot;
303 disk.bus.pci.function = parameters.interface.pci.function;
305 disk.bus_type = LEGACY_BUS;
307 disk.bus.legacy.base_address = parameters.interface.legacy.base_address;
308 dprintf("legacy base address %x\n", disk.bus.legacy.base_address);
317 disk.device_type = ATA_DEVICE;
318 disk.device.ata.master = !parameters.device.ata.slave;
319 dprintf("ATA device, %s\n", disk.device.ata.master ? "master" : "slave");
321 disk.device_type = ATAPI_DEVICE;
322 disk.device.atapi.master = !parameters.device.ata.slave;
323 disk.device.atapi.logical_unit = parameters.device.atapi.logical_unit;
325 disk.device_type = SCSI_DEVICE;
326 disk.device.scsi.logical_unit = parameters.device.scsi.logical_unit;
328 disk.device_type = USB_DEVICE;
329 disk.device.usb.tbd = parameters.device.usb.tbd;
331 disk.device_type = FIREWIRE_DEVICE;
332 disk.device.firewire.guid = parameters.device.firewire.guid;
334 disk.device_type = FIBRE_DEVICE;
335 disk.device.fibre.wwd = parameters.device.fibre.wwd;
348 fill_disk_identifier_v2(disk_identifier &disk, const drive_parameters &parameters)
357 disk.bus_type = LEGACY_BUS;
358 disk.bus.legacy.base_address = table->base_address;
360 disk.device_type = ATA_DEVICE;
361 disk.device.ata.master = !table->is_slave;
370 // The boot block often contains the disk superblock, and should be
446 // disk identifiers... hopefully this is a good idea
463 // TODO: Until we can actually get and compare *all* fields of the disk
501 disk_identifier& disk = drive->Identifier();
502 disk.device.unknown.check_sums[i].offset = offset;
503 disk.device.unknown.check_sums[i].sum = compute_check_sum(drive, offset);
505 TRACE(("disk %x, offset %lld, sum %lu\n", drive->DriveID(), offset,
506 disk.device.unknown.check_sums[i].sum));
513 // It's very likely that one disk is an exact copy of the other, so there is nothing
516 dprintf("Could not make BIOS drives unique! Might boot from the wrong disk...\n");
704 // reset disk system
705 TRACE(("reset disk system\n"));