Change to new config and to support new MSCP system.
This commit is contained in:
parent
f85a693859
commit
f6fb3bf1ab
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: udareg.h,v 1.2 1994/10/26 08:02:51 cgd Exp $ */
|
||||
/* $NetBSD: udareg.h,v 1.3 1996/07/01 21:24:50 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
@ -53,22 +53,6 @@ struct udadevice {
|
||||
u_short udasa; /* status and address */
|
||||
};
|
||||
|
||||
/*
|
||||
* Bits in UDA status register during initialisation
|
||||
*/
|
||||
#define UDA_ERR 0x8000 /* error */
|
||||
#define UDA_STEP4 0x4000 /* step 4 has started */
|
||||
#define UDA_STEP3 0x2000 /* step 3 has started */
|
||||
#define UDA_STEP2 0x1000 /* step 2 has started */
|
||||
#define UDA_STEP1 0x0800 /* step 1 has started */
|
||||
#define UDA_NV 0x0400 /* no host settable interrupt vector */
|
||||
#define UDA_QB 0x0200 /* controller supports Q22 bus */
|
||||
#define UDA_DI 0x0100 /* controller implements diagnostics */
|
||||
#define UDA_IE 0x0080 /* interrupt enable */
|
||||
#define UDA_NCNRMASK 0x003f /* in STEP1, bits 0-2=NCMDL2, 3-5=NRSPL2 */
|
||||
#define UDA_IVECMASK 0x007f /* in STEP2, bits 0-6 are interruptvec / 4 */
|
||||
#define UDA_PI 0x0001 /* host requests adapter purge interrupts */
|
||||
|
||||
/*
|
||||
* Bits in UDA status register after initialisation
|
||||
*/
|
||||
@ -77,31 +61,3 @@ struct udadevice {
|
||||
#define UDASR_BITS \
|
||||
"\20\20ERR\17STEP4\16STEP3\15STEP2\14STEP1\13NV\12QB\11DI\10IE\1GO"
|
||||
|
||||
/*
|
||||
* UDA Communications Area. Note that this structure definition
|
||||
* requires NRSP and NCMD to be defined already.
|
||||
*/
|
||||
struct udaca {
|
||||
short ca_xxx1; /* unused */
|
||||
char ca_xxx2; /* unused */
|
||||
char ca_bdp; /* BDP to purge */
|
||||
short ca_cmdint; /* command ring transition flag */
|
||||
short ca_rspint; /* response ring transition flag */
|
||||
long ca_rspdsc[NRSP];/* response descriptors */
|
||||
long ca_cmddsc[NCMD];/* command descriptors */
|
||||
};
|
||||
|
||||
/*
|
||||
* Simplified routines (e.g., uddump) reprogram the UDA50 for one command
|
||||
* and one response at a time; uda1ca is like udaca except that it provides
|
||||
* exactly one command and response descriptor.
|
||||
*/
|
||||
struct uda1ca {
|
||||
short ca_xxx1;
|
||||
char ca_xxx2;
|
||||
char ca_bdp;
|
||||
short ca_cmdint;
|
||||
short ca_rspint;
|
||||
long ca_rspdsc;
|
||||
long ca_cmddsc;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user