cfga.c (09f67678) cfga.c (70025d76)
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, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 690 unchanged lines hidden (view full) ---

699 /*
700 * for multi-func device we allow multiple
701 * configure on the same slot because one
702 * func can be configured and other one won't
703 */
704 if (devctl_ap_configure(dcp, NULL) == -1) {
705 rv = CFGA_ERROR;
706 cfga_err(errstring, CMD_SLOT_CONFIGURE, 0);
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, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 690 unchanged lines hidden (view full) ---

699 /*
700 * for multi-func device we allow multiple
701 * configure on the same slot because one
702 * func can be configured and other one won't
703 */
704 if (devctl_ap_configure(dcp, NULL) == -1) {
705 rv = CFGA_ERROR;
706 cfga_err(errstring, CMD_SLOT_CONFIGURE, 0);
707 if (devctl_ap_disconnect(dcp, NULL) == -1) {
707 if ((rs == AP_RSTATE_DISCONNECTED) &&
708 (devctl_ap_disconnect(dcp, NULL)
709 == -1)) {
708 rv = CFGA_ERROR;
709 cfga_err(errstring,
710 CMD_SLOT_CONFIGURE, 0);
711 }
712 break;
713 }
714
715 break;

--- 1082 unchanged lines hidden ---
710 rv = CFGA_ERROR;
711 cfga_err(errstring,
712 CMD_SLOT_CONFIGURE, 0);
713 }
714 break;
715 }
716
717 break;

--- 1082 unchanged lines hidden ---