From 7341a66098da65ad4e75ea14dca3ccd819c81418 Mon Sep 17 00:00:00 2001 From: bouyer Date: Thu, 18 Apr 2002 11:59:41 +0000 Subject: [PATCH] Regen: add hooks to drive LED via GPIO. --- sys/dev/microcode/siop/siop.out | 302 +++++++++++++++++--------------- 1 file changed, 158 insertions(+), 144 deletions(-) diff --git a/sys/dev/microcode/siop/siop.out b/sys/dev/microcode/siop/siop.out index c0125be6756c..63df1dacf091 100644 --- a/sys/dev/microcode/siop/siop.out +++ b/sys/dev/microcode/siop/siop.out @@ -1,29 +1,29 @@ -/* $NetBSD: siop.out,v 1.12 2001/12/07 14:21:18 fredette Exp $ */ +/* $NetBSD: siop.out,v 1.13 2002/04/18 11:59:41 bouyer Exp $ */ /* * DO NOT EDIT - this file is automatically generated. - * created from siop.ss on Fri Dec 7 09:19:46 2001 + * created from siop.ss on Thu Apr 18 13:56:23 2002 */ const u_int32_t siop_script[] = { 0x78340000, 0x00000000, /* 000 - 0 */ 0x78350000, 0x00000000, /* 008 - 8 */ 0x72370000, 0x00000000, /* 010 - 16 */ - 0x80840020, 0x00000300, /* 018 - 24 */ - 0x868b0000, 0x00000368, /* 020 - 32 */ - 0x878b0000, 0x000002e0, /* 028 - 40 */ - 0x808b0000, 0x000003f0, /* 030 - 48 */ - 0x818b0000, 0x00000388, /* 038 - 56 */ - 0x828b0000, 0x00000360, /* 040 - 64 */ - 0x838b0000, 0x00000368, /* 048 - 72 */ + 0x80840020, 0x00000318, /* 018 - 24 */ + 0x868b0000, 0x00000380, /* 020 - 32 */ + 0x878b0000, 0x000002f8, /* 028 - 40 */ + 0x808b0000, 0x00000408, /* 030 - 48 */ + 0x818b0000, 0x000003a0, /* 038 - 56 */ + 0x828b0000, 0x00000378, /* 040 - 64 */ + 0x838b0000, 0x00000380, /* 048 - 72 */ 0x98080000, 0x0000ffff, /* 050 - 80 */ 0x741a4000, 0x00000000, /* 058 - 88 */ 0x980c0000, 0x0000ff83, /* 060 - 96 */ - 0x7810ff00, 0x00000000, /* 068 - 104 */ - 0x7811ff00, 0x00000000, /* 070 - 112 */ - 0x7812ff00, 0x00000000, /* 078 - 120 */ - 0x7813ff00, 0x00000000, /* 080 - 128 */ - 0x78340000, 0x00000000, /* 088 - 136 */ - 0x78350000, 0x00000000, /* 090 - 144 */ - 0x80000000, 0x00000000, /* 098 - 152 */ + 0x80000000, 0x00000000, /* 068 - 104 */ + 0x7810ff00, 0x00000000, /* 070 - 112 */ + 0x7811ff00, 0x00000000, /* 078 - 120 */ + 0x7812ff00, 0x00000000, /* 080 - 128 */ + 0x7813ff00, 0x00000000, /* 088 - 136 */ + 0x78340000, 0x00000000, /* 090 - 144 */ + 0x78350000, 0x00000000, /* 098 - 152 */ 0x80000000, 0x00000000, /* 0a0 - 160 */ 0x80000000, 0x00000000, /* 0a8 - 168 */ 0x80000000, 0x00000000, /* 0b0 - 176 */ @@ -63,18 +63,18 @@ const u_int32_t siop_script[] = { 0x80000000, 0x00000000, /* 1c0 - 448 */ 0x80000000, 0x00000000, /* 1c8 - 456 */ 0x80000000, 0x00000000, /* 1d0 - 464 */ - 0x7810ff00, 0x00000000, /* 1d8 - 472 */ - 0x7811ff00, 0x00000000, /* 1e0 - 480 */ - 0x7812ff00, 0x00000000, /* 1e8 - 488 */ - 0x7813ff00, 0x00000000, /* 1f0 - 496 */ - 0x78360000, 0x00000000, /* 1f8 - 504 */ - 0x78372000, 0x00000000, /* 200 - 512 */ - 0x54000000, 0xfffffe48, /* 208 - 520 */ - 0x740a8f00, 0x00000000, /* 210 - 528 */ - 0x6a340000, 0x00000000, /* 218 - 536 */ - 0x800c00ff, 0x00000000, /* 220 - 544 */ - 0x800c00ff, 0x00000000, /* 228 - 552 */ - 0x800c00ff, 0x00000000, /* 230 - 560 */ + 0x80000000, 0x00000000, /* 1d8 - 472 */ + 0x7810ff00, 0x00000000, /* 1e0 - 480 */ + 0x7811ff00, 0x00000000, /* 1e8 - 488 */ + 0x7812ff00, 0x00000000, /* 1f0 - 496 */ + 0x7813ff00, 0x00000000, /* 1f8 - 504 */ + 0x78360000, 0x00000000, /* 200 - 512 */ + 0x78372000, 0x00000000, /* 208 - 520 */ + 0x80000000, 0x00000000, /* 210 - 528 */ + 0x54000000, 0xfffffe38, /* 218 - 536 */ + 0x80000000, 0x00000000, /* 220 - 544 */ + 0x740a8f00, 0x00000000, /* 228 - 552 */ + 0x6a340000, 0x00000000, /* 230 - 560 */ 0x800c00ff, 0x00000000, /* 238 - 568 */ 0x800c00ff, 0x00000000, /* 240 - 576 */ 0x800c00ff, 0x00000000, /* 248 - 584 */ @@ -87,100 +87,103 @@ const u_int32_t siop_script[] = { 0x800c00ff, 0x00000000, /* 280 - 640 */ 0x800c00ff, 0x00000000, /* 288 - 648 */ 0x800c00ff, 0x00000000, /* 290 - 656 */ - 0x98080000, 0x0000ff80, /* 298 - 664 */ - 0x0f000001, 0x00000000, /* 2a0 - 672 */ - 0x6c350700, 0x00000000, /* 2a8 - 680 */ - 0x60000040, 0x00000000, /* 2b0 - 688 */ - 0x97030000, 0x00000000, /* 2b8 - 696 */ - 0x0f000001, 0x00000000, /* 2c0 - 704 */ + 0x800c00ff, 0x00000000, /* 298 - 664 */ + 0x800c00ff, 0x00000000, /* 2a0 - 672 */ + 0x800c00ff, 0x00000000, /* 2a8 - 680 */ + 0x98080000, 0x0000ff80, /* 2b0 - 688 */ + 0x0f000001, 0x00000000, /* 2b8 - 696 */ + 0x6c350700, 0x00000000, /* 2c0 - 704 */ 0x60000040, 0x00000000, /* 2c8 - 712 */ - 0x6a370000, 0x00000000, /* 2d0 - 720 */ - 0x90040020, 0x00000000, /* 2d8 - 728 */ - 0x0f000001, 0x00000000, /* 2e0 - 736 */ - 0x60000040, 0x00000000, /* 2e8 - 744 */ - 0x6a360000, 0x00000000, /* 2f0 - 752 */ - 0x90080000, 0x00000000, /* 2f8 - 760 */ + 0x97030000, 0x00000000, /* 2d0 - 720 */ + 0x0f000001, 0x00000000, /* 2d8 - 728 */ + 0x60000040, 0x00000000, /* 2e0 - 736 */ + 0x6a370000, 0x00000000, /* 2e8 - 744 */ + 0x90040020, 0x00000000, /* 2f0 - 752 */ + 0x0f000001, 0x00000000, /* 2f8 - 760 */ 0x60000040, 0x00000000, /* 300 - 768 */ - 0x7a340100, 0x00000000, /* 308 - 776 */ - 0x60000008, 0x00000000, /* 310 - 784 */ - 0x1f000020, 0x00000020, /* 318 - 792 */ - 0x808c0000, 0x00000218, /* 320 - 800 */ - 0x808c0002, 0xffffffd0, /* 328 - 808 */ - 0x808c0001, 0x00000218, /* 330 - 816 */ - 0x98040004, 0x0000ff01, /* 338 - 824 */ - 0x88880000, 0x000001d0, /* 340 - 832 */ - 0x74340100, 0x00000000, /* 348 - 840 */ - 0x808c0000, 0xfffffd10, /* 350 - 848 */ - 0x72350000, 0x00000000, /* 358 - 856 */ - 0x808c0000, 0xfffffd00, /* 360 - 864 */ - 0x98080000, 0x0000ff04, /* 368 - 872 */ - 0x60000040, 0x00000000, /* 370 - 880 */ - 0x80880000, 0xfffffca0, /* 378 - 888 */ - 0x58000008, 0x00000000, /* 380 - 896 */ + 0x6a360000, 0x00000000, /* 308 - 776 */ + 0x90080000, 0x00000000, /* 310 - 784 */ + 0x60000040, 0x00000000, /* 318 - 792 */ + 0x7a340100, 0x00000000, /* 320 - 800 */ + 0x60000008, 0x00000000, /* 328 - 808 */ + 0x1f000020, 0x00000020, /* 330 - 816 */ + 0x808c0000, 0x00000218, /* 338 - 824 */ + 0x808c0002, 0xffffffd0, /* 340 - 832 */ + 0x808c0001, 0x00000218, /* 348 - 840 */ + 0x98040004, 0x0000ff01, /* 350 - 848 */ + 0x88880000, 0x000001d0, /* 358 - 856 */ + 0x74340100, 0x00000000, /* 360 - 864 */ + 0x808c0000, 0xfffffd00, /* 368 - 872 */ + 0x72350000, 0x00000000, /* 370 - 880 */ + 0x808c0000, 0xfffffcf0, /* 378 - 888 */ + 0x98080000, 0x0000ff04, /* 380 - 896 */ 0x60000040, 0x00000000, /* 388 - 904 */ - 0x1e000038, 0x00000038, /* 390 - 912 */ - 0x60000008, 0x00000000, /* 398 - 920 */ - 0x80880000, 0xfffffc78, /* 3a0 - 928 */ - 0x1a000040, 0x00000040, /* 3a8 - 936 */ - 0x80880000, 0xfffffc68, /* 3b0 - 944 */ - 0x1b000048, 0x00000048, /* 3b8 - 952 */ - 0x80880000, 0xfffffc58, /* 3c0 - 960 */ - 0x88880000, 0x000000b8, /* 3c8 - 968 */ - 0x7a340200, 0x00000000, /* 3d0 - 976 */ - 0x19000050, 0x00000050, /* 3d8 - 984 */ - 0x7e350100, 0x00000000, /* 3e0 - 992 */ - 0x7e100800, 0x00000000, /* 3e8 - 1000 */ - 0x7f110000, 0x00000000, /* 3f0 - 1008 */ - 0x7f120000, 0x00000000, /* 3f8 - 1016 */ - 0x7f130000, 0x00000000, /* 400 - 1024 */ - 0x818b0000, 0xffffffc8, /* 408 - 1032 */ - 0x88880000, 0x000000b8, /* 410 - 1040 */ - 0x7c34fd00, 0x00000000, /* 418 - 1048 */ - 0x80880000, 0xfffffbf8, /* 420 - 1056 */ - 0x88880000, 0x00000058, /* 428 - 1064 */ - 0x7a340200, 0x00000000, /* 430 - 1072 */ - 0x18000050, 0x00000050, /* 438 - 1080 */ - 0x7e350100, 0x00000000, /* 440 - 1088 */ - 0x7e100800, 0x00000000, /* 448 - 1096 */ - 0x7f110000, 0x00000000, /* 450 - 1104 */ - 0x7f120000, 0x00000000, /* 458 - 1112 */ - 0x7f130000, 0x00000000, /* 460 - 1120 */ - 0x808b0000, 0xffffffc8, /* 468 - 1128 */ - 0x88880000, 0x00000058, /* 470 - 1136 */ - 0x7c34fd00, 0x00000000, /* 478 - 1144 */ - 0x80880000, 0xfffffb98, /* 480 - 1152 */ - 0x72100000, 0x00000000, /* 488 - 1160 */ - 0x6a5c0000, 0x00000000, /* 490 - 1168 */ - 0x72110000, 0x00000000, /* 498 - 1176 */ - 0x6a5d0000, 0x00000000, /* 4a0 - 1184 */ - 0x72120000, 0x00000000, /* 4a8 - 1192 */ - 0x6a5e0000, 0x00000000, /* 4b0 - 1200 */ - 0x72130000, 0x00000000, /* 4b8 - 1208 */ - 0x6a5f0000, 0x00000000, /* 4c0 - 1216 */ - 0x90080000, 0x00000000, /* 4c8 - 1224 */ - 0x725c0000, 0x00000000, /* 4d0 - 1232 */ - 0x6a100000, 0x00000000, /* 4d8 - 1240 */ - 0x725d0000, 0x00000000, /* 4e0 - 1248 */ - 0x6a110000, 0x00000000, /* 4e8 - 1256 */ - 0x725e0000, 0x00000000, /* 4f0 - 1264 */ - 0x6a120000, 0x00000000, /* 4f8 - 1272 */ - 0x725f0000, 0x00000000, /* 500 - 1280 */ - 0x6a130000, 0x00000000, /* 508 - 1288 */ - 0x90080000, 0x00000000, /* 510 - 1296 */ - 0x7c027f00, 0x00000000, /* 518 - 1304 */ - 0x60000008, 0x00000000, /* 520 - 1312 */ - 0x60000040, 0x00000000, /* 528 - 1320 */ - 0x48000000, 0x00000000, /* 530 - 1328 */ - 0x90080000, 0x00000000, /* 538 - 1336 */ - 0x88880000, 0xffffffd0, /* 540 - 1344 */ - 0x98080000, 0x0000ff00, /* 548 - 1352 */ - 0x60000040, 0x00000000, /* 550 - 1360 */ - 0x1f000028, 0x00000028, /* 558 - 1368 */ - 0x98080000, 0x0000ff02, /* 560 - 1376 */ + 0x80880000, 0xfffffc88, /* 390 - 912 */ + 0x58000008, 0x00000000, /* 398 - 920 */ + 0x60000040, 0x00000000, /* 3a0 - 928 */ + 0x1e000038, 0x00000038, /* 3a8 - 936 */ + 0x60000008, 0x00000000, /* 3b0 - 944 */ + 0x80880000, 0xfffffc60, /* 3b8 - 952 */ + 0x1a000040, 0x00000040, /* 3c0 - 960 */ + 0x80880000, 0xfffffc50, /* 3c8 - 968 */ + 0x1b000048, 0x00000048, /* 3d0 - 976 */ + 0x80880000, 0xfffffc40, /* 3d8 - 984 */ + 0x88880000, 0x000000b8, /* 3e0 - 992 */ + 0x7a340200, 0x00000000, /* 3e8 - 1000 */ + 0x19000050, 0x00000050, /* 3f0 - 1008 */ + 0x7e350100, 0x00000000, /* 3f8 - 1016 */ + 0x7e100800, 0x00000000, /* 400 - 1024 */ + 0x7f110000, 0x00000000, /* 408 - 1032 */ + 0x7f120000, 0x00000000, /* 410 - 1040 */ + 0x7f130000, 0x00000000, /* 418 - 1048 */ + 0x818b0000, 0xffffffc8, /* 420 - 1056 */ + 0x88880000, 0x000000b8, /* 428 - 1064 */ + 0x7c34fd00, 0x00000000, /* 430 - 1072 */ + 0x80880000, 0xfffffbe0, /* 438 - 1080 */ + 0x88880000, 0x00000058, /* 440 - 1088 */ + 0x7a340200, 0x00000000, /* 448 - 1096 */ + 0x18000050, 0x00000050, /* 450 - 1104 */ + 0x7e350100, 0x00000000, /* 458 - 1112 */ + 0x7e100800, 0x00000000, /* 460 - 1120 */ + 0x7f110000, 0x00000000, /* 468 - 1128 */ + 0x7f120000, 0x00000000, /* 470 - 1136 */ + 0x7f130000, 0x00000000, /* 478 - 1144 */ + 0x808b0000, 0xffffffc8, /* 480 - 1152 */ + 0x88880000, 0x00000058, /* 488 - 1160 */ + 0x7c34fd00, 0x00000000, /* 490 - 1168 */ + 0x80880000, 0xfffffb80, /* 498 - 1176 */ + 0x72100000, 0x00000000, /* 4a0 - 1184 */ + 0x6a5c0000, 0x00000000, /* 4a8 - 1192 */ + 0x72110000, 0x00000000, /* 4b0 - 1200 */ + 0x6a5d0000, 0x00000000, /* 4b8 - 1208 */ + 0x72120000, 0x00000000, /* 4c0 - 1216 */ + 0x6a5e0000, 0x00000000, /* 4c8 - 1224 */ + 0x72130000, 0x00000000, /* 4d0 - 1232 */ + 0x6a5f0000, 0x00000000, /* 4d8 - 1240 */ + 0x90080000, 0x00000000, /* 4e0 - 1248 */ + 0x725c0000, 0x00000000, /* 4e8 - 1256 */ + 0x6a100000, 0x00000000, /* 4f0 - 1264 */ + 0x725d0000, 0x00000000, /* 4f8 - 1272 */ + 0x6a110000, 0x00000000, /* 500 - 1280 */ + 0x725e0000, 0x00000000, /* 508 - 1288 */ + 0x6a120000, 0x00000000, /* 510 - 1296 */ + 0x725f0000, 0x00000000, /* 518 - 1304 */ + 0x6a130000, 0x00000000, /* 520 - 1312 */ + 0x90080000, 0x00000000, /* 528 - 1320 */ + 0x7c027f00, 0x00000000, /* 530 - 1328 */ + 0x60000008, 0x00000000, /* 538 - 1336 */ + 0x60000040, 0x00000000, /* 540 - 1344 */ + 0x48000000, 0x00000000, /* 548 - 1352 */ + 0x90080000, 0x00000000, /* 550 - 1360 */ + 0x88880000, 0xffffffd0, /* 558 - 1368 */ + 0x98080000, 0x0000ff00, /* 560 - 1376 */ 0x60000040, 0x00000000, /* 568 - 1384 */ - 0x1f000030, 0x00000030, /* 570 - 1392 */ - 0x98080000, 0x0000ff03, /* 578 - 1400 */ - 0x10000000, 0x00000000, /* 580 - 1408 */ + 0x1f000028, 0x00000028, /* 570 - 1392 */ + 0x98080000, 0x0000ff02, /* 578 - 1400 */ + 0x60000040, 0x00000000, /* 580 - 1408 */ + 0x1f000030, 0x00000030, /* 588 - 1416 */ + 0x98080000, 0x0000ff03, /* 590 - 1424 */ + 0x80000000, 0x00000000, /* 598 - 1432 */ }; const u_int32_t lun_switch[] = { @@ -225,7 +228,15 @@ const u_int32_t load_dsa[] = { 0x43000018, 0x00000000, /* 040 - 64 */ 0xc0000004, 0x00000000, 0x00000000, /* 048 - 72 */ 0x80080000, 0x00000000, /* 054 - 84 */ - 0x10000000, 0x00000000, /* 05c - 92 */ + 0x80000000, 0x00000000, /* 05c - 92 */ +}; + +const u_int32_t siop_led_on[] = { + 0x7c07fe00, 0x00000000, /* 000 - 0 */ +}; + +const u_int32_t siop_led_off[] = { + 0x7a070100, 0x00000000, /* 000 - 0 */ }; #define A_t_id 0x00000018 @@ -250,28 +261,30 @@ const u_int32_t load_dsa[] = { #define A_flag_data 0x00000002 #define A_flag_data_mask 0x000000fd #define Ent_waitphase 0x00000020 -#define Ent_send_msgout 0x00000380 -#define Ent_msgout 0x00000390 -#define Ent_msgin 0x00000310 -#define Ent_handle_msgin 0x00000320 -#define Ent_msgin_ack 0x00000370 -#define Ent_dataout 0x00000428 -#define Ent_datain 0x000003c8 -#define Ent_cmdout 0x000003a8 -#define Ent_status 0x000003b8 -#define Ent_disconnect 0x00000518 -#define Ent_reselect 0x000001d8 +#define Ent_send_msgout 0x00000398 +#define Ent_msgout 0x000003a8 +#define Ent_msgin 0x00000328 +#define Ent_handle_msgin 0x00000338 +#define Ent_msgin_ack 0x00000388 +#define Ent_dataout 0x00000440 +#define Ent_datain 0x000003e0 +#define Ent_cmdout 0x000003c0 +#define Ent_status 0x000003d0 +#define Ent_disconnect 0x00000530 +#define Ent_reselect 0x000001e0 #define Ent_reselected 0x00000000 -#define Ent_selected 0x00000370 -#define Ent_script_sched 0x00000068 -#define Ent_script_sched_slot0 0x00000098 -#define Ent_get_extmsgdata 0x00000568 -#define Ent_resel_targ0 0x00000220 -#define Ent_msgin_space 0x00000580 -#define Ent_lunsw_return 0x000002a0 +#define Ent_selected 0x00000388 +#define Ent_script_sched 0x00000070 +#define Ent_script_sched_slot0 0x000000a0 +#define Ent_get_extmsgdata 0x00000580 +#define Ent_resel_targ0 0x00000238 +#define Ent_msgin_space 0x00000598 +#define Ent_lunsw_return 0x000002b8 +#define Ent_led_on1 0x00000068 +#define Ent_led_on2 0x00000220 +#define Ent_led_off 0x00000210 #define E_abs_script_sched_slot0 0x00000000 u_int32_t E_abs_script_sched_slot0_Used[] = { - 0x00000027, 0x00000029, 0x0000002b, 0x0000002d, @@ -311,13 +324,11 @@ u_int32_t E_abs_script_sched_slot0_Used[] = { 0x00000071, 0x00000073, 0x00000075, + 0x00000077, }; #define E_abs_targ0 0x00000000 u_int32_t E_abs_targ0_Used[] = { - 0x00000089, - 0x0000008b, - 0x0000008d, 0x0000008f, 0x00000091, 0x00000093, @@ -330,13 +341,16 @@ u_int32_t E_abs_targ0_Used[] = { 0x000000a1, 0x000000a3, 0x000000a5, + 0x000000a7, + 0x000000a9, + 0x000000ab, }; #define E_abs_msgin 0x00000000 u_int32_t E_abs_msgin_Used[] = { - 0x000000a9, - 0x000000b1, - 0x000000b9, + 0x000000af, + 0x000000b7, + 0x000000bf, }; #define Ent_lun_switch_entry 0x00000018