1#ifndef _DRIVER_IO_H
2#define _DRIVER_IO_H
3
4#include <unistd.h>
5#include <fcntl.h>
6#include <Drivers.h>
7#include "OldSoundDriver.h"
8
9#define DRIVER_GET_PARAMS(x...)							ioctl( fd, SOUND_GET_PARAMS, x )
10#define DRIVER_SET_PARAMS(x...)							ioctl( fd, SOUND_SET_PARAMS, x )
11#define DRIVER_SET_PLAYBACK_COMPLETION_SEM(x...)		ioctl( fd, SOUND_SET_PLAYBACK_COMPLETION_SEM, x )
12#define DRIVER_SET_CAPTURE_COMPLETION_SEM(x...)			ioctl( fd, SOUND_SET_CAPTURE_COMPLETION_SEM, x )
13#define DRIVER_WRITE_BUFFER(x...)						ioctl( fd, SOUND_WRITE_BUFFER, x )
14#define DRIVER_READ_BUFFER(x...)						ioctl( fd, SOUND_READ_BUFFER, x )
15#define DRIVER_LOCK_FOR_DMA(x...)						ioctl( fd, SOUND_LOCK_FOR_DMA, x )
16
17#endif
18