vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / vmod / driver / lunargs.h
blobb2b6467d6ef13676ec62671825ed8b5521d7aa29
1 #ifndef __LUNARGS_H__
2 #define __LUNARGS_H__
4 /** Maximum number of VMOD-XXX mezzanine boards in a crate */
5 #define VMOD_MAX_BOARDS 64
7 struct vmod_dev {
8 int lun; /** logical unit number */
9 char *carrier_name; /** carrier name */
10 int carrier_lun; /** supporting carrier */
11 int slot; /** slot we're plugged in */
12 unsigned long address; /** virtual address of mz a.s. */
13 int is_big_endian; /** probably useless in MODULBUS */
16 struct vmod_devices {
17 int num_modules;
18 struct vmod_dev module[VMOD_MAX_BOARDS];
21 extern int read_params(char *driver_name, struct vmod_devices *devs);
22 extern int lun_to_index(struct vmod_devices *devs, int lun);
24 #endif /* __LUNARGS_H__ */