Commit 5ec0db53 authored by Federico Vaga's avatar Federico Vaga

header: move all user define to zio-user.h

Thanks to this patch all user-space applications depends only on the
zio-user.h header
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 34adc3c3
...@@ -7,7 +7,17 @@ ...@@ -7,7 +7,17 @@
*/ */
#ifndef __ZIO_USER_H__ #ifndef __ZIO_USER_H__
#define __ZIO_USER_H__ #define __ZIO_USER_H__
#include <linux/zio.h>
/* ZIO_VERSION: is a zio_class attribute to identify the framework version*/
#define ZIO_MAJOR_VERSION 1
#define ZIO_MINOR_VERSION 0
/*
* ZIO_OBJ_NAME_LEN is the name's length used for registered objects
* (such as trigger_type, buffer_type and zio_device) and thus shown in
* the control structure.
*/
#define ZIO_OBJ_NAME_LEN 12
/* /*
* Maximum number of standard and extended attributes. These two values * Maximum number of standard and extended attributes. These two values
......
...@@ -3,16 +3,7 @@ ...@@ -3,16 +3,7 @@
#ifndef __ZIO_H__ #ifndef __ZIO_H__
#define __ZIO_H__ #define __ZIO_H__
/* ZIO_VERSION: is a zio_class attribute to identify the framework version*/ #include <linux/zio-user.h>
#define ZIO_MAJOR_VERSION 1
#define ZIO_MINOR_VERSION 0
/*
* ZIO_OBJ_NAME_LEN is the name's length used for registered objects
* (such as trigger_type, buffer_type and zio_device) and thus shown in
* the control structure.
*/
#define ZIO_OBJ_NAME_LEN 12
#ifdef __KERNEL__ /* Nothing more is for user space */ #ifdef __KERNEL__ /* Nothing more is for user space */
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <linux/zio.h>
#include <linux/zio-user.h> #include <linux/zio-user.h>
#define FNAME "/dev/zdtc-0000-0-0-ctrl" #define FNAME "/dev/zdtc-0000-0-0-ctrl"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <sys/time.h> #include <sys/time.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <linux/zio.h>
#include <linux/zio-user.h> #include <linux/zio-user.h>
#define VERBOSE 0 #define VERBOSE 0
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/select.h> #include <sys/select.h>
#include <linux/zio.h>
#include <linux/zio-user.h> #include <linux/zio-user.h>
unsigned char buf[1024*1024]; unsigned char buf[1024*1024];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment