aboutsummaryrefslogtreecommitdiff
path: root/sim/txvu/device.h
blob: 641cd293e98ff6d5ad3f7902ccca85d8f210b1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*  Copyright (C) 1998, Cygnus Solutions

    */

#ifndef DEVICE_H_
#define DEVICE_H_

#include "sim-main.h"

typedef int io_read_buffer_callback_type (device *, void *, int,
                        address_word, unsigned ,
                        sim_cpu *, sim_cia);

typedef int io_write_buffer_callback_type (device *, const void *, int,
                        address_word, unsigned ,
                        sim_cpu *, sim_cia);

struct _device {
    char *name;
    io_read_buffer_callback_type *io_read_buffer_callback;
    io_write_buffer_callback_type *io_write_buffer_callback;
};

#endif