/[qemu]/qemu/vl.h
ViewVC logotype

Diff of /qemu/vl.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bellard, Sun Jul 6 17:15:21 2003 UTC revision 1.3 by bellard, Sun Aug 10 21:52:11 2003 UTC
# Line 25  Line 25 
25  #define VL_H  #define VL_H
26    
27  /* vl.c */  /* vl.c */
28    struct CPUX86State;
29    extern int reset_requested;
30    
31    typedef void (IOPortWriteFunc)(struct CPUX86State *env, uint32_t address, uint32_t data);
32    typedef uint32_t (IOPortReadFunc)(struct CPUX86State *env, uint32_t address);
33    
34  void *get_mmap_addr(unsigned long size);  void *get_mmap_addr(unsigned long size);
35    int register_ioport_read(int start, int length, IOPortReadFunc *func, int size);
36    int register_ioport_write(int start, int length, IOPortWriteFunc *func, int size);
37    
38    void kbd_put_keycode(int keycode);
39    
40    #define MOUSE_EVENT_LBUTTON 0x01
41    #define MOUSE_EVENT_RBUTTON 0x02
42    #define MOUSE_EVENT_MBUTTON 0x04
43    void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
44    
45  /* block.c */  /* block.c */
46  typedef struct BlockDriverState BlockDriverState;  typedef struct BlockDriverState BlockDriverState;
# Line 52  struct cow_header_v2 { Line 67  struct cow_header_v2 {
67      uint32_t sectorsize;      uint32_t sectorsize;
68  };  };
69    
70    /* vga.c */
71    
72    #define VGA_RAM_SIZE (8192 * 1024)
73    
74    typedef struct DisplayState {
75        uint8_t *data;
76        int linesize;
77        int depth;
78        void (*dpy_update)(struct DisplayState *s, int x, int y, int w, int h);
79        void (*dpy_resize)(struct DisplayState *s, int w, int h);
80        void (*dpy_refresh)(struct DisplayState *s);
81    } DisplayState;
82    
83    static inline void dpy_update(DisplayState *s, int x, int y, int w, int h)
84    {
85        s->dpy_update(s, x, y, w, h);
86    }
87    
88    static inline void dpy_resize(DisplayState *s, int w, int h)
89    {
90        s->dpy_resize(s, w, h);
91    }
92    
93    int vga_init(DisplayState *ds, uint8_t *vga_ram_base,
94                 unsigned long vga_ram_offset, int vga_ram_size);
95    void vga_update_display(void);
96    
97    /* sdl.c */
98    void sdl_display_init(DisplayState *ds);
99    
100  #endif /* VL_H */  #endif /* VL_H */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26