#include "tape.h"
#include "ge.h"
#include "connector34.h"
#include "log.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
|
| static int | tape_claims (void *opaque, struct std_unitname un) |
| |
| static long | record_len (struct tape_ctx *t, size_t pos) |
| |
| static std_reaction | tape_command (struct ge *ge, void *opaque, struct std_unitname un, uint8_t order) |
| |
| static std_reaction | tape_transfer (struct ge *ge, void *opaque, struct std_unitname un, int dir, uint8_t *buf, uint16_t *len, uint16_t cap) |
| |
| int | tape_register (struct ge *ge, const char *image_path, uint8_t connector, uint8_t unit) |
| |
◆ TAPE_IMAGE_MAX
| #define TAPE_IMAGE_MAX (1u << 20) /* 1 MiB reel image cap */ |
◆ tape_order
| Enumerator |
|---|
| TAPE_ORD_READ | |
| TAPE_ORD_WRITE | |
| TAPE_ORD_REWIND | |
| TAPE_ORD_BACKSPACE | |
| TAPE_ORD_FORWARD | |
| TAPE_ORD_ERASE | |
| TAPE_ORD_WTM | |
Definition at line 31 of file tape.c.
◆ record_len()
| static long record_len |
( |
struct tape_ctx * |
t, |
|
|
size_t |
pos |
|
) |
| |
|
static |
◆ tape_claims()
| static int tape_claims |
( |
void * |
opaque, |
|
|
struct std_unitname |
un |
|
) |
| |
|
static |
◆ tape_command()
◆ tape_register()
| int tape_register |
( |
struct ge * |
ge, |
|
|
const char * |
image_path, |
|
|
uint8_t |
connector, |
|
|
uint8_t |
unit |
|
) |
| |
◆ tape_transfer()
| static std_reaction tape_transfer |
( |
struct ge * |
ge, |
|
|
void * |
opaque, |
|
|
struct std_unitname |
un, |
|
|
int |
dir, |
|
|
uint8_t * |
buf, |
|
|
uint16_t * |
len, |
|
|
uint16_t |
cap |
|
) |
| |
|
static |