cs4231a.c (760df0d121a836dcbf3726b80b820115aef21b30) cs4231a.c (6497a63679dd8e0433acd0325257e49c6525c2a1)
1/*
2 * QEMU Crystal CS4231 audio chip emulation
3 *
4 * Copyright (c) 2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 669 unchanged lines hidden (view full) ---

678 k = ISADMA_GET_CLASS(s->isa_dma);
679 k->register_channel(s->isa_dma, s->dma, cs_dma_read, s);
680
681 isa_register_ioport (d, &s->ioports, s->port);
682
683 AUD_register_card ("cs4231a", &s->card);
684}
685
1/*
2 * QEMU Crystal CS4231 audio chip emulation
3 *
4 * Copyright (c) 2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 669 unchanged lines hidden (view full) ---

678 k = ISADMA_GET_CLASS(s->isa_dma);
679 k->register_channel(s->isa_dma, s->dma, cs_dma_read, s);
680
681 isa_register_ioport (d, &s->ioports, s->port);
682
683 AUD_register_card ("cs4231a", &s->card);
684}
685
686static int cs4231a_init (ISABus *bus)
687{
688 isa_create_simple (bus, TYPE_CS4231A);
689 return 0;
690}
691
692static Property cs4231a_properties[] = {
693 DEFINE_AUDIO_PROPERTIES(CSState, card),
694 DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
695 DEFINE_PROP_UINT32 ("irq", CSState, irq, 9),
696 DEFINE_PROP_UINT32 ("dma", CSState, dma, 3),
697 DEFINE_PROP_END_OF_LIST (),
698};
699

--- 15 unchanged lines hidden (view full) ---

715 .instance_size = sizeof (CSState),
716 .instance_init = cs4231a_initfn,
717 .class_init = cs4231a_class_initfn,
718};
719
720static void cs4231a_register_types (void)
721{
722 type_register_static (&cs4231a_info);
686static Property cs4231a_properties[] = {
687 DEFINE_AUDIO_PROPERTIES(CSState, card),
688 DEFINE_PROP_UINT32 ("iobase", CSState, port, 0x534),
689 DEFINE_PROP_UINT32 ("irq", CSState, irq, 9),
690 DEFINE_PROP_UINT32 ("dma", CSState, dma, 3),
691 DEFINE_PROP_END_OF_LIST (),
692};
693

--- 15 unchanged lines hidden (view full) ---

709 .instance_size = sizeof (CSState),
710 .instance_init = cs4231a_initfn,
711 .class_init = cs4231a_class_initfn,
712};
713
714static void cs4231a_register_types (void)
715{
716 type_register_static (&cs4231a_info);
723 isa_register_soundhw("cs4231a", "CS4231A", cs4231a_init);
717 deprecated_register_soundhw("cs4231a", "CS4231A", 1, TYPE_CS4231A);
724}
725
726type_init (cs4231a_register_types)
718}
719
720type_init (cs4231a_register_types)