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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [blkmem.h] - Rev 1765

Go to most recent revision | Compare with Previous | Blame | View Log

 
/* 
 * linux/blkmem.h header file for Linux.
 *
 * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>,
 *                     The Silver Hammer Group, Ltd.
 *
 */
 
#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
 
#endif /* _LINUX_BLKMEM_H */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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