1*7ab14c5aSPhilippe Mathieu-Daudé /* 2*7ab14c5aSPhilippe Mathieu-Daudé * This program is free software; you can redistribute it and/or modify it 3*7ab14c5aSPhilippe Mathieu-Daudé * under the terms and conditions of the GNU General Public License, 4*7ab14c5aSPhilippe Mathieu-Daudé * version 2 or later, as published by the Free Software Foundation. 5*7ab14c5aSPhilippe Mathieu-Daudé * 6*7ab14c5aSPhilippe Mathieu-Daudé * This program is distributed in the hope it will be useful, but WITHOUT 7*7ab14c5aSPhilippe Mathieu-Daudé * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 8*7ab14c5aSPhilippe Mathieu-Daudé * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 9*7ab14c5aSPhilippe Mathieu-Daudé * more details. 10*7ab14c5aSPhilippe Mathieu-Daudé * 11*7ab14c5aSPhilippe Mathieu-Daudé * You should have received a copy of the GNU General Public License along with 12*7ab14c5aSPhilippe Mathieu-Daudé * this program. If not, see <http://www.gnu.org/licenses/>. 13*7ab14c5aSPhilippe Mathieu-Daudé */ 14*7ab14c5aSPhilippe Mathieu-Daudé #ifndef HW_DAC_WM8750_H 15*7ab14c5aSPhilippe Mathieu-Daudé #define HW_DAC_WM8750_H 16*7ab14c5aSPhilippe Mathieu-Daudé 17*7ab14c5aSPhilippe Mathieu-Daudé #include "hw/hw.h" 18*7ab14c5aSPhilippe Mathieu-Daudé 19*7ab14c5aSPhilippe Mathieu-Daudé #define TYPE_WM8750 "wm8750" 20*7ab14c5aSPhilippe Mathieu-Daudé 21*7ab14c5aSPhilippe Mathieu-Daudé typedef void data_req_cb(void *opaque, int free_out, int free_in); 22*7ab14c5aSPhilippe Mathieu-Daudé 23*7ab14c5aSPhilippe Mathieu-Daudé void wm8750_data_req_set(DeviceState *dev, data_req_cb *data_req, void *opaque); 24*7ab14c5aSPhilippe Mathieu-Daudé void wm8750_dac_dat(void *opaque, uint32_t sample); 25*7ab14c5aSPhilippe Mathieu-Daudé uint32_t wm8750_adc_dat(void *opaque); 26*7ab14c5aSPhilippe Mathieu-Daudé void *wm8750_dac_buffer(void *opaque, int samples); 27*7ab14c5aSPhilippe Mathieu-Daudé void wm8750_dac_commit(void *opaque); 28*7ab14c5aSPhilippe Mathieu-Daudé void wm8750_set_bclk_in(void *opaque, int new_hz); 29*7ab14c5aSPhilippe Mathieu-Daudé 30*7ab14c5aSPhilippe Mathieu-Daudé #endif 31