IgH EtherCAT Master
1.6.2
cdev.h
Go to the documentation of this file.
1
/*****************************************************************************
2
*
3
* Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH
4
*
5
* This file is part of the IgH EtherCAT Master.
6
*
7
* The IgH EtherCAT Master is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License version 2, as
9
* published by the Free Software Foundation.
10
*
11
* The IgH EtherCAT Master is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14
* Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with the IgH EtherCAT Master; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*
20
****************************************************************************/
21
27
/****************************************************************************/
28
29
#ifndef __EC_CDEV_H__
30
#define __EC_CDEV_H__
31
32
#include <linux/fs.h>
33
#include <linux/cdev.h>
34
35
#include "
globals.h
"
36
37
/****************************************************************************/
38
41
typedef
struct
{
42
ec_master_t
*
master
;
43
struct
cdev cdev;
44
}
ec_cdev_t
;
45
46
/****************************************************************************/
47
48
int
ec_cdev_init
(
ec_cdev_t
*,
ec_master_t
*, dev_t);
49
void
ec_cdev_clear
(
ec_cdev_t
*);
50
51
/****************************************************************************/
52
53
#endif
ec_cdev_t::master
ec_master_t * master
Master owning the device.
Definition:
cdev.h:42
ec_cdev_clear
void ec_cdev_clear(ec_cdev_t *)
Destructor.
Definition:
cdev.c:126
globals.h
Global definitions and macros.
ec_cdev_init
int ec_cdev_init(ec_cdev_t *, ec_master_t *, dev_t)
Constructor.
Definition:
cdev.c:100
ec_cdev_t
EtherCAT master character device.
Definition:
cdev.h:41
ec_master
EtherCAT master.
Definition:
master.h:187
Documentation automatically created by
. - IgH EtherCAT Master developed by
Ingenieurgemeinschaft IgH GmbH
. All rights reserved.