Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Functions
cbmhostfs.c File Reference
#include "xemu/emutools.h"
#include "xemu/cbmhostfs.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <dirent.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
Include dependency graph for cbmhostfs.c:

Go to the source code of this file.

Data Structures

struct  hostfs_channels_st
 

Macros

#define DEBUG_HOSTFS   printf
 
#define WRITE_BUFFER_SIZE   256
 
#define READ_BUFFER_SIZE   256
 
#define SPEC_BUFFER_SIZE   4096
 
#define CBM_MAX_DIR_ENTRIES   144
 
#define NO_ERROR()   set_error(0, 0, 0, 0, NULL)
 
#define CBM_DIR_LOAD_ADDRESS   0x0401
 

Functions

void hostfs_init (const char *basedir, const char *subdir)
 
void hostfs_close_all (void)
 
void hostfs_flush_all (void)
 
Uint8 hostfs_read_reg0 (void)
 
void hostfs_write_reg0 (Uint8 data)
 
Uint8 hostfs_read_reg1 (void)
 
void hostfs_write_reg1 (Uint8 data)
 

Macro Definition Documentation

◆ CBM_DIR_LOAD_ADDRESS

#define CBM_DIR_LOAD_ADDRESS   0x0401

Definition at line 330 of file cbmhostfs.c.

◆ CBM_MAX_DIR_ENTRIES

#define CBM_MAX_DIR_ENTRIES   144

Definition at line 138 of file cbmhostfs.c.

◆ DEBUG_HOSTFS

#define DEBUG_HOSTFS   printf

Definition at line 33 of file cbmhostfs.c.

◆ NO_ERROR

#define NO_ERROR ( )    set_error(0, 0, 0, 0, NULL)

Definition at line 179 of file cbmhostfs.c.

◆ READ_BUFFER_SIZE

#define READ_BUFFER_SIZE   256

Definition at line 136 of file cbmhostfs.c.

◆ SPEC_BUFFER_SIZE

#define SPEC_BUFFER_SIZE   4096

Definition at line 137 of file cbmhostfs.c.

◆ WRITE_BUFFER_SIZE

#define WRITE_BUFFER_SIZE   256

Definition at line 135 of file cbmhostfs.c.

Function Documentation

◆ hostfs_close_all()

void hostfs_close_all ( void  )

Definition at line 262 of file cbmhostfs.c.

◆ hostfs_flush_all()

void hostfs_flush_all ( void  )

Definition at line 270 of file cbmhostfs.c.

◆ hostfs_init()

void hostfs_init ( const char *  basedir,
const char *  subdir 
)

Definition at line 183 of file cbmhostfs.c.

◆ hostfs_read_reg0()

Uint8 hostfs_read_reg0 ( void  )

Definition at line 617 of file cbmhostfs.c.

◆ hostfs_read_reg1()

Uint8 hostfs_read_reg1 ( void  )

Definition at line 669 of file cbmhostfs.c.

◆ hostfs_write_reg0()

void hostfs_write_reg0 ( Uint8  data)

Definition at line 625 of file cbmhostfs.c.

◆ hostfs_write_reg1()

void hostfs_write_reg1 ( Uint8  data)

Definition at line 720 of file cbmhostfs.c.