X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/ea6971b809eae9ca238cd859316fdcef2839b002..b35fcb2f65a9c2dd17faae5b513eecca8032461b:/include/z80-if.h diff --git a/include/z80-if.h b/include/z80-if.h index d4ee57b..d5a5f56 100644 --- a/include/z80-if.h +++ b/include/z80-if.h @@ -1,3 +1,9 @@ +/* + * (C) Copyright 2014 Leo C. + * + * SPDX-License-Identifier: GPL-2.0 + */ +#include "common.h" #define ZST_ACQUIRED 0x01 #define ZST_RUNNING 0x02 @@ -20,6 +26,9 @@ typedef enum { typedef enum {LOW, HIGH} level_t; + +void z80_bus_request_or_exit(void); + zstate_t z80_bus_state(void); zstate_t z80_bus_cmd(bus_cmd_t cmd); void z80_setup_bus(void); @@ -38,7 +47,7 @@ void z80_read_block (uint8_t *dest, uint32_t src, size_t length); typedef enum fifo_t { fifo_msgin, fifo_msgout, - fifo_conout, fifo_conin, + fifo_conin, fifo_conout, NUM_FIFOS } fifo_t;