aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/meilhaus/medummy.h
diff options
context:
space:
mode:
authorDavid Kiliani <mail@davidkiliani.de>2008-10-31 19:39:12 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 16:52:29 -0500
commit3fedd14818592016f7ffd84dfe134881b3896ecf (patch)
tree22574873dc7d844d4cc33d04f7e6ba03f23c639e /drivers/staging/meilhaus/medummy.h
parent5ec5ec78060481e6a0cecc06ab0c6ec8b213ec80 (diff)
Staging: Add the Meilhaus ME-IDS driver package
Originally written by Guenter Gebhardt <g.gebhardt@meilhaus.de> and Krzysztof Gantzke <k.gantzke@meilhaus.de> This is the drv/lnx/mod directory of ME-IDS 1.2.9 tarball with some files from drv/lnx/include. Signed-off-by: David Kiliani <mail@davidkiliani.de> Cc: Guenter Gebhardt <g.gebhardt@meilhaus.de> Cc: Krzysztof Gantzke <k.gantzke@meilhaus.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/meilhaus/medummy.h')
-rw-r--r--drivers/staging/meilhaus/medummy.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/staging/meilhaus/medummy.h b/drivers/staging/meilhaus/medummy.h
new file mode 100644
index 00000000000..717000ff6c1
--- /dev/null
+++ b/drivers/staging/meilhaus/medummy.h
@@ -0,0 +1,40 @@
1/*
2 * Copyright (C) 2005 Meilhaus Electronic GmbH (support@meilhaus.de)
3 *
4 * Source File : medummy.h
5 * Author : GG (Guenter Gebhardt) <g.gebhardt@meilhaus.de>
6 */
7
8#ifndef _MEDUMMY_H_
9#define _MEDUMMY_H_
10
11#include "metypes.h"
12#include "medefines.h"
13#include "medevice.h"
14
15#ifdef __KERNEL__
16
17#define MEDUMMY_MAGIC_NUMBER 0xDDDD
18
19typedef struct medummy_device {
20 me_device_t base; /**< The Meilhaus device base class. */
21// int magic; /**< The magic number of the structure */
22 unsigned short vendor_id; /**< Vendor ID */
23 unsigned short device_id; /**< Device ID */
24 unsigned int serial_no; /**< Serial number of the device */
25 int bus_type; /**< Bus type */
26 int bus_no; /**< Bus number */
27 int dev_no; /**< Device number */
28 int func_no; /**< Function number */
29} medummy_device_t;
30
31me_device_t *medummy_constructor(unsigned short vendor_id,
32 unsigned short device_id,
33 unsigned int serial_no,
34 int bus_type,
35 int bus_no,
36 int dev_no,
37 int func_no) __attribute__ ((weak));
38
39#endif
40#endif