lkml.org 
[lkml]   [2010]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC][PATCH v4 13/18] Add header file for mp device.
    Date
    From: Xin Xiaohui <xiaohui.xin@intel.com>

    Signed-off-by: Xin Xiaohui <xiaohui.xin@intel.com>
    Signed-off-by: Zhao Yu <yzhao81@gmail.com>
    Reviewed-by: Jeff Dike <jdike@linux.intel.com>
    ---

    include/linux/mpassthru.h | 29 +++++++++++++++++++++++++++++
    1 files changed, 29 insertions(+), 0 deletions(-)
    create mode 100644 include/linux/mpassthru.h

    diff --git a/include/linux/mpassthru.h b/include/linux/mpassthru.h
    new file mode 100644
    index 0000000..e3983d3
    --- /dev/null
    +++ b/include/linux/mpassthru.h
    @@ -0,0 +1,29 @@
    +#ifndef __MPASSTHRU_H
    +#define __MPASSTHRU_H
    +
    +#include <linux/types.h>
    +#include <linux/if_ether.h>
    +
    +/* ioctl defines */
    +#define MPASSTHRU_BINDDEV _IOW('M', 213, int)
    +#define MPASSTHRU_UNBINDDEV _IOW('M', 214, int)
    +
    +/* MPASSTHRU ifc flags */
    +#define IFF_MPASSTHRU 0x0001
    +#define IFF_MPASSTHRU_EXCL 0x0002
    +
    +#ifdef __KERNEL__
    +#if defined(CONFIG_MEDIATE_PASSTHRU) || defined(CONFIG_MEDIATE_PASSTHRU_MODULE)
    +struct socket *mp_get_socket(struct file *);
    +#else
    +#include <linux/err.h>
    +#include <linux/errno.h>
    +struct file;
    +struct socket;
    +static inline struct socket *mp_get_socket(struct file *f)
    +{
    + return ERR_PTR(-EINVAL);
    +}
    +#endif /* CONFIG_MEDIATE_PASSTHRU */
    +#endif /* __KERNEL__ */
    +#endif /* __MPASSTHRU_H */
    --
    1.5.4.4


    \
     
     \ /
      Last update: 2010-04-25 11:21    [W:0.029 / U:0.688 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site