[BACK]Return to flashreg.h CVS log [TXT][DIR] Up to [local] / sys / arch / mvme68k / dev

Annotation of sys/arch/mvme68k/dev/flashreg.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: flashreg.h,v 1.6 2003/06/02 05:09:14 deraadt Exp $ */
                      2:
                      3: /*
                      4:  * Copyright (c) 1995 Theo de Raadt
                      5:  * All rights reserved.
                      6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
                     15:  *
                     16:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     17:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     18:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     19:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     20:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     21:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     22:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     23:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     24:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     25:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     26:  */
                     27:
                     28: #define FLCMD_RESET            0xff
                     29: #define FLCMD_READII           0x90
                     30: #define FLCMD_READSTAT         0x70
                     31: #define FLCMD_CLEARSTAT                0x50
                     32: #define FLCMD_ESETUP           0x20
                     33: #define FLCMD_ECONFIRM         0xd0
                     34: #define FLCMD_ESUSPEND         0xb0
                     35: #define FLCMD_ERESUME          0xd0
                     36: #define FLCMD_WSETUP           0x40
                     37: #define FLCMD_AWSETUP          0x10
                     38:
                     39: #define FLSR_WSMS              0x80    /* write state machine status */
                     40: #define FLSR_ESS               0x40    /* erase suspend status */
                     41: #define FLSR_ES                        0x20    /* erase status */
                     42: #define FLSR_BWS               0x10    /* byte write status */
                     43: #define FLSR_VPPS              0x08    /* Vpp status */
                     44:
                     45: /* manufacturers */
                     46: #define FLMANU_INTEL           0x89
                     47:
                     48: /* intel parts */
                     49: #define FLII_INTEL_28F020      0xbd
                     50: #define FLII_INTEL_28F008SA    0xa1
                     51: #define FLII_INTEL_28F008SA_L  0xa2
                     52: #define FLII_INTEL_28F016SA    0xa0
                     53:
                     54: struct flashii {
                     55:        char    *name;
                     56:        u_char  ii;
                     57:        int     size;
                     58:        int     zonesize;
                     59: };

CVSweb