Lines Matching refs:SB16State

53 OBJECT_DECLARE_SIMPLE_TYPE(SB16State, SB16)
55 struct SB16State { struct
158 static void log_dsp (SB16State *dsp)
172 static void speaker (SB16State *s, int on) in speaker()
178 static void control (SB16State *s, int hold) in control()
199 SB16State *s = opaque; in aux_timer()
207 static void continue_dma8 (SB16State *s) in continue_dma8()
249 static void dma_cmd8 (SB16State *s, int mask, int dma_len) in dma_cmd8()
301 static void dma_cmd (SB16State *s, uint8_t cmd, uint8_t d0, int dma_len) in dma_cmd()
396 static inline void dsp_out_data (SB16State *s, uint8_t val) in dsp_out_data()
404 static inline uint8_t dsp_get_data (SB16State *s) in dsp_get_data()
415 static void command (SB16State *s, uint8_t cmd) in command()
673 static uint16_t dsp_get_lohi (SB16State *s) in dsp_get_lohi()
680 static uint16_t dsp_get_hilo (SB16State *s) in dsp_get_hilo()
687 static void complete (SB16State *s) in complete()
869 static void legacy_reset (SB16State *s) in legacy_reset()
896 static void reset (SB16State *s) in reset()
924 SB16State *s = opaque; in dsp_write()
1002 SB16State *s = opaque; in dsp_read()
1069 static void reset_mixer (SB16State *s) in reset_mixer()
1101 SB16State *s = opaque; in mixer_write_indexb()
1108 SB16State *s = opaque; in mixer_write_datab()
1163 SB16State *s = opaque; in mixer_read()
1178 static int write_audio (SB16State *s, int nchan, int dma_pos, in write_audio()
1216 SB16State *s = opaque; in SB_read_DMA()
1282 SB16State *s = opaque; in SB_audio_callback()
1288 SB16State *s = opaque; in sb16_post_load()
1333 VMSTATE_INT32 (in_index, SB16State),
1334 VMSTATE_INT32 (out_data_len, SB16State),
1335 VMSTATE_INT32 (fmt_stereo, SB16State),
1336 VMSTATE_INT32 (fmt_signed, SB16State),
1337 VMSTATE_INT32 (fmt_bits, SB16State),
1338 VMSTATE_UINT32 (fmt, SB16State),
1339 VMSTATE_INT32 (dma_auto, SB16State),
1340 VMSTATE_INT32 (block_size, SB16State),
1341 VMSTATE_INT32 (fifo, SB16State),
1342 VMSTATE_INT32 (freq, SB16State),
1343 VMSTATE_INT32 (time_const, SB16State),
1344 VMSTATE_INT32 (speaker, SB16State),
1345 VMSTATE_INT32 (needed_bytes, SB16State),
1346 VMSTATE_INT32 (cmd, SB16State),
1347 VMSTATE_INT32 (use_hdma, SB16State),
1348 VMSTATE_INT32 (highspeed, SB16State),
1349 VMSTATE_INT32 (can_write, SB16State),
1350 VMSTATE_INT32 (v2x6, SB16State),
1352 VMSTATE_UINT8 (csp_param, SB16State),
1353 VMSTATE_UINT8 (csp_value, SB16State),
1354 VMSTATE_UINT8 (csp_mode, SB16State),
1355 VMSTATE_UINT8 (csp_param, SB16State),
1356 VMSTATE_BUFFER (csp_regs, SB16State),
1357 VMSTATE_UINT8 (csp_index, SB16State),
1358 VMSTATE_BUFFER (csp_reg83, SB16State),
1359 VMSTATE_INT32 (csp_reg83r, SB16State),
1360 VMSTATE_INT32 (csp_reg83w, SB16State),
1362 VMSTATE_BUFFER (in2_data, SB16State),
1363 VMSTATE_BUFFER (out_data, SB16State),
1364 VMSTATE_UINT8 (test_reg, SB16State),
1365 VMSTATE_UINT8 (last_read_byte, SB16State),
1367 VMSTATE_INT32 (nzero, SB16State),
1368 VMSTATE_INT32 (left_till_irq, SB16State),
1369 VMSTATE_INT32 (dma_running, SB16State),
1370 VMSTATE_INT32 (bytes_per_second, SB16State),
1371 VMSTATE_INT32 (align, SB16State),
1373 VMSTATE_INT32 (mixer_nreg, SB16State),
1374 VMSTATE_BUFFER (mixer_regs, SB16State),
1393 SB16State *s = SB16 (obj); in sb16_initfn()
1402 SB16State *s = SB16 (dev); in sb16_realizefn()
1444 DEFINE_AUDIO_PROPERTIES(SB16State, card),
1445 DEFINE_PROP_UINT32 ("version", SB16State, ver, 0x0405), /* 4.5 */
1446 DEFINE_PROP_UINT32 ("iobase", SB16State, port, 0x220),
1447 DEFINE_PROP_UINT32 ("irq", SB16State, irq, 5),
1448 DEFINE_PROP_UINT32 ("dma", SB16State, dma, 1),
1449 DEFINE_PROP_UINT32 ("dma16", SB16State, hdma, 5),
1467 .instance_size = sizeof (SB16State),