diff options
author | PaulK <contact@paulk.fr> | 2012-02-03 20:21:36 +0100 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2012-02-03 20:21:36 +0100 |
commit | 1789f2ac0766851f078c754fe31cb87a6f013184 (patch) | |
tree | eff2fb521bcaea6b67771e95cb3849e4fd156761 /samsung-ipc/ipc_devices.h | |
parent | a1de0dcad9e1bcf8d9293eefb601b05a18fc7c9b (diff) | |
download | hardware_replicant_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.gz hardware_replicant_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.bz2 hardware_replicant_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.zip |
Modified ipc devices handling to use a table and permit explicit device name
Diffstat (limited to 'samsung-ipc/ipc_devices.h')
-rw-r--r-- | samsung-ipc/ipc_devices.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/samsung-ipc/ipc_devices.h b/samsung-ipc/ipc_devices.h new file mode 100644 index 0000000..baddb76 --- /dev/null +++ b/samsung-ipc/ipc_devices.h @@ -0,0 +1,57 @@ +/** + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2012 Paul Kocialkowski <contact@paulk.fr> + * + * libsamsung-ipc is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libsamsung-ipc is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef __IPC_DEVICES_H__ +#define __IPC_DEVICES_H__ + +#include <radio.h> + +struct ipc_device_desc { + char *name; + char *board_name; + + struct ipc_handlers *handlers; + struct ipc_ops *fmt_ops; + struct ipc_ops *rfs_ops; +}; + +extern struct ipc_device_desc ipc_devices[]; +extern int ipc_devices_count; + +// h1 + +extern struct ipc_handlers h1_default_handlers; +extern struct ipc_ops h1_fmt_ops; +extern struct ipc_ops h1_rfs_ops; + +// crespo + +extern struct ipc_handlers crespo_default_handlers; +extern struct ipc_ops crespo_fmt_ops; +extern struct ipc_ops crespo_rfs_ops; + +// aries +extern struct ipc_handlers aries_default_handlers; +extern struct ipc_ops aries_fmt_ops; +extern struct ipc_ops aries_rfs_ops; + +#endif + +// vim:ts=4:sw=4:expandtab |