Source
/* SPDX-License-Identifier: GPL-2.0 */
/*
* mesh.h: definitions for the driver for the MESH SCSI bus adaptor
* (Macintosh Enhanced SCSI Hardware) found on Power Macintosh computers.
*
* Copyright (C) 1996 Paul Mackerras.
*/
/*
* Registers in the MESH controller.
*/
struct mesh_regs {
unsigned char count_lo;
char pad0[15];
unsigned char count_hi;
char pad1[15];
unsigned char fifo;
char pad2[15];
unsigned char sequence;
char pad3[15];
unsigned char bus_status0;
char pad4[15];
unsigned char bus_status1;
char pad5[15];
unsigned char fifo_count;
char pad6[15];
unsigned char exception;
char pad7[15];
unsigned char error;
char pad8[15];
unsigned char intr_mask;
char pad9[15];
unsigned char interrupt;
char pad10[15];
unsigned char source_id;
char pad11[15];
unsigned char dest_id;
char pad12[15];
unsigned char sync_params;
char pad13[15];
unsigned char mesh_id;
char pad14[15];
unsigned char sel_timeout;
char pad15[15];
};
/* Bits in the sequence register. */
/* use DMA for data transfer */
/* put the controller into target mode */
/* assert ATN signal */
/* use active negation on REQ/ACK */
/* command bits: */
/* get the bus */
/* select a target */
/* send a command */
/* receive status */
/* send data */
/* receive data */
/* send a message */
/* receive a message */