npi_mac.c (73ff8cc6) | npi_mac.c (e3d11eee) |
---|---|
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 --- 1000 unchanged lines hidden (view full) --- 1009 XMAC_REG_WR(handle, portn, XMAC_MIN_REG, val); 1010 XMAC_REG_WR(handle, portn, XMAC_MAX_REG, 1011 max_fsize); 1012 } else { 1013 XMAC_REG_RD(handle, portn, XMAC_MIN_REG, &val); 1014 min_fsize = (val & XMAC_MIN_TX_FRM_SZ_MASK) 1015 >> XMAC_MIN_TX_FRM_SZ_SHIFT; 1016 XMAC_REG_RD(handle, portn, XMAC_MAX_REG, &val); | 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 --- 1000 unchanged lines hidden (view full) --- 1009 XMAC_REG_WR(handle, portn, XMAC_MIN_REG, val); 1010 XMAC_REG_WR(handle, portn, XMAC_MAX_REG, 1011 max_fsize); 1012 } else { 1013 XMAC_REG_RD(handle, portn, XMAC_MIN_REG, &val); 1014 min_fsize = (val & XMAC_MIN_TX_FRM_SZ_MASK) 1015 >> XMAC_MIN_TX_FRM_SZ_SHIFT; 1016 XMAC_REG_RD(handle, portn, XMAC_MAX_REG, &val); |
1017 max_fsize = val & XMAC_MAX_FRM_SZ_MASK; |
|
1017 attrp->odata[0] = min_fsize; 1018 attrp->odata[1] = max_fsize; 1019 } 1020 break; 1021 case BMAC_PORT_0: 1022 case BMAC_PORT_1: 1023 if (op == OP_SET) { 1024 min_fsize = attrp->idata[0]; --- 2542 unchanged lines hidden --- | 1018 attrp->odata[0] = min_fsize; 1019 attrp->odata[1] = max_fsize; 1020 } 1021 break; 1022 case BMAC_PORT_0: 1023 case BMAC_PORT_1: 1024 if (op == OP_SET) { 1025 min_fsize = attrp->idata[0]; --- 2542 unchanged lines hidden --- |