2010-06-29 06:49:29 +04:00
|
|
|
#ifndef HW_VT82C686_H
|
|
|
|
#define HW_VT82C686_H
|
|
|
|
|
2022-01-23 23:40:42 +03:00
|
|
|
#include "hw/pci/pci_device.h"
|
|
|
|
#include "audio/audio.h"
|
2021-10-15 04:06:20 +03:00
|
|
|
|
2021-01-02 13:43:35 +03:00
|
|
|
#define TYPE_VT82C686B_ISA "vt82c686b-isa"
|
2022-09-01 14:41:21 +03:00
|
|
|
#define TYPE_VT82C686B_USB_UHCI "vt82c686b-usb-uhci"
|
2021-03-25 16:50:39 +03:00
|
|
|
#define TYPE_VT8231_ISA "vt8231-isa"
|
2021-01-02 13:43:35 +03:00
|
|
|
#define TYPE_VIA_AC97 "via-ac97"
|
2022-09-01 14:41:19 +03:00
|
|
|
#define TYPE_VIA_IDE "via-ide"
|
2021-01-02 13:43:35 +03:00
|
|
|
#define TYPE_VIA_MC97 "via-mc97"
|
2018-03-09 01:39:40 +03:00
|
|
|
|
2022-01-23 23:40:42 +03:00
|
|
|
typedef struct {
|
|
|
|
uint8_t stat;
|
|
|
|
uint8_t type;
|
|
|
|
uint32_t base;
|
|
|
|
uint32_t curr;
|
|
|
|
uint32_t addr;
|
|
|
|
uint32_t clen;
|
|
|
|
} ViaAC97SGDChannel;
|
|
|
|
|
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(ViaAC97State, VIA_AC97);
|
|
|
|
|
|
|
|
struct ViaAC97State {
|
|
|
|
PCIDevice dev;
|
|
|
|
QEMUSoundCard card;
|
|
|
|
MemoryRegion sgd;
|
|
|
|
MemoryRegion fm;
|
|
|
|
MemoryRegion midi;
|
|
|
|
SWVoiceOut *vo;
|
|
|
|
ViaAC97SGDChannel aur;
|
|
|
|
uint16_t codec_regs[128];
|
|
|
|
uint32_t ac97_cmd;
|
|
|
|
};
|
|
|
|
|
2023-11-27 01:49:29 +03:00
|
|
|
void via_isa_set_irq(PCIDevice *d, int n, int level);
|
|
|
|
|
2010-06-29 06:49:29 +04:00
|
|
|
#endif
|