1e53470feSOleksandr Tymoshenko /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3af3dc4a7SPedro F. Giffuni * 4e53470feSOleksandr Tymoshenko * Copyright (c) 2011 5e53470feSOleksandr Tymoshenko * Ben Gray <ben.r.gray@gmail.com>. 6e53470feSOleksandr Tymoshenko * All rights reserved. 7e53470feSOleksandr Tymoshenko * 8e53470feSOleksandr Tymoshenko * Redistribution and use in source and binary forms, with or without 9e53470feSOleksandr Tymoshenko * modification, are permitted provided that the following conditions 10e53470feSOleksandr Tymoshenko * are met: 11e53470feSOleksandr Tymoshenko * 1. Redistributions of source code must retain the above copyright 12e53470feSOleksandr Tymoshenko * notice, this list of conditions and the following disclaimer. 13e53470feSOleksandr Tymoshenko * 2. Redistributions in binary form must reproduce the above copyright 14e53470feSOleksandr Tymoshenko * notice, this list of conditions and the following disclaimer in the 15e53470feSOleksandr Tymoshenko * documentation and/or other materials provided with the distribution. 16e53470feSOleksandr Tymoshenko * 17e53470feSOleksandr Tymoshenko * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18e53470feSOleksandr Tymoshenko * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19e53470feSOleksandr Tymoshenko * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20e53470feSOleksandr Tymoshenko * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 21e53470feSOleksandr Tymoshenko * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22e53470feSOleksandr Tymoshenko * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23e53470feSOleksandr Tymoshenko * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24e53470feSOleksandr Tymoshenko * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25e53470feSOleksandr Tymoshenko * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26e53470feSOleksandr Tymoshenko * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27e53470feSOleksandr Tymoshenko * SUCH DAMAGE. 28e53470feSOleksandr Tymoshenko */ 29e53470feSOleksandr Tymoshenko #ifndef _TWL_VREG_H_ 30e53470feSOleksandr Tymoshenko #define _TWL_VREG_H_ 31e53470feSOleksandr Tymoshenko 32e53470feSOleksandr Tymoshenko int twl_vreg_get_voltage(device_t dev, const char *name, int *millivolts); 33e53470feSOleksandr Tymoshenko int twl_vreg_set_voltage(device_t dev, const char *name, int millivolts); 34e53470feSOleksandr Tymoshenko 35e53470feSOleksandr Tymoshenko #endif /* _TWL_VREG_H_ */ 36