OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [linux/] [blkmem.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
 
2
/*
3
 * linux/blkmem.h header file for Linux.
4
 *
5
 * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>,
6
 *                     The Silver Hammer Group, Ltd.
7
 *
8
 */
9
 
10
#ifndef _LINUX_BLKMEM_H
11
#define _LINUX_BLKMEM_H
12
 
13
#include <linux/ioctl.h>
14
 
15
/*
16
 * Structures and definitions for mag tape io control commands
17
 */
18
 
19
#define BMSERASE       1        /* erase sector containing address */
20
#define BMSGSIZE       2        /* get size of sector */
21
#define BMSGERASEVALUE 3        /* get value of bytes in erased sectors */
22
#define BMGETSIZES     4        /* get length of device in sectors */
23
#define BMGETSIZEB     5        /* get length of device in bytes */
24
 
25
#define BMPROGRAM      6        /* program entire arena in one go */
26
 
27
struct blkmem_program_t {
28
        unsigned long magic1;
29
        int     blocks;
30
        int     reset;
31
        unsigned long magic2;
32
        struct {
33
                unsigned char * data;
34
                unsigned long pos;
35
                unsigned long length;
36
                int magic3;
37
        }block[0];
38
};
39
 
40
#define BMPROGRAM_MAGIC_1 0x123abc32
41
 
42
#define BMPROGRAM_MAGIC_2 0x9C00C00F
43
 
44
#define BMPROGRAM_MAGIC_3 0x56408F26
45
 
46
#if 0
47
#define BMSSAUTOERASE  10       /* set auto-erase bits */
48
#endif
49
 
50
#endif /* _LINUX_BLKMEM_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.