smbus.h revision 189580
155549Sphantom/*-
255549Sphantom * Copyright (c) 1998 Nicolas Souchu
355549Sphantom * All rights reserved.
455549Sphantom *
555549Sphantom * Redistribution and use in source and binary forms, with or without
655549Sphantom * modification, are permitted provided that the following conditions
755549Sphantom * are met:
855549Sphantom * 1. Redistributions of source code must retain the above copyright
955549Sphantom *    notice, this list of conditions and the following disclaimer.
1055549Sphantom * 2. Redistributions in binary form must reproduce the above copyright
1155549Sphantom *    notice, this list of conditions and the following disclaimer in the
1255549Sphantom *    documentation and/or other materials provided with the distribution.
1355549Sphantom *
1455549Sphantom * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1555549Sphantom * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1655549Sphantom * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1755549Sphantom * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1855549Sphantom * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1955549Sphantom * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2055549Sphantom * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2155549Sphantom * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2255549Sphantom * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2355549Sphantom * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2455549Sphantom * SUCH DAMAGE.
25141580Sru *
2655549Sphantom * $FreeBSD: head/sys/dev/smbus/smbus.h 189580 2009-03-09 13:30:00Z imp $
2755549Sphantom *
2855549Sphantom */
2979538Sru#ifndef __SMBUS_H
3055549Sphantom#define __SMBUS_H
3155549Sphantom
3255549Sphantomstruct smbus_softc {
3355549Sphantom	device_t owner;		/* smbus owner device structure */
3484306Sru	struct mtx lock;
3555549Sphantom};
3655549Sphantom
3755549Sphantomvoid smbus_generic_intr(device_t dev, u_char devaddr, char low, char high, int err);
3855549Sphantom
3955549Sphantom#endif
4055549Sphantom