/* * Copyright (c) 2013, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #ifndef MMCHS2_H #define MMCHS2_H #include #include #include #include #include "mmchs_debug.h" #include "omap44xx_ctrlmod.h" #define DBUF_SIZE (10*4096) struct mmchs_driver_state { uint64_t level; iref_t iref; omap44xx_sysctrl_padconf_core_t ctrlmod; omap44xx_mmchs1_t mmchs; struct cm2_binding* cm2_binding; struct twl6030_binding* twl6030_binding; struct capref* caps; char dbuf[DBUF_SIZE]; }; void mmchs_init(struct mmchs_driver_state*); errval_t mmchs_read_block(struct mmchs_driver_state*, size_t block_nr, void *buffer); errval_t mmchs_write_block(struct mmchs_driver_state*, size_t block_nr, void *buffer); void mmchs_init_service(struct mmchs_driver_state*, iref_t* iref); #endif // MMCHS2_H