Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/meilhaus/medummy.h
David Kiliani 3fedd14818 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>
2009-01-06 13:52:29 -08:00

41 lines
1.1 KiB
C

/*
* Copyright (C) 2005 Meilhaus Electronic GmbH (support@meilhaus.de)
*
* Source File : medummy.h
* Author : GG (Guenter Gebhardt) <g.gebhardt@meilhaus.de>
*/
#ifndef _MEDUMMY_H_
#define _MEDUMMY_H_
#include "metypes.h"
#include "medefines.h"
#include "medevice.h"
#ifdef __KERNEL__
#define MEDUMMY_MAGIC_NUMBER 0xDDDD
typedef struct medummy_device {
me_device_t base; /**< The Meilhaus device base class. */
// int magic; /**< The magic number of the structure */
unsigned short vendor_id; /**< Vendor ID */
unsigned short device_id; /**< Device ID */
unsigned int serial_no; /**< Serial number of the device */
int bus_type; /**< Bus type */
int bus_no; /**< Bus number */
int dev_no; /**< Device number */
int func_no; /**< Function number */
} medummy_device_t;
me_device_t *medummy_constructor(unsigned short vendor_id,
unsigned short device_id,
unsigned int serial_no,
int bus_type,
int bus_no,
int dev_no,
int func_no) __attribute__ ((weak));
#endif
#endif