Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: zorro.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* linux/zorro.h -- Amiga AutoConfig (Zorro) Bus Definitions
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (C) 1995--2003 Geert Uytterhoeven
[4] Fix | Delete
*
[5] Fix | Delete
* This file is subject to the terms and conditions of the GNU General Public
[6] Fix | Delete
* License. See the file COPYING in the main directory of this archive
[7] Fix | Delete
* for more details.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef _LINUX_ZORRO_H
[11] Fix | Delete
#define _LINUX_ZORRO_H
[12] Fix | Delete
[13] Fix | Delete
#include <linux/types.h>
[14] Fix | Delete
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Each Zorro board has a 32-bit ID of the form
[18] Fix | Delete
*
[19] Fix | Delete
* mmmmmmmmmmmmmmmmppppppppeeeeeeee
[20] Fix | Delete
*
[21] Fix | Delete
* with
[22] Fix | Delete
*
[23] Fix | Delete
* mmmmmmmmmmmmmmmm 16-bit Manufacturer ID (assigned by CBM (sigh))
[24] Fix | Delete
* pppppppp 8-bit Product ID (assigned by manufacturer)
[25] Fix | Delete
* eeeeeeee 8-bit Extended Product ID (currently only used
[26] Fix | Delete
* for some GVP boards)
[27] Fix | Delete
*/
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
#define ZORRO_MANUF(id) ((id) >> 16)
[31] Fix | Delete
#define ZORRO_PROD(id) (((id) >> 8) & 0xff)
[32] Fix | Delete
#define ZORRO_EPC(id) ((id) & 0xff)
[33] Fix | Delete
[34] Fix | Delete
#define ZORRO_ID(manuf, prod, epc) \
[35] Fix | Delete
((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc))
[36] Fix | Delete
[37] Fix | Delete
typedef __u32 zorro_id;
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
/* Include the ID list */
[41] Fix | Delete
#include <linux/zorro_ids.h>
[42] Fix | Delete
[43] Fix | Delete
[44] Fix | Delete
/*
[45] Fix | Delete
* GVP identifies most of its products through the 'extended product code'
[46] Fix | Delete
* (epc). The epc has to be ANDed with the GVP_PRODMASK before the
[47] Fix | Delete
* identification.
[48] Fix | Delete
*/
[49] Fix | Delete
[50] Fix | Delete
#define GVP_PRODMASK (0xf8)
[51] Fix | Delete
#define GVP_SCSICLKMASK (0x01)
[52] Fix | Delete
[53] Fix | Delete
enum GVP_flags {
[54] Fix | Delete
GVP_IO = 0x01,
[55] Fix | Delete
GVP_ACCEL = 0x02,
[56] Fix | Delete
GVP_SCSI = 0x04,
[57] Fix | Delete
GVP_24BITDMA = 0x08,
[58] Fix | Delete
GVP_25BITDMA = 0x10,
[59] Fix | Delete
GVP_NOBANK = 0x20,
[60] Fix | Delete
GVP_14MHZ = 0x40,
[61] Fix | Delete
};
[62] Fix | Delete
[63] Fix | Delete
[64] Fix | Delete
struct Node {
[65] Fix | Delete
__be32 ln_Succ; /* Pointer to next (successor) */
[66] Fix | Delete
__be32 ln_Pred; /* Pointer to previous (predecessor) */
[67] Fix | Delete
__u8 ln_Type;
[68] Fix | Delete
__s8 ln_Pri; /* Priority, for sorting */
[69] Fix | Delete
__be32 ln_Name; /* ID string, null terminated */
[70] Fix | Delete
} __attribute__((packed));
[71] Fix | Delete
[72] Fix | Delete
struct ExpansionRom {
[73] Fix | Delete
/* -First 16 bytes of the expansion ROM */
[74] Fix | Delete
__u8 er_Type; /* Board type, size and flags */
[75] Fix | Delete
__u8 er_Product; /* Product number, assigned by manufacturer */
[76] Fix | Delete
__u8 er_Flags; /* Flags */
[77] Fix | Delete
__u8 er_Reserved03; /* Must be zero ($ff inverted) */
[78] Fix | Delete
__be16 er_Manufacturer; /* Unique ID, ASSIGNED BY COMMODORE-AMIGA! */
[79] Fix | Delete
__be32 er_SerialNumber; /* Available for use by manufacturer */
[80] Fix | Delete
__be16 er_InitDiagVec; /* Offset to optional "DiagArea" structure */
[81] Fix | Delete
__u8 er_Reserved0c;
[82] Fix | Delete
__u8 er_Reserved0d;
[83] Fix | Delete
__u8 er_Reserved0e;
[84] Fix | Delete
__u8 er_Reserved0f;
[85] Fix | Delete
} __attribute__((packed));
[86] Fix | Delete
[87] Fix | Delete
/* er_Type board type bits */
[88] Fix | Delete
#define ERT_TYPEMASK 0xc0
[89] Fix | Delete
#define ERT_ZORROII 0xc0
[90] Fix | Delete
#define ERT_ZORROIII 0x80
[91] Fix | Delete
[92] Fix | Delete
/* other bits defined in er_Type */
[93] Fix | Delete
#define ERTB_MEMLIST 5 /* Link RAM into free memory list */
[94] Fix | Delete
#define ERTF_MEMLIST (1<<5)
[95] Fix | Delete
[96] Fix | Delete
struct ConfigDev {
[97] Fix | Delete
struct Node cd_Node;
[98] Fix | Delete
__u8 cd_Flags; /* (read/write) */
[99] Fix | Delete
__u8 cd_Pad; /* reserved */
[100] Fix | Delete
struct ExpansionRom cd_Rom; /* copy of board's expansion ROM */
[101] Fix | Delete
__be32 cd_BoardAddr; /* where in memory the board was placed */
[102] Fix | Delete
__be32 cd_BoardSize; /* size of board in bytes */
[103] Fix | Delete
__be16 cd_SlotAddr; /* which slot number (PRIVATE) */
[104] Fix | Delete
__be16 cd_SlotSize; /* number of slots (PRIVATE) */
[105] Fix | Delete
__be32 cd_Driver; /* pointer to node of driver */
[106] Fix | Delete
__be32 cd_NextCD; /* linked list of drivers to config */
[107] Fix | Delete
__be32 cd_Unused[4]; /* for whatever the driver wants */
[108] Fix | Delete
} __attribute__((packed));
[109] Fix | Delete
[110] Fix | Delete
#define ZORRO_NUM_AUTO 16
[111] Fix | Delete
[112] Fix | Delete
#endif /* _LINUX_ZORRO_H */
[113] Fix | Delete
[114] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function