moved IDE driver to ide.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@445 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
36b486bb74
commit
5391d80669
@ -176,7 +176,7 @@ ifeq ($(ARCH),alpha)
|
||||
endif
|
||||
|
||||
# must use static linking to avoid leaving stuff in virtual address space
|
||||
VL_OBJS=vl.o block.o vga.o
|
||||
VL_OBJS=vl.o block.o ide.o vga.o
|
||||
ifdef CONFIG_SDL
|
||||
VL_OBJS+=sdl.o
|
||||
SDL_LIBS+=-L/usr/X11R6/lib -lX11 -lXext -lXv -ldl -lm
|
||||
|
10
vl.h
10
vl.h
@ -34,6 +34,7 @@ typedef uint32_t (IOPortReadFunc)(struct CPUX86State *env, uint32_t address);
|
||||
void *get_mmap_addr(unsigned long size);
|
||||
int register_ioport_read(int start, int length, IOPortReadFunc *func, int size);
|
||||
int register_ioport_write(int start, int length, IOPortWriteFunc *func, int size);
|
||||
void pic_set_irq(int irq, int level);
|
||||
|
||||
void kbd_put_keycode(int keycode);
|
||||
|
||||
@ -97,4 +98,13 @@ void vga_update_display(void);
|
||||
/* sdl.c */
|
||||
void sdl_display_init(DisplayState *ds);
|
||||
|
||||
/* ide.c */
|
||||
#define MAX_DISKS 4
|
||||
|
||||
extern BlockDriverState *bs_table[MAX_DISKS];
|
||||
|
||||
void ide_init(void);
|
||||
void ide_set_geometry(int n, int cyls, int heads, int secs);
|
||||
void ide_set_cdrom(int n, int is_cdrom);
|
||||
|
||||
#endif /* VL_H */
|
||||
|
Loading…
Reference in New Issue
Block a user