#include <stdio.h>
#include <libarch/ddi.h>
#include <ddi.h>
#include <ipc/bd.h>
#include <async.h>
#include <as.h>
#include <fibril_synch.h>
#include <devmap.h>
#include <sys/types.h>
#include <errno.h>
#include <macros.h>
#include <task.h>
Go to the source code of this file.
Data Structures | |
struct | gxe_bd_t |
Defines | |
#define | NAME "gxe_bd" |
#define | NAMESPACE "bd" |
Enumerations | |
enum | |
enum | |
enum | |
Functions | |
static void | gxe_bd_connection (ipc_callid_t iid, ipc_call_t *icall) |
static int | gxe_bd_init (void) |
static int | gxe_bd_read_block (int disk_id, uint64_t ba, void *buf) |
Read a block from the device. | |
static int | gxe_bd_read_blocks (int disk_id, uint64_t ba, unsigned cnt, void *buf) |
Read multiple blocks from the device. | |
static int | gxe_bd_write_block (int disk_id, uint64_t ba, const void *buf) |
Write a block to the device. | |
static int | gxe_bd_write_blocks (int disk_id, uint64_t ba, unsigned cnt, const void *buf) |
Write multiple blocks to the device. | |
int | main (int argc, char **argv) |
Variables | |
static const size_t | block_size = 512 |
static size_t | comm_size |
static gxe_bd_t * | dev |
static fibril_mutex_t | dev_lock [MAX_DISKS] |
static uintptr_t | dev_physical = 0x13000000 |
static devmap_handle_t | devmap_handle [MAX_DISKS] |
Definition in file gxe_bd.c.