/* Add a fake id field to the drive we are passed. This allows use to skip a ton of NULL checks (which people always miss) and make drive properties unconditional outside of this file  */
static void generic_id(ide_drive_t *drive)
/* Add a fake id field to the drive we are passed. This allows use to skip a ton of NULL checks (which people always miss) and make drive properties unconditional outside of this file  */
static void generic_id(ide_drive_t *drive)
{
	u16 *id = drive->id;
	id[ATA_ID_CUR_CYLS]	= id[ATA_ID_CYLS]	= drive->cyl;
	id[ATA_ID_CUR_HEADS]	= id[ATA_ID_HEADS]	= drive->head;
	id[ATA_ID_CUR_SECTORS]	= id[ATA_ID_SECTORS]	= drive->sect;
}