twl.h revision 302408
1169691Skan/*- 297403Sobrien * Copyright (c) 2011 3169691Skan * Ben Gray <ben.r.gray@gmail.com>. 4169691Skan * All rights reserved. 5132720Skan * 6132720Skan * Redistribution and use in source and binary forms, with or without 7132720Skan * modification, are permitted provided that the following conditions 897403Sobrien * are met: 9132720Skan * 1. Redistributions of source code must retain the above copyright 10132720Skan * notice, this list of conditions and the following disclaimer. 11132720Skan * 2. Redistributions in binary form must reproduce the above copyright 12132720Skan * notice, this list of conditions and the following disclaimer in the 1397403Sobrien * documentation and/or other materials provided with the distribution. 14169691Skan * 15169691Skan * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16169691Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17169691Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18169691Skan * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 19132720Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20169691Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21169691Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22169691Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23169691Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24169691Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2597403Sobrien * SUCH DAMAGE. 26169691Skan * 27169691Skan * $FreeBSD: stable/11/sys/arm/ti/twl/twl.h 239281 2012-08-15 06:31:32Z gonzo $ 28169691Skan */ 29169691Skan#ifndef _TWL_H_ 30169691Skan#define _TWL_H_ 31169691Skan 32132720Skanint twl_read(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt); 33169691Skanint twl_write(device_t dev, uint8_t nsub, uint8_t reg, uint8_t *buf, uint16_t cnt); 34132720Skan 35169691Skanint twl_is_4030(device_t dev); 36169691Skanint twl_is_6025(device_t dev); 37169691Skanint twl_is_6030(device_t dev); 38169691Skan 39169691Skan#endif /* _TWL_H_ */ 40132720Skan