Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes...
[pandora-kernel.git] / drivers / staging / meilhaus / medummy.h
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
19 typedef 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
31 me_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