[BACK]Return to pxa2x0_i2c.h CVS log [TXT][DIR] Up to [local] / sys / arch / arm / xscale

Annotation of sys/arch/arm/xscale/pxa2x0_i2c.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: pxa2x0_i2c.h,v 1.2 2005/05/26 03:52:07 pascoe Exp $   */
        !             2:
        !             3: /*
        !             4:  * Copyright (c) 2005 Christopher Pascoe <pascoe@openbsd.org>
        !             5:  *
        !             6:  * Permission to use, copy, modify, and distribute this software for any
        !             7:  * purpose with or without fee is hereby granted, provided that the above
        !             8:  * copyright notice and this permission notice appear in all copies.
        !             9:  *
        !            10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
        !            11:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
        !            12:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
        !            13:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
        !            14:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
        !            15:  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
        !            16:  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
        !            17:  */
        !            18:
        !            19: #ifndef _PXA2X0_I2C_H_
        !            20: #define _PXA2X0_I2C_H_
        !            21:
        !            22: #include <machine/bus.h>
        !            23:
        !            24: struct pxa2x0_i2c_softc {
        !            25:        struct device sc_dev;
        !            26:        bus_space_tag_t sc_iot;
        !            27:        bus_space_handle_t sc_ioh;
        !            28:        bus_size_t sc_size;
        !            29: };
        !            30:
        !            31: int    pxa2x0_i2c_attach_sub(struct pxa2x0_i2c_softc *);
        !            32: int    pxa2x0_i2c_detach_sub(struct pxa2x0_i2c_softc *);
        !            33: void   pxa2x0_i2c_init(struct pxa2x0_i2c_softc *);
        !            34: void   pxa2x0_i2c_open(struct pxa2x0_i2c_softc *);
        !            35: void   pxa2x0_i2c_close(struct pxa2x0_i2c_softc *);
        !            36: int    pxa2x0_i2c_read(struct pxa2x0_i2c_softc *sc, u_char, u_char *);
        !            37: int    pxa2x0_i2c_write(struct pxa2x0_i2c_softc *, u_char, u_char);
        !            38: int    pxa2x0_i2c_write_2(struct pxa2x0_i2c_softc *, u_char, u_short);
        !            39:
        !            40: #endif

CVSweb