Commit 238add52 authored by Martyn Welch's avatar Martyn Welch Committed by Greg Kroah-Hartman

Staging: Update VME vme_user module

* Add ifdef wrapper to vme_user.h
 * Correct Initialisation routine
 * Add remove routine to correct probe routine
 * Remove old test routines
Signed-off-by: default avatarMartyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 75155020
This diff is collapsed.
#ifndef _VME_USER_H_
#define _VME_USER_H_
#define USER_BUS_MAX 1
/*
* VMEbus Master Window Configuration Structure
*/
typedef struct {
char enable; /* State of Window */
struct vme_master {
int enable; /* State of Window */
unsigned long long vme_addr; /* Starting Address on the VMEbus */
unsigned long long size; /* Window Size */
vme_address_t aspace; /* Address Space */
......@@ -14,7 +18,7 @@ typedef struct {
int prefetchSize; /* Prefetch Read Size (Cache Lines) */
char wrPostEnable; /* Write Post State */
#endif
} vme_master_t;
};
/*
......@@ -26,8 +30,8 @@ typedef struct {
/* VMEbus Slave Window Configuration Structure */
typedef struct {
char enable; /* State of Window */
struct vme_slave {
int enable; /* State of Window */
unsigned long long vme_addr; /* Starting Address on the VMEbus */
unsigned long long size; /* Window Size */
vme_address_t aspace; /* Address Space */
......@@ -37,7 +41,12 @@ typedef struct {
char rmwLock; /* Lock PCI during RMW Cycles */
char data64BitCapable; /* non-VMEbus capable of 64-bit Data */
#endif
} vme_slave_t;
};
#define VME_GET_SLAVE _IOR(VME_IOC_MAGIC, 1, struct vme_slave)
#define VME_SET_SLAVE _IOW(VME_IOC_MAGIC, 2, struct vme_slave)
#define VME_GET_MASTER _IOR(VME_IOC_MAGIC, 3, struct vme_master)
#define VME_SET_MASTER _IOW(VME_IOC_MAGIC, 4, struct vme_master)
#define VME_SET_SLAVE _IOW(VME_IOC_MAGIC, 10, vme_slave_t)
#endif /* _VME_USER_H_ */
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