Annotation of sys/arch/arm/xscale/pxammcvar.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: pxammcvar.h,v 1.1 2007/03/18 20:53:10 uwe Exp $ */
! 2:
! 3: /*
! 4: * Copyright (c) 2007 Uwe Stuehler <uwe@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: #include <machine/bus.h>
! 20:
! 21: struct pxammc_tag {
! 22: void *cookie;
! 23: u_int32_t (*get_ocr)(void *);
! 24: int (*set_power)(void *, u_int32_t);
! 25: };
! 26:
! 27: struct pxammc_softc {
! 28: struct device sc_dev; /* base device */
! 29: struct pxammc_tag tag; /* attachment driver functions */
! 30: bus_space_tag_t sc_iot; /* register space tag */
! 31: bus_space_handle_t sc_ioh; /* register space handle */
! 32: struct device *sc_sdmmc; /* generic sdmmc bus device */
! 33: void *sc_card_ih; /* card interrupt handle */
! 34: void *sc_ih; /* MMC interrupt handle */
! 35: int sc_flags; /* driver state flags */
! 36: #define PMF_CARD_INITED 0x0001 /* card init sequence sent */
! 37: int sc_clkdiv; /* current clock divider */
! 38: struct sdmmc_command * volatile sc_cmd; /* command in progress */
! 39: };
! 40:
! 41: int pxammc_match(void);
! 42: void pxammc_attach(struct pxammc_softc *, void *);
CVSweb