L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
vbus_mcspi.h
1/*
2 * (c) 2009 Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
4 *
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
8 */
9#pragma once
10
11#include <l4/sys/compiler.h>
12#include <l4/sys/types.h>
13#include <l4/vbus/vbus_types.h>
14
16
17int L4_CV
18l4vbus_mcspi_read(l4_cap_idx_t vbus, l4vbus_device_handle_t handle,
19 unsigned channel, l4_umword_t *value);
20
21int L4_CV
22l4vbus_mcspi_write(l4_cap_idx_t vbus, l4vbus_device_handle_t handle,
23 unsigned channel, l4_umword_t value);
24
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:51
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:359
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:199
#define L4_CV
Define calling convention.
Definition linkage.h:44
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:196
Common L4 ABI Data Types.
This header file contains descriptions of vbus related data types and constants.
l4_mword_t l4vbus_device_handle_t
Device handle for a device on the vbus.
Definition vbus_types.h:20