From 1789f2ac0766851f078c754fe31cb87a6f013184 Mon Sep 17 00:00:00 2001 From: PaulK Date: Fri, 3 Feb 2012 20:21:36 +0100 Subject: Modified ipc devices handling to use a table and permit explicit device name --- samsung-ipc/ipc_devices.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 samsung-ipc/ipc_devices.h (limited to 'samsung-ipc/ipc_devices.h') 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 + * + * 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 . + * + */ + +#ifndef __IPC_DEVICES_H__ +#define __IPC_DEVICES_H__ + +#include + +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 -- cgit v1.1