xref: /onnv-gate/usr/src/uts/common/io/bge/bge_mii_5906.c (revision 7808:aa876422090f)
1*7808SYong.Tan@Sun.COM /*
2*7808SYong.Tan@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3*7808SYong.Tan@Sun.COM  * Use is subject to license terms.
4*7808SYong.Tan@Sun.COM  */
5*7808SYong.Tan@Sun.COM 
6*7808SYong.Tan@Sun.COM /*
7*7808SYong.Tan@Sun.COM  * Copyright (c) 2000
8*7808SYong.Tan@Sun.COM  *	Bill Paul <wpaul@ee.columbia.edu>.  All rights reserved.
9*7808SYong.Tan@Sun.COM  *
10*7808SYong.Tan@Sun.COM  * Redistribution and use in source and binary forms, with or without
11*7808SYong.Tan@Sun.COM  * modification, are permitted provided that the following conditions
12*7808SYong.Tan@Sun.COM  * are met:
13*7808SYong.Tan@Sun.COM  * 1. Redistributions of source code must retain the above copyright
14*7808SYong.Tan@Sun.COM  *    notice, this list of conditions and the following disclaimer.
15*7808SYong.Tan@Sun.COM  * 2. Redistributions in binary form must reproduce the above copyright
16*7808SYong.Tan@Sun.COM  *    notice, this list of conditions and the following disclaimer in the
17*7808SYong.Tan@Sun.COM  *    documentation and/or other materials provided with the distribution.
18*7808SYong.Tan@Sun.COM  * 3. All advertising materials mentioning features or use of this software
19*7808SYong.Tan@Sun.COM  *    must display the following acknowledgement:
20*7808SYong.Tan@Sun.COM  *	This product includes software developed by Bill Paul.
21*7808SYong.Tan@Sun.COM  * 4. Neither the name of the author nor the names of any co-contributors
22*7808SYong.Tan@Sun.COM  *    may be used to endorse or promote products derived from this software
23*7808SYong.Tan@Sun.COM  *    without specific prior written permission.
24*7808SYong.Tan@Sun.COM  *
25*7808SYong.Tan@Sun.COM  * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
26*7808SYong.Tan@Sun.COM  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27*7808SYong.Tan@Sun.COM  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28*7808SYong.Tan@Sun.COM  * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
29*7808SYong.Tan@Sun.COM  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30*7808SYong.Tan@Sun.COM  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31*7808SYong.Tan@Sun.COM  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32*7808SYong.Tan@Sun.COM  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33*7808SYong.Tan@Sun.COM  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34*7808SYong.Tan@Sun.COM  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35*7808SYong.Tan@Sun.COM  * THE POSSIBILITY OF SUCH DAMAGE.
36*7808SYong.Tan@Sun.COM  */
37*7808SYong.Tan@Sun.COM 
38*7808SYong.Tan@Sun.COM #include "bge_impl.h"
39*7808SYong.Tan@Sun.COM 
40*7808SYong.Tan@Sun.COM void
bge_adj_volt_5906(bge_t * bgep)41*7808SYong.Tan@Sun.COM bge_adj_volt_5906(bge_t *bgep)
42*7808SYong.Tan@Sun.COM {
43*7808SYong.Tan@Sun.COM 	/* Adjust output voltage (From bsd driver) */
44*7808SYong.Tan@Sun.COM 	bge_mii_put16(bgep, 0x17, 0x12);
45*7808SYong.Tan@Sun.COM }
46