Changeset a06aa8b in buchla-emu for emu/all.h


Ignore:
Timestamp:
07/20/2017 02:34:09 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
b909777
Parents:
f996387
Message:

Added skeleton device files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/all.h

    rf996387 ra06aa8b  
     1/*
     2 *  Copyright (C) 2017 The Contributors
     3 *
     4 *  This program is free software: you can redistribute it and/or modify
     5 *  it under the terms of the GNU General Public License as published by
     6 *  the Free Software Foundation, either version 3 of the License, or (at
     7 *  your option) any later version.
     8 *
     9 *  This program is distributed in the hope that it will be useful, but
     10 *  WITHOUT ANY WARRANTY; without even the implied warranty of
     11 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
     12 *  General Public License for more details.
     13 *
     14 *  A copy of the GNU General Public License can be found in the file
     15 *  "gpl-v3.txt" in the top directory of this repository.
     16 */
     17
    118#include <stdbool.h>
    219#include <stddef.h>
     
    1734}
    1835
     36#define ARRAY_COUNT(_a) (int32_t)(sizeof (_a) / sizeof (_a)[0])
     37
     38extern bool sdl_verbose;
    1939extern bool cpu_verbose;
    20 extern bool sdl_verbose;
     40extern bool fpu_verbose;
     41extern bool vid_verbose;
     42extern bool tim_verbose;
     43extern bool lcd_verbose;
     44extern bool ser_verbose;
     45extern bool mid_verbose;
     46extern bool fdd_verbose;
     47extern bool snd_verbose;
     48extern bool led_verbose;
     49extern bool kbd_verbose;
    2150
    2251extern void sdl_init(void);
     
    2453
    2554extern void cpu_loop(void);
     55
     56extern void fpu_init(void);
     57extern void fpu_quit(void);
     58extern void fpu_exec(void);
     59extern uint32_t fpu_read(uint32_t off, int32_t sz);
     60extern void fpu_write(uint32_t off, int32_t sz, uint32_t val);
     61
     62extern void vid_init(void);
     63extern void vid_quit(void);
     64extern void vid_exec(void);
     65extern uint32_t vid_read(uint32_t off, int32_t sz);
     66extern void vid_write(uint32_t off, int32_t sz, uint32_t val);
     67
     68extern void tim_init(void);
     69extern void tim_quit(void);
     70extern void tim_exec(void);
     71extern uint32_t tim_read(uint32_t off, int32_t sz);
     72extern void tim_write(uint32_t off, int32_t sz, uint32_t val);
     73
     74extern void lcd_init(void);
     75extern void lcd_quit(void);
     76extern void lcd_exec(void);
     77extern uint32_t lcd_read(uint32_t off, int32_t sz);
     78extern void lcd_write(uint32_t off, int32_t sz, uint32_t val);
     79
     80extern void ser_init(void);
     81extern void ser_quit(void);
     82extern void ser_exec(void);
     83extern uint32_t ser_read(uint32_t off, int32_t sz);
     84extern void ser_write(uint32_t off, int32_t sz, uint32_t val);
     85
     86extern void mid_init(void);
     87extern void mid_quit(void);
     88extern void mid_exec(void);
     89extern uint32_t mid_read(uint32_t off, int32_t sz);
     90extern void mid_write(uint32_t off, int32_t sz, uint32_t val);
     91
     92extern void fdd_init(void);
     93extern void fdd_quit(void);
     94extern void fdd_exec(void);
     95extern uint32_t fdd_read(uint32_t off, int32_t sz);
     96extern void fdd_write(uint32_t off, int32_t sz, uint32_t val);
     97
     98extern void snd_init(void);
     99extern void snd_quit(void);
     100extern void snd_exec(void);
     101extern uint32_t snd_read(uint32_t off, int32_t sz);
     102extern void snd_write(uint32_t off, int32_t sz, uint32_t val);
     103
     104extern void led_init(void);
     105extern void led_quit(void);
     106extern void led_exec(void);
     107extern uint32_t led_read(uint32_t off, int32_t sz);
     108extern void led_write(uint32_t off, int32_t sz, uint32_t val);
     109
     110extern void kbd_init(void);
     111extern void kbd_quit(void);
     112extern void kbd_exec(void);
     113extern uint32_t kbd_read(uint32_t off, int32_t sz);
     114extern void kbd_write(uint32_t off, int32_t sz, uint32_t val);
Note: See TracChangeset for help on using the changeset viewer.