blob: f1aae2c6a04c816d9fc46d7350ea93ef609f6552 (
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
51
52
53
54
55
|
/*
* linux/blkmem.h header file for Linux.
*
* Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
*
*/
#ifndef _LINUX_BLKMEM_H
#define _LINUX_BLKMEM_H
#include <linux/ioctl.h>
/*
* Structures and definitions for mag tape io control commands
*/
#define BMSERASE 1 /* erase sector containing address */
#define BMSGSIZE 2 /* get size of sector */
#define BMSGERASEVALUE 3 /* get value of bytes in erased sectors */
#define BMGETSIZES 4 /* get length of device in sectors */
#define BMGETSIZEB 5 /* get length of device in bytes */
#define BMPROGRAM 6 /* program entire arena in one go */
struct blkmem_program_t {
unsigned long magic1;
int blocks;
int reset;
unsigned long magic2;
struct {
unsigned char * data;
unsigned long pos;
unsigned long length;
int magic3;
}block[0];
};
#define BMPROGRAM_MAGIC_1 0x123abc32
#define BMPROGRAM_MAGIC_2 0x9C00C00F
#define BMPROGRAM_MAGIC_3 0x56408F26
#if 0
#define BMSSAUTOERASE 10 /* set auto-erase bits */
#endif
#define DEVICE_NAME "Blkmem"
#define DEVICE_REQUEST do_blkmem_request
#define DEVICE_NR(device) (MINOR(device))
#define DEVICE_ON(device)
#define DEVICE_OFF(device)
#endif /* _LINUX_BLKMEM_H */
|