sd.c (03509b53) | sd.c (8d483882) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 4623 unchanged lines hidden (view full) --- 4632 int dlen, len; 4633 char *sn; 4634 4635 ASSERT(un != NULL); 4636 ASSERT(mutex_owned(SD_MUTEX(un))); 4637 ASSERT((SD_DEVINFO(un)) == devi); 4638 4639 /* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 4623 unchanged lines hidden (view full) --- 4632 int dlen, len; 4633 char *sn; 4634 4635 ASSERT(un != NULL); 4636 ASSERT(mutex_owned(SD_MUTEX(un))); 4637 ASSERT((SD_DEVINFO(un)) == devi); 4638 4639 /* |
4640 * If transport has already registered a devid for this target 4641 * then that takes precedence over the driver's determination 4642 * of the devid. 4643 */ 4644 if (ddi_devid_get(SD_DEVINFO(un), &un->un_devid) == DDI_SUCCESS) { 4645 ASSERT(un->un_devid); 4646 return; /* use devid registered by the transport */ 4647 } 4648 4649 /* |
|
4640 * This is the case of antiquated Sun disk drives that have the 4641 * FAB_DEVID property set in the disk_table. These drives 4642 * manage the devid's by storing them in last 2 available sectors 4643 * on the drive and have them fabricated by the ddi layer by calling 4644 * ddi_devid_init and passing the DEVID_FAB flag. 4645 */ 4646 if (un->un_f_opt_fab_devid == TRUE) { 4647 /* --- 23041 unchanged lines hidden --- | 4650 * This is the case of antiquated Sun disk drives that have the 4651 * FAB_DEVID property set in the disk_table. These drives 4652 * manage the devid's by storing them in last 2 available sectors 4653 * on the drive and have them fabricated by the ddi layer by calling 4654 * ddi_devid_init and passing the DEVID_FAB flag. 4655 */ 4656 if (un->un_f_opt_fab_devid == TRUE) { 4657 /* --- 23041 unchanged lines hidden --- |