summaryrefslogtreecommitdiff
path: root/drivers/staging/unisys/visorbus/visorbus_private.h
blob: 2b61312789dad066af968f40ef5fa76e10b92a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* visorbus_private.h
 *
 * Copyright (C) 2010 - 2013 UNISYS CORPORATION
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
 * NON INFRINGEMENT.  See the GNU General Public License for more
 * details.
 */

#ifndef __VISORBUS_PRIVATE_H__
#define __VISORBUS_PRIVATE_H__

#include "timskmod.h"
#include "visorbus.h"
#include "visorchipset.h"
#include "visorchannel.h"
#include "version.h"
#include "vbuschannel.h"

/* module parameters */
extern int visorbus_debug;
extern int visorbus_forcematch;
extern int visorbus_forcenomatch;
#define MAXDEVICETEST 4
extern int visorbus_devicetest;
extern int visorbus_debugref;
extern int visorbus_serialloopbacktest;
#define SERIALLOOPBACKCHANADDR (100 * 1024 * 1024)

/** This is the private data that we store for each bus device instance.
 */
struct visorbus_devdata {
	int devno;		/* this is the chipset busNo */
	struct list_head list_all;
	struct device *dev;
	struct kobject kobj;
	struct visorchannel *chan;	/* channel area for bus itself */
	bool vbus_valid;
	struct spar_vbus_headerinfo vbus_hdr_info;
};

#endif