[BACK]Return to hostiovar.h CVS log [TXT][DIR] Up to [local] / prex-old / dev / arm / cats

Annotation of prex-old/dev/arm/cats/hostiovar.h, Revision 1.1

1.1     ! nbrk        1: /*
        !             2:  * $Id$
        !             3:  */
        !             4: #ifndef _DEV_ARM_CATS_HOSTIOVAR_H_
        !             5: #define _DEV_ARM_CATS_HOSTIOVAR_H_
        !             6: /*
        !             7:  * bus_space glue.
        !             8:  */
        !             9: int    hostio_map(void *cookie, bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *ioh);
        !            10: uint8_t        hostio_read_1(void *cookie, bus_space_handle_t ioh, bus_size_t off);
        !            11: uint16_t       hostio_read_2(void *cookie, bus_space_handle_t ioh, bus_size_t off);
        !            12: uint32_t       hostio_read_4(void *cookie, bus_space_handle_t ioh, bus_size_t off);
        !            13: void   hostio_write_1(void *cookie, bus_space_handle_t ioh, bus_size_t off, uint8_t data);
        !            14: void   hostio_write_2(void *cookie, bus_space_handle_t ioh, bus_size_t off, uint16_t data);
        !            15: void   hostio_write_4(void *cookie, bus_space_handle_t ioh, bus_size_t off, uint32_t data);
        !            16:
        !            17: /*
        !            18:  * Our tag.
        !            19:  * One and only.
        !            20:  */
        !            21: struct bus_space hostio_bs_tag = {
        !            22:        NULL, /* cookie */
        !            23:        hostio_map,
        !            24:        NULL, /* unmap */
        !            25:        NULL, /* subregion */
        !            26:        NULL, /* barrier */
        !            27:        hostio_read_1,
        !            28:        hostio_read_2,
        !            29:        hostio_read_4,
        !            30:        hostio_write_1,
        !            31:        hostio_write_2,
        !            32:        hostio_write_4,
        !            33: };
        !            34:
        !            35: struct hostio_softc {
        !            36:        bus_space_tag_t sc_iot;
        !            37:
        !            38: };
        !            39:
        !            40: #endif /* !_DEV_ARM_CATS_HOSTIOVAR_H_ */

CVSweb