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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [ftape/] [ftape-bsm.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
#ifndef _FTAPE_BSM_H
2
#define _FTAPE_BSM_H
3
 
4
/*
5
 * Copyright (C) 1994-1995 Bas Laarhoven.
6
 
7
 This program is free software; you can redistribute it and/or modify
8
 it under the terms of the GNU General Public License as published by
9
 the Free Software Foundation; either version 2, or (at your option)
10
 any later version.
11
 
12
 This program is distributed in the hope that it will be useful,
13
 but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 GNU General Public License for more details.
16
 
17
 You should have received a copy of the GNU General Public License
18
 along with this program; see the file COPYING.  If not, write to
19
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20
 
21
 *
22
 $Source: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/rc203soc/sw/uClinux/drivers/char/ftape/ftape-bsm.h,v $
23
 $Author: jcastillo $
24
 *
25
 $Revision: 1.1 $
26
 $Date: 2005-12-20 10:16:52 $
27
 $State: Exp $
28
 *
29
 *      This file contains definitions for the bad sector map handling
30
 *      routines for the QIC-117 floppy-tape driver for Linux.
31
 */
32
 
33
#define EMPTY_SEGMENT           (0xffffffff)
34
#define FAKE_SEGMENT            (0xfffffffe)
35
 
36
/*  failed sector log size (only used if format code != 4).
37
 */
38
#define FAILED_SECTOR_LOG_SIZE  (2 * SECTOR_SIZE - 256)
39
 
40
/*  maximum (format code 4) bad sector map size (bytes).
41
 */
42
#define BAD_SECTOR_MAP_SIZE     (29 * SECTOR_SIZE - 256)
43
 
44
/*
45
 *      ftape-io.c defined global vars.
46
 */
47
extern int bad_sector_map_changed;
48
 
49
/*
50
 *      ftape-io.c defined global functions.
51
 */
52
extern void update_bad_sector_map(byte * buffer);
53
extern void store_bad_sector_map(byte * buffer);
54
extern void extract_bad_sector_map(byte * buffer);
55
extern unsigned long get_bad_sector_entry(int segment_id);
56
extern void put_bad_sector_entry(int segment_id, unsigned long mask);
57
extern void add_segment_to_bad_sector_map(unsigned segment);
58
extern void clear_bad_sector_map(int count);
59
extern byte *find_end_of_bsm_list(byte * ptr, byte * limit);
60
extern void ftape_init_bsm(void);
61
 
62
#endif

powered by: WebSVN 2.1.0

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