1 /* 2 * ES1370 Haiku Driver for ES1370 audio 3 * 4 * Copyright 2002-2007, Haiku, Inc. 5 * Distributed under the terms of the MIT License. 6 * 7 * Authors: 8 * Marcus Overhagen, marcus@overhagen.de 9 * Jerome Duval, jerome.duval@free.fr 10 */ 11 #ifndef _IO_H_ 12 #define _IO_H_ 13 14 #include "config.h" 15 16 uint8 es1370_reg_read_8(device_config *config, int regno); 17 uint16 es1370_reg_read_16(device_config *config, int regno); 18 uint32 es1370_reg_read_32(device_config *config, int regno); 19 20 void es1370_reg_write_8(device_config *config, int regno, uint8 value); 21 void es1370_reg_write_16(device_config *config, int regno, uint16 value); 22 void es1370_reg_write_32(device_config *config, int regno, uint32 value); 23 24 uint16 es1370_codec_read(device_config *config, int regno); 25 void es1370_codec_write(device_config *config, int regno, uint16 value); 26 27 #endif 28