Make the Cyberstorm PPC/ Cyberstorm Mk. 3 driver drive the LED.
Actually, this is added to the siop2_script; should we ever support another siopng board that does connect something else to GPREG bit 4, we'll have to move this to C code and make it optional. OTOH, by then we'll have switched to the MI driver by then.
This commit is contained in:
parent
0bda325da0
commit
9bf40ca410
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: siop2.c,v 1.15 2001/04/25 17:53:09 bouyer Exp $ */
|
||||
/* $NetBSD: siop2.c,v 1.16 2001/10/08 21:18:58 is Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994,1998 Michael L. Hitch
|
||||
|
@ -91,7 +91,7 @@ void siopng_start __P((struct siop_softc *, int, int, u_char *, int, u_char *, i
|
|||
void siopng_dump_acb __P((struct siop_acb *));
|
||||
|
||||
/* 53C720/770 script */
|
||||
const
|
||||
|
||||
#include <amiga/dev/siop2_script.out>
|
||||
|
||||
/* default to not inhibit sync negotiation on any drive */
|
||||
|
|
|
@ -1,111 +1,114 @@
|
|||
/* $NetBSD: siop2_script.out,v 1.2 1999/03/26 22:50:23 mhitch Exp $ */
|
||||
/* $NetBSD: siop2_script.out,v 1.3 2001/10/08 21:18:58 is Exp $ */
|
||||
/*
|
||||
* DO NOT EDIT - this file is automatically generated.
|
||||
* created from ../../dev/siop2_script.ss on Sat Mar 20 20:44:20 1999
|
||||
* created from siop2_script.ss on Mon Oct 8 22:51:52 2001
|
||||
*/
|
||||
unsigned long siopng_scripts[] = {
|
||||
0x47000000, 0x00000140, /* 000 - 0 */
|
||||
0x878b0000, 0x00000030, /* 008 - 8 */
|
||||
0x868a0000, 0x00000190, /* 010 - 16 */
|
||||
0x828a0000, 0x00000198, /* 018 - 24 */
|
||||
0x808a0000, 0x000001a8, /* 020 - 32 */
|
||||
0x818a0000, 0x00000230, /* 028 - 40 */
|
||||
0x838a0000, 0x000002b8, /* 030 - 48 */
|
||||
0x98080000, 0x0000ff05, /* 038 - 56 */
|
||||
0x1f000024, 0x00000024, /* 040 - 64 */
|
||||
0x808c0001, 0x00000040, /* 048 - 72 */
|
||||
0x808c0004, 0x00000090, /* 050 - 80 */
|
||||
0x808c0002, 0x000000a8, /* 058 - 88 */
|
||||
0x808c0007, 0x00000010, /* 060 - 96 */
|
||||
0x808c0003, 0x00000008, /* 068 - 104 */
|
||||
0x98080000, 0x0000ff06, /* 070 - 112 */
|
||||
0x60000040, 0x00000000, /* 078 - 120 */
|
||||
0x60000008, 0x00000000, /* 080 - 128 */
|
||||
0x80880000, 0xffffff78, /* 088 - 136 */
|
||||
0x60000040, 0x00000000, /* 090 - 144 */
|
||||
0x1f00002c, 0x0000002c, /* 098 - 152 */
|
||||
0x808c0003, 0x00000010, /* 0a0 - 160 */
|
||||
0x808c0002, 0x00000008, /* 0a8 - 168 */
|
||||
0x98080000, 0x0000ff07, /* 0b0 - 176 */
|
||||
0x60000040, 0x00000000, /* 0b8 - 184 */
|
||||
0x1f000034, 0x00000034, /* 0c0 - 192 */
|
||||
0x98080000, 0x0000ff0b, /* 0c8 - 200 */
|
||||
0x58000008, 0x00000000, /* 0d0 - 208 */
|
||||
0x60000040, 0x00000000, /* 0d8 - 216 */
|
||||
0x80880000, 0xffffff20, /* 0e0 - 224 */
|
||||
0x7c027f00, 0x00000000, /* 0e8 - 232 */
|
||||
0x60000040, 0x00000000, /* 0f0 - 240 */
|
||||
0x48000000, 0x00000000, /* 0f8 - 248 */
|
||||
0x98080000, 0x0000ff02, /* 100 - 256 */
|
||||
0x60000040, 0x00000000, /* 108 - 264 */
|
||||
0x87830000, 0xfffffef0, /* 110 - 272 */
|
||||
0x1f00002c, 0x0000002c, /* 118 - 280 */
|
||||
0x98040004, 0x0000ff08, /* 120 - 288 */
|
||||
0x7c027f00, 0x00000000, /* 128 - 296 */
|
||||
0x60000040, 0x00000000, /* 130 - 304 */
|
||||
0x48000000, 0x00000000, /* 138 - 312 */
|
||||
0x98080000, 0x0000ff01, /* 140 - 320 */
|
||||
0x54000000, 0x00000038, /* 148 - 328 */
|
||||
0x740a8f00, 0x00000000, /* 150 - 336 */
|
||||
0x6a340000, 0x00000000, /* 158 - 344 */
|
||||
0x9f030000, 0x0000ff09, /* 160 - 352 */
|
||||
0x1f00001c, 0x0000001c, /* 168 - 360 */
|
||||
0x98080000, 0x0000ff03, /* 170 - 368 */
|
||||
0x60000040, 0x00000000, /* 178 - 376 */
|
||||
0x80880000, 0xfffffe80, /* 180 - 384 */
|
||||
0x74011000, 0x00000000, /* 188 - 392 */
|
||||
0x980c0000, 0x0000ff04, /* 190 - 400 */
|
||||
0x741a4000, 0x00000000, /* 198 - 408 */
|
||||
0x80880000, 0xffffffa0, /* 1a0 - 416 */
|
||||
0x1e000004, 0x00000004, /* 1a8 - 424 */
|
||||
0x80880000, 0xfffffe50, /* 1b0 - 432 */
|
||||
0x60000008, 0x00000000, /* 1b8 - 440 */
|
||||
0x1a00000c, 0x0000000c, /* 1c0 - 448 */
|
||||
0x80880000, 0xfffffe38, /* 1c8 - 456 */
|
||||
0x1800003c, 0x0000003c, /* 1d0 - 464 */
|
||||
0x88830000, 0xfffffe28, /* 1d8 - 472 */
|
||||
0x18000044, 0x00000044, /* 1e0 - 480 */
|
||||
const u_int32_t siopng_scripts[] = {
|
||||
0x47000000, 0x00000150, /* 000 - 0 */
|
||||
0x7a071000, 0x00000000, /* 008 - 8 */
|
||||
0x878b0000, 0x00000030, /* 010 - 16 */
|
||||
0x868a0000, 0x00000198, /* 018 - 24 */
|
||||
0x828a0000, 0x000001a0, /* 020 - 32 */
|
||||
0x808a0000, 0x000001b0, /* 028 - 40 */
|
||||
0x818a0000, 0x00000238, /* 030 - 48 */
|
||||
0x838a0000, 0x000002c0, /* 038 - 56 */
|
||||
0x98080000, 0x0000ff05, /* 040 - 64 */
|
||||
0x1f000024, 0x00000024, /* 048 - 72 */
|
||||
0x808c0001, 0x00000040, /* 050 - 80 */
|
||||
0x808c0004, 0x00000090, /* 058 - 88 */
|
||||
0x808c0002, 0x000000b0, /* 060 - 96 */
|
||||
0x808c0007, 0x00000010, /* 068 - 104 */
|
||||
0x808c0003, 0x00000008, /* 070 - 112 */
|
||||
0x98080000, 0x0000ff06, /* 078 - 120 */
|
||||
0x60000040, 0x00000000, /* 080 - 128 */
|
||||
0x60000008, 0x00000000, /* 088 - 136 */
|
||||
0x80880000, 0xffffff70, /* 090 - 144 */
|
||||
0x60000040, 0x00000000, /* 098 - 152 */
|
||||
0x1f00002c, 0x0000002c, /* 0a0 - 160 */
|
||||
0x808c0003, 0x00000010, /* 0a8 - 168 */
|
||||
0x808c0002, 0x00000008, /* 0b0 - 176 */
|
||||
0x98080000, 0x0000ff07, /* 0b8 - 184 */
|
||||
0x60000040, 0x00000000, /* 0c0 - 192 */
|
||||
0x1f000034, 0x00000034, /* 0c8 - 200 */
|
||||
0x98080000, 0x0000ff0b, /* 0d0 - 208 */
|
||||
0x58000008, 0x00000000, /* 0d8 - 216 */
|
||||
0x60000040, 0x00000000, /* 0e0 - 224 */
|
||||
0x80880000, 0xffffff18, /* 0e8 - 232 */
|
||||
0x7c027f00, 0x00000000, /* 0f0 - 240 */
|
||||
0x7c07ef00, 0x00000000, /* 0f8 - 248 */
|
||||
0x60000040, 0x00000000, /* 100 - 256 */
|
||||
0x48000000, 0x00000000, /* 108 - 264 */
|
||||
0x98080000, 0x0000ff02, /* 110 - 272 */
|
||||
0x60000040, 0x00000000, /* 118 - 280 */
|
||||
0x87830000, 0xfffffee0, /* 120 - 288 */
|
||||
0x1f00002c, 0x0000002c, /* 128 - 296 */
|
||||
0x98040004, 0x0000ff08, /* 130 - 304 */
|
||||
0x7c027f00, 0x00000000, /* 138 - 312 */
|
||||
0x60000040, 0x00000000, /* 140 - 320 */
|
||||
0x48000000, 0x00000000, /* 148 - 328 */
|
||||
0x98080000, 0x0000ff01, /* 150 - 336 */
|
||||
0x54000000, 0x00000038, /* 158 - 344 */
|
||||
0x740a8f00, 0x00000000, /* 160 - 352 */
|
||||
0x6a340000, 0x00000000, /* 168 - 360 */
|
||||
0x9f030000, 0x0000ff09, /* 170 - 368 */
|
||||
0x1f00001c, 0x0000001c, /* 178 - 376 */
|
||||
0x98080000, 0x0000ff03, /* 180 - 384 */
|
||||
0x60000040, 0x00000000, /* 188 - 392 */
|
||||
0x80880000, 0xfffffe70, /* 190 - 400 */
|
||||
0x74011000, 0x00000000, /* 198 - 408 */
|
||||
0x980c0000, 0x0000ff04, /* 1a0 - 416 */
|
||||
0x741a4000, 0x00000000, /* 1a8 - 424 */
|
||||
0x80880000, 0xffffffa0, /* 1b0 - 432 */
|
||||
0x1e000004, 0x00000004, /* 1b8 - 440 */
|
||||
0x80880000, 0xfffffe40, /* 1c0 - 448 */
|
||||
0x60000008, 0x00000000, /* 1c8 - 456 */
|
||||
0x1a00000c, 0x0000000c, /* 1d0 - 464 */
|
||||
0x80880000, 0xfffffe28, /* 1d8 - 472 */
|
||||
0x1800003c, 0x0000003c, /* 1e0 - 480 */
|
||||
0x88830000, 0xfffffe18, /* 1e8 - 488 */
|
||||
0x1800004c, 0x0000004c, /* 1f0 - 496 */
|
||||
0x18000044, 0x00000044, /* 1f0 - 496 */
|
||||
0x88830000, 0xfffffe08, /* 1f8 - 504 */
|
||||
0x18000054, 0x00000054, /* 200 - 512 */
|
||||
0x1800004c, 0x0000004c, /* 200 - 512 */
|
||||
0x88830000, 0xfffffdf8, /* 208 - 520 */
|
||||
0x1800005c, 0x0000005c, /* 210 - 528 */
|
||||
0x18000054, 0x00000054, /* 210 - 528 */
|
||||
0x88830000, 0xfffffde8, /* 218 - 536 */
|
||||
0x18000064, 0x00000064, /* 220 - 544 */
|
||||
0x1800005c, 0x0000005c, /* 220 - 544 */
|
||||
0x88830000, 0xfffffdd8, /* 228 - 552 */
|
||||
0x1800006c, 0x0000006c, /* 230 - 560 */
|
||||
0x18000064, 0x00000064, /* 230 - 560 */
|
||||
0x88830000, 0xfffffdc8, /* 238 - 568 */
|
||||
0x18000074, 0x00000074, /* 240 - 576 */
|
||||
0x1800006c, 0x0000006c, /* 240 - 576 */
|
||||
0x88830000, 0xfffffdb8, /* 248 - 584 */
|
||||
0x1800007c, 0x0000007c, /* 250 - 592 */
|
||||
0x88880000, 0xfffffda8, /* 258 - 600 */
|
||||
0x1900003c, 0x0000003c, /* 260 - 608 */
|
||||
0x89830000, 0xfffffd98, /* 268 - 616 */
|
||||
0x19000044, 0x00000044, /* 270 - 624 */
|
||||
0x18000074, 0x00000074, /* 250 - 592 */
|
||||
0x88830000, 0xfffffda8, /* 258 - 600 */
|
||||
0x1800007c, 0x0000007c, /* 260 - 608 */
|
||||
0x88880000, 0xfffffd98, /* 268 - 616 */
|
||||
0x1900003c, 0x0000003c, /* 270 - 624 */
|
||||
0x89830000, 0xfffffd88, /* 278 - 632 */
|
||||
0x1900004c, 0x0000004c, /* 280 - 640 */
|
||||
0x19000044, 0x00000044, /* 280 - 640 */
|
||||
0x89830000, 0xfffffd78, /* 288 - 648 */
|
||||
0x19000054, 0x00000054, /* 290 - 656 */
|
||||
0x1900004c, 0x0000004c, /* 290 - 656 */
|
||||
0x89830000, 0xfffffd68, /* 298 - 664 */
|
||||
0x1900005c, 0x0000005c, /* 2a0 - 672 */
|
||||
0x19000054, 0x00000054, /* 2a0 - 672 */
|
||||
0x89830000, 0xfffffd58, /* 2a8 - 680 */
|
||||
0x19000064, 0x00000064, /* 2b0 - 688 */
|
||||
0x1900005c, 0x0000005c, /* 2b0 - 688 */
|
||||
0x89830000, 0xfffffd48, /* 2b8 - 696 */
|
||||
0x1900006c, 0x0000006c, /* 2c0 - 704 */
|
||||
0x19000064, 0x00000064, /* 2c0 - 704 */
|
||||
0x89830000, 0xfffffd38, /* 2c8 - 712 */
|
||||
0x19000074, 0x00000074, /* 2d0 - 720 */
|
||||
0x1900006c, 0x0000006c, /* 2d0 - 720 */
|
||||
0x89830000, 0xfffffd28, /* 2d8 - 728 */
|
||||
0x1900007c, 0x0000007c, /* 2e0 - 736 */
|
||||
0x88880000, 0xfffffd18, /* 2e8 - 744 */
|
||||
0x1b000014, 0x00000014, /* 2f0 - 752 */
|
||||
0x9f030000, 0x0000ff0a, /* 2f8 - 760 */
|
||||
0x1f00001c, 0x0000001c, /* 300 - 768 */
|
||||
0x7c027f00, 0x00000000, /* 308 - 776 */
|
||||
0x60000040, 0x00000000, /* 310 - 784 */
|
||||
0x48000000, 0x00000000, /* 318 - 792 */
|
||||
0x98080000, 0x0000ff00, /* 320 - 800 */
|
||||
0x80880000, 0xfffffe18, /* 328 - 808 */
|
||||
0x19000074, 0x00000074, /* 2e0 - 736 */
|
||||
0x89830000, 0xfffffd18, /* 2e8 - 744 */
|
||||
0x1900007c, 0x0000007c, /* 2f0 - 752 */
|
||||
0x88880000, 0xfffffd08, /* 2f8 - 760 */
|
||||
0x1b000014, 0x00000014, /* 300 - 768 */
|
||||
0x9f030000, 0x0000ff0a, /* 308 - 776 */
|
||||
0x1f00001c, 0x0000001c, /* 310 - 784 */
|
||||
0x7c027f00, 0x00000000, /* 318 - 792 */
|
||||
0x60000040, 0x00000000, /* 320 - 800 */
|
||||
0x48000000, 0x00000000, /* 328 - 808 */
|
||||
0x7c07ef00, 0x00000000, /* 330 - 816 */
|
||||
0x98080000, 0x0000ff00, /* 338 - 824 */
|
||||
0x80880000, 0xfffffe10, /* 340 - 832 */
|
||||
};
|
||||
|
||||
#define A_ds_Device 0x00000000
|
||||
|
@ -139,7 +142,10 @@ unsigned long siopng_scripts[] = {
|
|||
#define A_err11 0x0000ff0b
|
||||
#define Ent_scripts 0x00000000
|
||||
#define Ent_switch 0x00000008
|
||||
#define Ent_wait_reselect 0x00000148
|
||||
#define Ent_dataout 0x000001d0
|
||||
#define Ent_datain 0x00000260
|
||||
#define Ent_clear_ack 0x00000078
|
||||
#define Ent_wait_reselect 0x00000158
|
||||
#define Ent_dataout 0x000001e0
|
||||
#define Ent_datain 0x00000270
|
||||
#define Ent_clear_ack 0x00000080
|
||||
|
||||
u_int32_t INSTRUCTIONS = 0x00000069;
|
||||
u_int32_t PATCHES = 0x00000000;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $NetBSD: siop2_script.ss,v 1.3 1999/03/26 22:50:23 mhitch Exp $
|
||||
; $NetBSD: siop2_script.ss,v 1.4 2001/10/08 21:18:58 is Exp $
|
||||
|
||||
;
|
||||
; Copyright (c) 1998 Michael L. Hitch
|
||||
|
@ -79,6 +79,7 @@ scripts:
|
|||
SELECT ATN FROM ds_Device, REL(reselect)
|
||||
;
|
||||
switch:
|
||||
MOVE GPREG | 0x10 TO GPREG
|
||||
JUMP REL(msgin), WHEN MSG_IN
|
||||
JUMP REL(msgout), IF MSG_OUT
|
||||
JUMP REL(command_phase), IF CMD
|
||||
|
@ -124,6 +125,7 @@ neg_msg:
|
|||
|
||||
disc:
|
||||
MOVE SCNTL2 & 0x7f TO SCNTL2
|
||||
MOVE GPREG & 0xEF TO GPREG
|
||||
CLEAR ACK
|
||||
WAIT DISCONNECT
|
||||
|
||||
|
@ -215,5 +217,6 @@ end:
|
|||
MOVE SCNTL2 & 0x7f TO SCNTL2
|
||||
CLEAR ACK
|
||||
WAIT DISCONNECT
|
||||
MOVE GPREG & 0xEF TO GPREG
|
||||
INT ok ; signal completion
|
||||
JUMP REL(wait_reselect)
|
||||
|
|
Loading…
Reference in New Issue