diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-13 01:46:15 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-13 01:46:15 +0000 |
commit | 275033239681346347766ac3712e3af792a0304f (patch) | |
tree | 5b5a392ab0c2d472577a297186ff7f74487e29b5 /vl.h | |
parent | f115e911d70dedbbab90efe589b267bf53178f10 (diff) |
Soundblaster 16 support (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@455 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -27,6 +27,7 @@ /* vl.c */ struct CPUX86State; extern int reset_requested; +extern int64_t ticks_per_sec; typedef void (IOPortWriteFunc)(struct CPUX86State *env, uint32_t address, uint32_t data); typedef uint32_t (IOPortReadFunc)(struct CPUX86State *env, uint32_t address); @@ -35,6 +36,7 @@ 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); +int64_t cpu_get_ticks(void); void kbd_put_keycode(int keycode); @@ -107,4 +109,39 @@ 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); +/* oss.c */ +typedef enum { + AUD_FMT_U8, + AUD_FMT_S8, + AUD_FMT_U16, + AUD_FMT_S16 +} audfmt_e; + +void AUD_open (int rfreq, int rnchannels, audfmt_e rfmt); +void AUD_reset (int rfreq, int rnchannels, audfmt_e rfmt); +int AUD_write (void *in_buf, int size); +void AUD_run (void); +void AUD_adjust_estimate (int _leftover); +int AUD_get_free (void); +int AUD_get_live (void); +int AUD_get_buffer_size (void); +void AUD_init (void); + +/* dma.c */ +typedef int (*DMA_read_handler) (uint32_t addr, int size, int *irq); +typedef int (*DMA_misc_handler) (int); + +int DMA_get_channel_mode (int nchan); +void DMA_hold_DREQ (int nchan); +void DMA_release_DREQ (int nchan); +void DMA_run (void); +void DMA_init (void); +void DMA_register_channel (int nchan, + DMA_read_handler read_handler, + DMA_misc_handler misc_handler); + +/* sb16.c */ +void SB16_run (void); +void SB16_init (void); + #endif /* VL_H */ |