Commit cd346cdc authored by Linus Torvalds's avatar Linus Torvalds

Merge http://linux-isdn.bkbits.net/linux-2.5.make

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 0807dd03 908e1913
...@@ -48,11 +48,35 @@ ifndef KBUILD_VERBOSE ...@@ -48,11 +48,35 @@ ifndef KBUILD_VERBOSE
KBUILD_VERBOSE = 1 KBUILD_VERBOSE = 1
endif endif
# Decide whether to build built-in, modular, or both # Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
KBUILD_MODULES := 1 KBUILD_MODULES :=
KBUILD_BUILTIN := 1 KBUILD_BUILTIN := 1
# If we have only "make modules", don't compile built-in objects.
ifeq ($(MAKECMDGOALS),modules)
KBUILD_BUILTIN :=
endif
# If we have "make <whatever> modules", compile modules
# in addition to whatever we do anyway.
ifneq ($(filter modules,$(MAKECMDGOALS)),)
KBUILD_MODULES := 1
endif
# Just "make" or "make all" shall build modules as well
ifeq ($(MAKECMDGOALS),)
KBUILD_MODULES := 1
endif
ifneq ($(filter all,$(MAKECMDGOALS)),)
KBUILD_MODULES := 1
endif
export KBUILD_MODULES KBUILD_BUILTIN export KBUILD_MODULES KBUILD_BUILTIN
# Beautify output # Beautify output
...@@ -120,6 +144,8 @@ export CPPFLAGS EXPORT_FLAGS NOSTDINC_FLAGS ...@@ -120,6 +144,8 @@ export CPPFLAGS EXPORT_FLAGS NOSTDINC_FLAGS
export CFLAGS CFLAGS_KERNEL CFLAGS_MODULE export CFLAGS CFLAGS_KERNEL CFLAGS_MODULE
export AFLAGS AFLAGS_KERNEL AFLAGS_MODULE export AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
SUBDIRS := init kernel mm fs ipc lib drivers sound net
noconfig_targets := xconfig menuconfig config oldconfig randconfig \ noconfig_targets := xconfig menuconfig config oldconfig randconfig \
defconfig allyesconfig allnoconfig allmodconfig \ defconfig allyesconfig allnoconfig allmodconfig \
clean mrproper distclean \ clean mrproper distclean \
...@@ -182,7 +208,7 @@ endif ...@@ -182,7 +208,7 @@ endif
# Link components for vmlinux # Link components for vmlinux
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
SUBDIRS := init kernel mm fs ipc lib drivers sound net
INIT := init/init.o INIT := init/init.o
CORE_FILES := kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o CORE_FILES := kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
LIBS := lib/lib.a LIBS := lib/lib.a
...@@ -254,6 +280,7 @@ $(SUBDIRS): .hdepend prepare ...@@ -254,6 +280,7 @@ $(SUBDIRS): .hdepend prepare
.PHONY: prepare .PHONY: prepare
prepare: include/linux/version.h include/asm include/config/MARKER prepare: include/linux/version.h include/asm include/config/MARKER
@echo ' Starting the build. KBUILD_BUILTIN=$(KBUILD_BUILTIN) KBUILD_MODULES=$(KBUILD_MODULES)'
# Single targets # Single targets
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
...@@ -384,8 +411,7 @@ MODFLAGS += -include $(HPATH)/linux/modversions.h ...@@ -384,8 +411,7 @@ MODFLAGS += -include $(HPATH)/linux/modversions.h
endif endif
.PHONY: modules .PHONY: modules
modules: modules: $(SUBDIRS)
@$(MAKE) KBUILD_BUILTIN= $(SUBDIRS)
# Install modules # Install modules
...@@ -549,6 +575,7 @@ CLEAN_FILES += \ ...@@ -549,6 +575,7 @@ CLEAN_FILES += \
drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c \ drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c \
drivers/char/conmakehash \ drivers/char/conmakehash \
drivers/char/drm/*-mod.c \ drivers/char/drm/*-mod.c \
drivers/char/defkeymap.c drivers/char/qtronixmap.c \
drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist \ drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist \
drivers/zorro/devlist.h drivers/zorro/gen-devlist \ drivers/zorro/devlist.h drivers/zorro/gen-devlist \
sound/oss/bin2hex sound/oss/hex2hex \ sound/oss/bin2hex sound/oss/hex2hex \
...@@ -559,9 +586,12 @@ CLEAN_FILES += \ ...@@ -559,9 +586,12 @@ CLEAN_FILES += \
drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \ drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \
drivers/scsi/aic7xxx/aicasm/y.tab.h \ drivers/scsi/aic7xxx/aicasm/y.tab.h \
drivers/scsi/aic7xxx/aicasm/aicasm \ drivers/scsi/aic7xxx/aicasm/aicasm \
drivers/scsi/53c700_d.h \ drivers/scsi/53c700_d.h drivers/scsi/sim710_d.h \
net/khttpd/make_times_h \ drivers/scsi/53c7xx_d.h drivers/scsi/53c7xx_u.h \
net/khttpd/times.h \ drivers/scsi/53c8xx_d.h drivers/scsi/53c8xx_u.h \
net/802/cl2llc.c net/802/transit/pdutr.h net/802/transit/timertr.h \
net/802/pseudo/pseudocode.h \
net/khttpd/make_times_h net/khttpd/times.h \
submenu* submenu*
# files removed with 'make mrproper' # files removed with 'make mrproper'
......
...@@ -22,6 +22,30 @@ else ...@@ -22,6 +22,30 @@ else
TOPDIR_REL := $(subst $(space),,$(foreach d,$(subst /, ,$(RELDIR)),../)) TOPDIR_REL := $(subst $(space),,$(foreach d,$(subst /, ,$(RELDIR)),../))
endif endif
# Some paths for the Makefiles to use
# ---------------------------------------------------------------------------
# Usage:
#
# $(obj)/target.o : target.o in the build dir
# $(src)/target.c : target.c in the source dir
# $(objtree)/include/linux/version.h : Some file relative to the build
# dir root
# $(srctree)/include/linux/module.h : Some file relative to the source
# dir root
#
# Those can only be used in the section after
# include $(TOPDIR)/Rules.make, i.e for generated files and the like.
# Intentionally.
#
# We don't support separate source / object yet, so these are just
# placeholders for now
obj := .
src := .
objtree := $(TOPDIR)
srctree := $(TOPDIR)
# Figure out what we need to build from the various variables # Figure out what we need to build from the various variables
# =========================================================================== # ===========================================================================
...@@ -382,6 +406,13 @@ targets += $(host-progs-single) $(host-progs-multi-objs) $(host-progs-multi) ...@@ -382,6 +406,13 @@ targets += $(host-progs-single) $(host-progs-multi-objs) $(host-progs-multi)
endif # ! modules_install endif # ! modules_install
endif # ! fastdep endif # ! fastdep
# Shipped files
# ===========================================================================
%:: %_shipped
@echo ' CP $(RELDIR)/$@'
@cp $< $@
# =========================================================================== # ===========================================================================
# Generic stuff # Generic stuff
# =========================================================================== # ===========================================================================
......
...@@ -110,6 +110,8 @@ vmlinux: arch/i386/vmlinux.lds ...@@ -110,6 +110,8 @@ vmlinux: arch/i386/vmlinux.lds
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \ .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
clean archclean archmrproper clean archclean archmrproper
all: bzImage
zImage: vmlinux zImage: vmlinux
@$(MAKEBOOT) zImage @$(MAKEBOOT) zImage
......
...@@ -20,5 +20,5 @@ obj-y += $(obj-$(MACHINE)) ...@@ -20,5 +20,5 @@ obj-y += $(obj-$(MACHINE))
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
%.c: %.map $(obj)/%.c: $(src)/%.map
loadkeys --mktable $< > $@ loadkeys --mktable $< > $@
...@@ -52,52 +52,26 @@ endif ...@@ -52,52 +52,26 @@ endif
obj-$(CONFIG_ATM_FORE200E) += fore_200e.o obj-$(CONFIG_ATM_FORE200E) += fore_200e.o
EXTRA_CFLAGS=-g
fore_200e-objs := fore200e.o $(FORE200E_FW_OBJS) fore_200e-objs := fore200e.o $(FORE200E_FW_OBJS)
host-progs := fore200e_mkfirm host-progs := fore200e_mkfirm
include $(TOPDIR)/Rules.make EXTRA_CFLAGS := -g
include $(TOPDIR)/Rules.make
# FORE Systems 200E-series firmware magic # FORE Systems 200E-series firmware magic
fore200e_pca_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_PCA_FW)) \ $(obj)/fore200e_pca_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_PCA_FW)) \
fore200e_mkfirm $(obj)/fore200e_mkfirm
./fore200e_mkfirm -k -b _fore200e_pca_fw \ $(obj)/fore200e_mkfirm -k -b _fore200e_pca_fw \
-i $(CONFIG_ATM_FORE200E_PCA_FW) -o $@ -i $(CONFIG_ATM_FORE200E_PCA_FW) -o $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_ATM_FORE200E_PCA_FW)), $$(CONFIG_ATM_FORE200E_PCA_FW))'; \ $(obj)/fore200e_sba_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_SBA_FW)) \
echo 'FORE200E_FW_UP_TO_DATE += $@'; \ $(obj)/fore200e_mkfirm
echo 'endif' \ $(obj)/fore200e_mkfirm -k -b _fore200e_sba_fw \
) >.$@.fw
fore200e_sba_fw.c: $(patsubst "%", %, $(CONFIG_ATM_FORE200E_SBA_FW)) \
fore200e_mkfirm
./fore200e_mkfirm -k -b _fore200e_sba_fw \
-i $(CONFIG_ATM_FORE200E_SBA_FW) -o $@ -i $(CONFIG_ATM_FORE200E_SBA_FW) -o $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_ATM_FORE200E_SBA_FW)), $$(CONFIG_ATM_FORE200E_SBA_FW))'; \
echo 'FORE200E_FW_UP_TO_DATE += $@'; \
echo 'endif' \
) >.$@.fw
# deal with the various suffixes of the binary firmware images # deal with the various suffixes of the binary firmware images
%.bin %.bin1 %.bin2: %.data $(obj)/%.bin $(obj)/%.bin1 $(obj)/%.bin2: $(obj)/%.data
objcopy -Iihex $< -Obinary $@.gz objcopy -Iihex $< -Obinary $@.gz
gzip -df $@.gz gzip -df $@.gz
# firmware dependency stuff taken from drivers/sound/Makefile
FORE200E_FW_UP_TO_DATE :=
FORE200E_FW_FILES := $(wildcard .fore200e_*.fw)
ifneq ($(FORE200E_FW_FILES),)
include $(FORE200E_FW_FILES)
endif
FORE200E_FW_CHANGED := $(filter-out $(FORE200E_FW_UP_TO_DATE), \
fore200e_pca_fw.c fore200e_sba_fw.c)
ifneq ($(FORE200E_FW_CHANGED),)
$(FORE200E_FW_CHANGED): FORCE
endif
...@@ -203,7 +203,6 @@ extern int blk_dev_init(void); ...@@ -203,7 +203,6 @@ extern int blk_dev_init(void);
#ifdef CONFIG_FUSION #ifdef CONFIG_FUSION
extern int fusion_init(void); extern int fusion_init(void);
#endif #endif
extern int net_dev_init(void);
extern int soc_probe(void); extern int soc_probe(void);
extern int atmdev_init(void); extern int atmdev_init(void);
extern int i2o_init(void); extern int i2o_init(void);
...@@ -227,9 +226,6 @@ int __init device_init(void) ...@@ -227,9 +226,6 @@ int __init device_init(void)
#ifdef CONFIG_BLK_CPQ_DA #ifdef CONFIG_BLK_CPQ_DA
cpqarray_init(); cpqarray_init();
#endif #endif
#ifdef CONFIG_NET
net_dev_init();
#endif
#ifdef CONFIG_ATM #ifdef CONFIG_ATM
(void) atmdev_init(); (void) atmdev_init();
#endif #endif
......
...@@ -216,13 +216,11 @@ host-progs := conmakehash ...@@ -216,13 +216,11 @@ host-progs := conmakehash
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
consolemap_deftbl.c: $(FONTMAPFILE) conmakehash $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
./conmakehash $< > $@ $(obj)/conmakehash $< > $@
.DELETE_ON_ERROR: $(obj)/defkeymap.c: $(src)/defkeymap.map
defkeymap.c: defkeymap.map
set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@ set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
qtronixmap.c: qtronixmap.map $(obj)/qtronixmap.c: $(src)/qtronixmap.map
set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@ set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
/* Do not edit this file! It was automatically generated by */
/* loadkeys --mktable defkeymap.map > defkeymap.c */
#include <linux/types.h>
#include <linux/keyboard.h>
#include <linux/kd.h>
u_short plain_map[NR_KEYS] = {
0xf200, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
0xf703, 0xf020, 0xf207, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short shift_map[NR_KEYS] = {
0xf200, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
0xf703, 0xf020, 0xf207, 0xf10a, 0xf10b, 0xf10c, 0xf10d, 0xf10e,
0xf10f, 0xf110, 0xf111, 0xf112, 0xf113, 0xf213, 0xf203, 0xf307,
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf10a,
0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short altgr_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf040, 0xf200, 0xf024, 0xf200, 0xf200,
0xf07b, 0xf05b, 0xf05d, 0xf07d, 0xf05c, 0xf200, 0xf200, 0xf200,
0xfb71, 0xfb77, 0xf918, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
0xfb6f, 0xfb70, 0xf200, 0xf07e, 0xf201, 0xf702, 0xf914, 0xfb73,
0xf917, 0xf919, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf200,
0xf200, 0xf200, 0xf700, 0xf200, 0xfb7a, 0xfb78, 0xf916, 0xfb76,
0xf915, 0xfb6e, 0xfb6d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
0xf703, 0xf200, 0xf207, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf202, 0xf911,
0xf912, 0xf913, 0xf30b, 0xf90e, 0xf90f, 0xf910, 0xf30a, 0xf90b,
0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short ctrl_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01d, 0xf01e,
0xf01f, 0xf07f, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf200,
0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf201, 0xf702, 0xf001, 0xf013,
0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
0xf007, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
0xf002, 0xf00e, 0xf00d, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
0xf703, 0xf000, 0xf207, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf204, 0xf307,
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf200, 0xf10a,
0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short shift_ctrl_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf200, 0xf200,
0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
0xf00f, 0xf010, 0xf200, 0xf200, 0xf201, 0xf702, 0xf001, 0xf013,
0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
0xf200, 0xf200, 0xf700, 0xf200, 0xf01a, 0xf018, 0xf003, 0xf016,
0xf002, 0xf00e, 0xf00d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
0xf703, 0xf200, 0xf207, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf208, 0xf200, 0xf307,
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short alt_map[NR_KEYS] = {
0xf200, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
0xf703, 0xf820, 0xf207, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf907,
0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
u_short ctrl_alt_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
0xf80f, 0xf810, 0xf200, 0xf200, 0xf201, 0xf702, 0xf801, 0xf813,
0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
0xf200, 0xf200, 0xf700, 0xf200, 0xf81a, 0xf818, 0xf803, 0xf816,
0xf802, 0xf80e, 0xf80d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
0xf703, 0xf200, 0xf207, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf200, 0xf307,
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf200, 0xf50a,
0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
ushort *key_maps[MAX_NR_KEYMAPS] = {
plain_map, shift_map, altgr_map, 0,
ctrl_map, shift_ctrl_map, 0, 0,
alt_map, 0, 0, 0,
ctrl_alt_map, 0
};
unsigned int keymap_count = 7;
/*
* Philosophy: most people do not define more strings, but they who do
* often want quite a lot of string space. So, we statically allocate
* the default and allocate dynamically in chunks of 512 bytes.
*/
char func_buf[] = {
'\033', '[', '[', 'A', 0,
'\033', '[', '[', 'B', 0,
'\033', '[', '[', 'C', 0,
'\033', '[', '[', 'D', 0,
'\033', '[', '[', 'E', 0,
'\033', '[', '1', '7', '~', 0,
'\033', '[', '1', '8', '~', 0,
'\033', '[', '1', '9', '~', 0,
'\033', '[', '2', '0', '~', 0,
'\033', '[', '2', '1', '~', 0,
'\033', '[', '2', '3', '~', 0,
'\033', '[', '2', '4', '~', 0,
'\033', '[', '2', '5', '~', 0,
'\033', '[', '2', '6', '~', 0,
'\033', '[', '2', '8', '~', 0,
'\033', '[', '2', '9', '~', 0,
'\033', '[', '3', '1', '~', 0,
'\033', '[', '3', '2', '~', 0,
'\033', '[', '3', '3', '~', 0,
'\033', '[', '3', '4', '~', 0,
'\033', '[', '1', '~', 0,
'\033', '[', '2', '~', 0,
'\033', '[', '3', '~', 0,
'\033', '[', '4', '~', 0,
'\033', '[', '5', '~', 0,
'\033', '[', '6', '~', 0,
'\033', '[', 'M', 0,
'\033', '[', 'P', 0,
};
char *funcbufptr = func_buf;
int funcbufsize = sizeof(func_buf);
int funcbufleft = 0; /* space left */
char *func_table[MAX_NR_FUNC] = {
func_buf + 0,
func_buf + 5,
func_buf + 10,
func_buf + 15,
func_buf + 20,
func_buf + 25,
func_buf + 31,
func_buf + 37,
func_buf + 43,
func_buf + 49,
func_buf + 55,
func_buf + 61,
func_buf + 67,
func_buf + 73,
func_buf + 79,
func_buf + 85,
func_buf + 91,
func_buf + 97,
func_buf + 103,
func_buf + 109,
func_buf + 115,
func_buf + 120,
func_buf + 125,
func_buf + 130,
func_buf + 135,
func_buf + 140,
func_buf + 145,
0,
0,
func_buf + 149,
0,
};
struct kbdiacr accent_table[MAX_DIACR] = {
{'`', 'A', '\300'}, {'`', 'a', '\340'},
{'\'', 'A', '\301'}, {'\'', 'a', '\341'},
{'^', 'A', '\302'}, {'^', 'a', '\342'},
{'~', 'A', '\303'}, {'~', 'a', '\343'},
{'"', 'A', '\304'}, {'"', 'a', '\344'},
{'O', 'A', '\305'}, {'o', 'a', '\345'},
{'0', 'A', '\305'}, {'0', 'a', '\345'},
{'A', 'A', '\305'}, {'a', 'a', '\345'},
{'A', 'E', '\306'}, {'a', 'e', '\346'},
{',', 'C', '\307'}, {',', 'c', '\347'},
{'`', 'E', '\310'}, {'`', 'e', '\350'},
{'\'', 'E', '\311'}, {'\'', 'e', '\351'},
{'^', 'E', '\312'}, {'^', 'e', '\352'},
{'"', 'E', '\313'}, {'"', 'e', '\353'},
{'`', 'I', '\314'}, {'`', 'i', '\354'},
{'\'', 'I', '\315'}, {'\'', 'i', '\355'},
{'^', 'I', '\316'}, {'^', 'i', '\356'},
{'"', 'I', '\317'}, {'"', 'i', '\357'},
{'-', 'D', '\320'}, {'-', 'd', '\360'},
{'~', 'N', '\321'}, {'~', 'n', '\361'},
{'`', 'O', '\322'}, {'`', 'o', '\362'},
{'\'', 'O', '\323'}, {'\'', 'o', '\363'},
{'^', 'O', '\324'}, {'^', 'o', '\364'},
{'~', 'O', '\325'}, {'~', 'o', '\365'},
{'"', 'O', '\326'}, {'"', 'o', '\366'},
{'/', 'O', '\330'}, {'/', 'o', '\370'},
{'`', 'U', '\331'}, {'`', 'u', '\371'},
{'\'', 'U', '\332'}, {'\'', 'u', '\372'},
{'^', 'U', '\333'}, {'^', 'u', '\373'},
{'"', 'U', '\334'}, {'"', 'u', '\374'},
{'\'', 'Y', '\335'}, {'\'', 'y', '\375'},
{'T', 'H', '\336'}, {'t', 'h', '\376'},
{'s', 's', '\337'}, {'"', 'y', '\377'},
{'s', 'z', '\337'}, {'i', 'j', '\377'},
};
unsigned int accent_table_size = 68;
...@@ -23,14 +23,14 @@ include $(TOPDIR)/Rules.make ...@@ -23,14 +23,14 @@ include $(TOPDIR)/Rules.make
# Dependencies on generates files need to be listed explicitly # Dependencies on generates files need to be listed explicitly
sm_afsk1200.o: sm_tbl_afsk1200.h $(obj)/sm_afsk1200.o: $(obj)/sm_tbl_afsk1200.h
sm_afsk2400_7.o: sm_tbl_afsk2400_7.h $(obj)/sm_afsk2400_7.o: $(obj)/sm_tbl_afsk2400_7.h
sm_afsk2400_8.o: sm_tbl_afsk2400_8.h $(obj)/sm_afsk2400_8.o: $(obj)/sm_tbl_afsk2400_8.h
sm_afsk2666.o: sm_tbl_afsk2666.h $(obj)/sm_afsk2666.o: $(obj)/sm_tbl_afsk2666.h
sm_psk4800.o: sm_tbl_psk4800.h $(obj)/sm_psk4800.o: $(obj)/sm_tbl_psk4800.h
sm_hapn4800.o: sm_tbl_hapn4800.h $(obj)/sm_hapn4800.o: $(obj)/sm_tbl_hapn4800.h
sm_fsk9600.o: sm_tbl_fsk9600.h $(obj)/sm_fsk9600.o: $(obj)/sm_tbl_fsk9600.h
sm_tbl_%: gentbl $(obj)/sm_tbl_%: $(obj)/gentbl
./gentbl $<
...@@ -34,7 +34,13 @@ host-progs := gen-devlist ...@@ -34,7 +34,13 @@ host-progs := gen-devlist
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
names.o: devlist.h classlist.h # Dependencies on generated files need to be listed explicitly
devlist.h classlist.h: pci.ids gen-devlist $(obj)/names.o: $(obj)/devlist.h $(obj)/classlist.h
./gen-devlist <pci.ids
# And that's how to generate them
$(obj)/devlist.h: $(src)/pci.ids $(obj)/gen-devlist
$(obj)/gen-devlist < $<
$(obj)/classlist.h: $(obj)/devlist.h
...@@ -31,5 +31,3 @@ obj-$(CONFIG_SUN_JSFLASH) += jsflash.o ...@@ -31,5 +31,3 @@ obj-$(CONFIG_SUN_JSFLASH) += jsflash.o
obj-$(CONFIG_BBC_I2C) += bbc.o obj-$(CONFIG_BBC_I2C) += bbc.o
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
sunkbdmap.o: sunkeymap.c
/* DO NOT EDIT - Generated automatically by script_asm.pl */
static u32 SCRIPT[] = {
/*
; Script for the NCR (or symbios) 53c700 and 53c700-66 chip
;
; Copyright (C) 2001 James.Bottomley@HansenPartnership.com
;;-----------------------------------------------------------------------------
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;;
;;-----------------------------------------------------------------------------
;
; This script is designed to be modified for the particular command in
; operation. The particular variables pertaining to the commands are:
;
ABSOLUTE Device_ID = 0 ; ID of target for command
ABSOLUTE MessageCount = 0 ; Number of bytes in message
ABSOLUTE MessageLocation = 0 ; Addr of message
ABSOLUTE CommandCount = 0 ; Number of bytes in command
ABSOLUTE CommandAddress = 0 ; Addr of Command
ABSOLUTE StatusAddress = 0 ; Addr to receive status return
ABSOLUTE ReceiveMsgAddress = 0 ; Addr to receive msg
;
; This is the magic component for handling scatter-gather. Each of the
; SG components is preceeded by a script fragment which moves the
; necessary amount of data and jumps to the next SG segment. The final
; SG segment jumps back to . However, this address is the first SG script
; segment.
;
ABSOLUTE SGScriptStartAddress = 0
; The following represent status interrupts we use 3 hex digits for
; this: 0xPRS where
; P:
ABSOLUTE AFTER_SELECTION = 0x100
ABSOLUTE BEFORE_CMD = 0x200
ABSOLUTE AFTER_CMD = 0x300
ABSOLUTE AFTER_STATUS = 0x400
ABSOLUTE AFTER_DATA_IN = 0x500
ABSOLUTE AFTER_DATA_OUT = 0x600
ABSOLUTE DURING_DATA_IN = 0x700
; R:
ABSOLUTE NOT_MSG_OUT = 0x10
ABSOLUTE UNEXPECTED_PHASE = 0x20
ABSOLUTE NOT_MSG_IN = 0x30
ABSOLUTE UNEXPECTED_MSG = 0x40
ABSOLUTE MSG_IN = 0x50
ABSOLUTE SDTR_MSG_R = 0x60
ABSOLUTE REJECT_MSG_R = 0x70
ABSOLUTE DISCONNECT = 0x80
ABSOLUTE MSG_OUT = 0x90
ABSOLUTE WDTR_MSG_R = 0xA0
; S:
ABSOLUTE GOOD_STATUS = 0x1
; Combinations, since the script assembler can't process |
ABSOLUTE NOT_MSG_OUT_AFTER_SELECTION = 0x110
ABSOLUTE UNEXPECTED_PHASE_BEFORE_CMD = 0x220
ABSOLUTE UNEXPECTED_PHASE_AFTER_CMD = 0x320
ABSOLUTE NOT_MSG_IN_AFTER_STATUS = 0x430
ABSOLUTE GOOD_STATUS_AFTER_STATUS = 0x401
ABSOLUTE UNEXPECTED_PHASE_AFTER_DATA_IN = 0x520
ABSOLUTE UNEXPECTED_PHASE_AFTER_DATA_OUT = 0x620
ABSOLUTE UNEXPECTED_MSG_BEFORE_CMD = 0x240
ABSOLUTE MSG_IN_BEFORE_CMD = 0x250
ABSOLUTE MSG_IN_AFTER_CMD = 0x350
ABSOLUTE SDTR_MSG_BEFORE_CMD = 0x260
ABSOLUTE REJECT_MSG_BEFORE_CMD = 0x270
ABSOLUTE DISCONNECT_AFTER_CMD = 0x380
ABSOLUTE SDTR_MSG_AFTER_CMD = 0x360
ABSOLUTE WDTR_MSG_AFTER_CMD = 0x3A0
ABSOLUTE MSG_IN_AFTER_STATUS = 0x440
ABSOLUTE DISCONNECT_AFTER_DATA = 0x580
ABSOLUTE MSG_IN_AFTER_DATA_IN = 0x550
ABSOLUTE MSG_IN_AFTER_DATA_OUT = 0x650
ABSOLUTE MSG_OUT_AFTER_DATA_IN = 0x590
ABSOLUTE DATA_IN_AFTER_DATA_IN = 0x5a0
ABSOLUTE MSG_IN_DURING_DATA_IN = 0x750
ABSOLUTE DISCONNECT_DURING_DATA = 0x780
;
; Other interrupt conditions
;
ABSOLUTE RESELECTED_DURING_SELECTION = 0x1000
ABSOLUTE COMPLETED_SELECTION_AS_TARGET = 0x1001
ABSOLUTE RESELECTION_IDENTIFIED = 0x1003
;
; Fatal interrupt conditions. If you add to this, also add to the
; array of corresponding messages
;
ABSOLUTE FATAL = 0x2000
ABSOLUTE FATAL_UNEXPECTED_RESELECTION_MSG = 0x2000
ABSOLUTE FATAL_SEND_MSG = 0x2001
ABSOLUTE FATAL_NOT_MSG_IN_AFTER_SELECTION = 0x2002
ABSOLUTE FATAL_ILLEGAL_MSG_LENGTH = 0x2003
ABSOLUTE DEBUG_INTERRUPT = 0x3000
ABSOLUTE DEBUG_INTERRUPT1 = 0x3001
ABSOLUTE DEBUG_INTERRUPT2 = 0x3002
ABSOLUTE DEBUG_INTERRUPT3 = 0x3003
ABSOLUTE DEBUG_INTERRUPT4 = 0x3004
ABSOLUTE DEBUG_INTERRUPT5 = 0x3005
ABSOLUTE DEBUG_INTERRUPT6 = 0x3006
;
; SCSI Messages we interpret in the script
;
ABSOLUTE COMMAND_COMPLETE_MSG = 0x00
ABSOLUTE EXTENDED_MSG = 0x01
ABSOLUTE SDTR_MSG = 0x01
ABSOLUTE SAVE_DATA_PTRS_MSG = 0x02
ABSOLUTE RESTORE_DATA_PTRS_MSG = 0x03
ABSOLUTE WDTR_MSG = 0x03
ABSOLUTE DISCONNECT_MSG = 0x04
ABSOLUTE REJECT_MSG = 0x07
ABSOLUTE PARITY_ERROR_MSG = 0x09
ABSOLUTE SIMPLE_TAG_MSG = 0x20
ABSOLUTE IDENTIFY_MSG = 0x80
ABSOLUTE IDENTIFY_MSG_MASK = 0x7F
ABSOLUTE TWO_BYTE_MSG = 0x20
ABSOLUTE TWO_BYTE_MSG_MASK = 0x0F
; This is where the script begins
ENTRY StartUp
StartUp:
SELECT ATN Device_ID, Reselect
at 0x00000000 : */ 0x41000000,0x00000020,
/*
JUMP Finish, WHEN STATUS
at 0x00000002 : */ 0x830b0000,0x00000460,
/*
JUMP SendIdentifyMsg, IF MSG_OUT
at 0x00000004 : */ 0x860a0000,0x000001b0,
/*
INT NOT_MSG_OUT_AFTER_SELECTION
at 0x00000006 : */ 0x98080000,0x00000110,
/*
Reselect:
WAIT RESELECT SelectedAsTarget
at 0x00000008 : */ 0x50000000,0x00000058,
/*
INT RESELECTED_DURING_SELECTION, WHEN MSG_IN
at 0x0000000a : */ 0x9f0b0000,0x00001000,
/*
INT FATAL_NOT_MSG_IN_AFTER_SELECTION
at 0x0000000c : */ 0x98080000,0x00002002,
/*
ENTRY GetReselectionData
GetReselectionData:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x0000000e : */ 0x0f000001,0x00000000,
/*
INT RESELECTION_IDENTIFIED
at 0x00000010 : */ 0x98080000,0x00001003,
/*
ENTRY GetReselectionWithTag
GetReselectionWithTag:
MOVE 3, ReceiveMsgAddress, WHEN MSG_IN
at 0x00000012 : */ 0x0f000003,0x00000000,
/*
INT RESELECTION_IDENTIFIED
at 0x00000014 : */ 0x98080000,0x00001003,
/*
ENTRY SelectedAsTarget
SelectedAsTarget:
; Basically tell the selecting device that there's nothing here
SET TARGET
at 0x00000016 : */ 0x58000200,0x00000000,
/*
DISCONNECT
at 0x00000018 : */ 0x48000000,0x00000000,
/*
CLEAR TARGET
at 0x0000001a : */ 0x60000200,0x00000000,
/*
INT COMPLETED_SELECTION_AS_TARGET
at 0x0000001c : */ 0x98080000,0x00001001,
/*
;
; These are the messaging entries
;
; Send a message. Message count should be correctly patched
ENTRY SendMessage
SendMessage:
MOVE MessageCount, MessageLocation, WHEN MSG_OUT
at 0x0000001e : */ 0x0e000000,0x00000000,
/*
ResumeSendMessage:
RETURN, WHEN NOT MSG_OUT
at 0x00000020 : */ 0x96030000,0x00000000,
/*
INT FATAL_SEND_MSG
at 0x00000022 : */ 0x98080000,0x00002001,
/*
ENTRY SendMessagePhaseMismatch
SendMessagePhaseMismatch:
CLEAR ACK
at 0x00000024 : */ 0x60000040,0x00000000,
/*
JUMP ResumeSendMessage
at 0x00000026 : */ 0x80080000,0x00000080,
/*
;
; Receive a message. Need to identify the message to
; receive it correctly
ENTRY ReceiveMessage
ReceiveMessage:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x00000028 : */ 0x0f000001,0x00000000,
/*
;
; Use this entry if we've just tried to look at the first byte
; of the message and want to process it further
ProcessReceiveMessage:
JUMP ReceiveExtendedMessage, IF EXTENDED_MSG
at 0x0000002a : */ 0x800c0001,0x000000d0,
/*
RETURN, IF NOT TWO_BYTE_MSG, AND MASK TWO_BYTE_MSG_MASK
at 0x0000002c : */ 0x90040f20,0x00000000,
/*
CLEAR ACK
at 0x0000002e : */ 0x60000040,0x00000000,
/*
MOVE 1, ReceiveMsgAddress + 1, WHEN MSG_IN
at 0x00000030 : */ 0x0f000001,0x00000001,
/*
RETURN
at 0x00000032 : */ 0x90080000,0x00000000,
/*
ReceiveExtendedMessage:
CLEAR ACK
at 0x00000034 : */ 0x60000040,0x00000000,
/*
MOVE 1, ReceiveMsgAddress + 1, WHEN MSG_IN
at 0x00000036 : */ 0x0f000001,0x00000001,
/*
JUMP Receive1Byte, IF 0x01
at 0x00000038 : */ 0x800c0001,0x00000110,
/*
JUMP Receive2Byte, IF 0x02
at 0x0000003a : */ 0x800c0002,0x00000128,
/*
JUMP Receive3Byte, IF 0x03
at 0x0000003c : */ 0x800c0003,0x00000140,
/*
JUMP Receive4Byte, IF 0x04
at 0x0000003e : */ 0x800c0004,0x00000158,
/*
JUMP Receive5Byte, IF 0x05
at 0x00000040 : */ 0x800c0005,0x00000170,
/*
INT FATAL_ILLEGAL_MSG_LENGTH
at 0x00000042 : */ 0x98080000,0x00002003,
/*
Receive1Byte:
CLEAR ACK
at 0x00000044 : */ 0x60000040,0x00000000,
/*
MOVE 1, ReceiveMsgAddress + 2, WHEN MSG_IN
at 0x00000046 : */ 0x0f000001,0x00000002,
/*
RETURN
at 0x00000048 : */ 0x90080000,0x00000000,
/*
Receive2Byte:
CLEAR ACK
at 0x0000004a : */ 0x60000040,0x00000000,
/*
MOVE 2, ReceiveMsgAddress + 2, WHEN MSG_IN
at 0x0000004c : */ 0x0f000002,0x00000002,
/*
RETURN
at 0x0000004e : */ 0x90080000,0x00000000,
/*
Receive3Byte:
CLEAR ACK
at 0x00000050 : */ 0x60000040,0x00000000,
/*
MOVE 3, ReceiveMsgAddress + 2, WHEN MSG_IN
at 0x00000052 : */ 0x0f000003,0x00000002,
/*
RETURN
at 0x00000054 : */ 0x90080000,0x00000000,
/*
Receive4Byte:
CLEAR ACK
at 0x00000056 : */ 0x60000040,0x00000000,
/*
MOVE 4, ReceiveMsgAddress + 2, WHEN MSG_IN
at 0x00000058 : */ 0x0f000004,0x00000002,
/*
RETURN
at 0x0000005a : */ 0x90080000,0x00000000,
/*
Receive5Byte:
CLEAR ACK
at 0x0000005c : */ 0x60000040,0x00000000,
/*
MOVE 5, ReceiveMsgAddress + 2, WHEN MSG_IN
at 0x0000005e : */ 0x0f000005,0x00000002,
/*
RETURN
at 0x00000060 : */ 0x90080000,0x00000000,
/*
;
; Come here from the message processor to ignore the message
;
ENTRY IgnoreMessage
IgnoreMessage:
CLEAR ACK
at 0x00000062 : */ 0x60000040,0x00000000,
/*
RETURN
at 0x00000064 : */ 0x90080000,0x00000000,
/*
;
; Come here to send a reply to a message
;
ENTRY SendMessageWithATN
SendMessageWithATN:
SET ATN
at 0x00000066 : */ 0x58000008,0x00000000,
/*
CLEAR ACK
at 0x00000068 : */ 0x60000040,0x00000000,
/*
JUMP SendMessage
at 0x0000006a : */ 0x80080000,0x00000078,
/*
SendIdentifyMsg:
CALL SendMessage
at 0x0000006c : */ 0x88080000,0x00000078,
/*
CLEAR ATN
at 0x0000006e : */ 0x60000008,0x00000000,
/*
IgnoreMsgBeforeCommand:
CLEAR ACK
at 0x00000070 : */ 0x60000040,0x00000000,
/*
ENTRY SendCommand
SendCommand:
JUMP Finish, WHEN STATUS
at 0x00000072 : */ 0x830b0000,0x00000460,
/*
JUMP MsgInBeforeCommand, IF MSG_IN
at 0x00000074 : */ 0x870a0000,0x000002c0,
/*
INT UNEXPECTED_PHASE_BEFORE_CMD, IF NOT CMD
at 0x00000076 : */ 0x9a020000,0x00000220,
/*
MOVE CommandCount, CommandAddress, WHEN CMD
at 0x00000078 : */ 0x0a000000,0x00000000,
/*
ResumeSendCommand:
JUMP Finish, WHEN STATUS
at 0x0000007a : */ 0x830b0000,0x00000460,
/*
JUMP MsgInAfterCmd, IF MSG_IN
at 0x0000007c : */ 0x870a0000,0x00000248,
/*
JUMP DataIn, IF DATA_IN
at 0x0000007e : */ 0x810a0000,0x000002f8,
/*
JUMP DataOut, IF DATA_OUT
at 0x00000080 : */ 0x800a0000,0x00000338,
/*
INT UNEXPECTED_PHASE_AFTER_CMD
at 0x00000082 : */ 0x98080000,0x00000320,
/*
IgnoreMsgDuringData:
CLEAR ACK
at 0x00000084 : */ 0x60000040,0x00000000,
/*
; fall through to MsgInDuringData
Entry MsgInDuringData
MsgInDuringData:
;
; Could be we have nothing more to transfer
;
JUMP Finish, WHEN STATUS
at 0x00000086 : */ 0x830b0000,0x00000460,
/*
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x00000088 : */ 0x0f000001,0x00000000,
/*
JUMP DisconnectDuringDataIn, IF DISCONNECT_MSG
at 0x0000008a : */ 0x800c0004,0x00000398,
/*
JUMP IgnoreMsgDuringData, IF SAVE_DATA_PTRS_MSG
at 0x0000008c : */ 0x800c0002,0x00000210,
/*
JUMP IgnoreMsgDuringData, IF RESTORE_DATA_PTRS_MSG
at 0x0000008e : */ 0x800c0003,0x00000210,
/*
INT MSG_IN_DURING_DATA_IN
at 0x00000090 : */ 0x98080000,0x00000750,
/*
MsgInAfterCmd:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x00000092 : */ 0x0f000001,0x00000000,
/*
JUMP DisconnectAfterCmd, IF DISCONNECT_MSG
at 0x00000094 : */ 0x800c0004,0x00000298,
/*
JUMP IgnoreMsgInAfterCmd, IF SAVE_DATA_PTRS_MSG
at 0x00000096 : */ 0x800c0002,0x00000288,
/*
JUMP IgnoreMsgInAfterCmd, IF RESTORE_DATA_PTRS_MSG
at 0x00000098 : */ 0x800c0003,0x00000288,
/*
CALL ProcessReceiveMessage
at 0x0000009a : */ 0x88080000,0x000000a8,
/*
INT MSG_IN_AFTER_CMD
at 0x0000009c : */ 0x98080000,0x00000350,
/*
CLEAR ACK
at 0x0000009e : */ 0x60000040,0x00000000,
/*
JUMP ResumeSendCommand
at 0x000000a0 : */ 0x80080000,0x000001e8,
/*
IgnoreMsgInAfterCmd:
CLEAR ACK
at 0x000000a2 : */ 0x60000040,0x00000000,
/*
JUMP ResumeSendCommand
at 0x000000a4 : */ 0x80080000,0x000001e8,
/*
DisconnectAfterCmd:
CLEAR ACK
at 0x000000a6 : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x000000a8 : */ 0x48000000,0x00000000,
/*
ENTRY Disconnect1
Disconnect1:
INT DISCONNECT_AFTER_CMD
at 0x000000aa : */ 0x98080000,0x00000380,
/*
ENTRY Disconnect2
Disconnect2:
; We return here after a reselection
CLEAR ACK
at 0x000000ac : */ 0x60000040,0x00000000,
/*
JUMP ResumeSendCommand
at 0x000000ae : */ 0x80080000,0x000001e8,
/*
MsgInBeforeCommand:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x000000b0 : */ 0x0f000001,0x00000000,
/*
JUMP IgnoreMsgBeforeCommand, IF SAVE_DATA_PTRS_MSG
at 0x000000b2 : */ 0x800c0002,0x000001c0,
/*
JUMP IgnoreMsgBeforeCommand, IF RESTORE_DATA_PTRS_MSG
at 0x000000b4 : */ 0x800c0003,0x000001c0,
/*
CALL ProcessReceiveMessage
at 0x000000b6 : */ 0x88080000,0x000000a8,
/*
INT MSG_IN_BEFORE_CMD
at 0x000000b8 : */ 0x98080000,0x00000250,
/*
CLEAR ACK
at 0x000000ba : */ 0x60000040,0x00000000,
/*
JUMP SendCommand
at 0x000000bc : */ 0x80080000,0x000001c8,
/*
DataIn:
CALL SGScriptStartAddress
at 0x000000be : */ 0x88080000,0x00000000,
/*
ResumeDataIn:
JUMP Finish, WHEN STATUS
at 0x000000c0 : */ 0x830b0000,0x00000460,
/*
JUMP MsgInAfterDataIn, IF MSG_IN
at 0x000000c2 : */ 0x870a0000,0x00000358,
/*
JUMP DataInAfterDataIn, if DATA_IN
at 0x000000c4 : */ 0x810a0000,0x00000328,
/*
INT MSG_OUT_AFTER_DATA_IN, if MSG_OUT
at 0x000000c6 : */ 0x9e0a0000,0x00000590,
/*
INT UNEXPECTED_PHASE_AFTER_DATA_IN
at 0x000000c8 : */ 0x98080000,0x00000520,
/*
DataInAfterDataIn:
INT DATA_IN_AFTER_DATA_IN
at 0x000000ca : */ 0x98080000,0x000005a0,
/*
JUMP ResumeDataIn
at 0x000000cc : */ 0x80080000,0x00000300,
/*
DataOut:
CALL SGScriptStartAddress
at 0x000000ce : */ 0x88080000,0x00000000,
/*
ResumeDataOut:
JUMP Finish, WHEN STATUS
at 0x000000d0 : */ 0x830b0000,0x00000460,
/*
JUMP MsgInAfterDataOut, IF MSG_IN
at 0x000000d2 : */ 0x870a0000,0x000003e8,
/*
INT UNEXPECTED_PHASE_AFTER_DATA_OUT
at 0x000000d4 : */ 0x98080000,0x00000620,
/*
MsgInAfterDataIn:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x000000d6 : */ 0x0f000001,0x00000000,
/*
JUMP DisconnectAfterDataIn, IF DISCONNECT_MSG
at 0x000000d8 : */ 0x800c0004,0x000003c0,
/*
JUMP IgnoreMsgAfterData, IF SAVE_DATA_PTRS_MSG
at 0x000000da : */ 0x800c0002,0x00000428,
/*
JUMP IgnoreMsgAfterData, IF RESTORE_DATA_PTRS_MSG
at 0x000000dc : */ 0x800c0003,0x00000428,
/*
CALL ProcessReceiveMessage
at 0x000000de : */ 0x88080000,0x000000a8,
/*
INT MSG_IN_AFTER_DATA_IN
at 0x000000e0 : */ 0x98080000,0x00000550,
/*
CLEAR ACK
at 0x000000e2 : */ 0x60000040,0x00000000,
/*
JUMP ResumeDataIn
at 0x000000e4 : */ 0x80080000,0x00000300,
/*
DisconnectDuringDataIn:
CLEAR ACK
at 0x000000e6 : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x000000e8 : */ 0x48000000,0x00000000,
/*
ENTRY Disconnect3
Disconnect3:
INT DISCONNECT_DURING_DATA
at 0x000000ea : */ 0x98080000,0x00000780,
/*
ENTRY Disconnect4
Disconnect4:
; we return here after a reselection
CLEAR ACK
at 0x000000ec : */ 0x60000040,0x00000000,
/*
JUMP ResumeSendCommand
at 0x000000ee : */ 0x80080000,0x000001e8,
/*
DisconnectAfterDataIn:
CLEAR ACK
at 0x000000f0 : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x000000f2 : */ 0x48000000,0x00000000,
/*
ENTRY Disconnect5
Disconnect5:
INT DISCONNECT_AFTER_DATA
at 0x000000f4 : */ 0x98080000,0x00000580,
/*
ENTRY Disconnect6
Disconnect6:
; we return here after a reselection
CLEAR ACK
at 0x000000f6 : */ 0x60000040,0x00000000,
/*
JUMP ResumeDataIn
at 0x000000f8 : */ 0x80080000,0x00000300,
/*
MsgInAfterDataOut:
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x000000fa : */ 0x0f000001,0x00000000,
/*
JUMP DisconnectAfterDataOut, if DISCONNECT_MSG
at 0x000000fc : */ 0x800c0004,0x00000438,
/*
JUMP IgnoreMsgAfterData, IF SAVE_DATA_PTRS_MSG
at 0x000000fe : */ 0x800c0002,0x00000428,
/*
JUMP IgnoreMsgAfterData, IF RESTORE_DATA_PTRS_MSG
at 0x00000100 : */ 0x800c0003,0x00000428,
/*
CALL ProcessReceiveMessage
at 0x00000102 : */ 0x88080000,0x000000a8,
/*
INT MSG_IN_AFTER_DATA_OUT
at 0x00000104 : */ 0x98080000,0x00000650,
/*
CLEAR ACK
at 0x00000106 : */ 0x60000040,0x00000000,
/*
JUMP ResumeDataOut
at 0x00000108 : */ 0x80080000,0x00000340,
/*
IgnoreMsgAfterData:
CLEAR ACK
at 0x0000010a : */ 0x60000040,0x00000000,
/*
; Data in and out do the same thing on resume, so pick one
JUMP ResumeDataIn
at 0x0000010c : */ 0x80080000,0x00000300,
/*
DisconnectAfterDataOut:
CLEAR ACK
at 0x0000010e : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x00000110 : */ 0x48000000,0x00000000,
/*
ENTRY Disconnect7
Disconnect7:
INT DISCONNECT_AFTER_DATA
at 0x00000112 : */ 0x98080000,0x00000580,
/*
ENTRY Disconnect8
Disconnect8:
; we return here after a reselection
CLEAR ACK
at 0x00000114 : */ 0x60000040,0x00000000,
/*
JUMP ResumeDataOut
at 0x00000116 : */ 0x80080000,0x00000340,
/*
Finish:
MOVE 1, StatusAddress, WHEN STATUS
at 0x00000118 : */ 0x0b000001,0x00000000,
/*
INT NOT_MSG_IN_AFTER_STATUS, WHEN NOT MSG_IN
at 0x0000011a : */ 0x9f030000,0x00000430,
/*
MOVE 1, ReceiveMsgAddress, WHEN MSG_IN
at 0x0000011c : */ 0x0f000001,0x00000000,
/*
JUMP FinishCommandComplete, IF COMMAND_COMPLETE_MSG
at 0x0000011e : */ 0x800c0000,0x00000490,
/*
CALL ProcessReceiveMessage
at 0x00000120 : */ 0x88080000,0x000000a8,
/*
INT MSG_IN_AFTER_STATUS
at 0x00000122 : */ 0x98080000,0x00000440,
/*
ENTRY FinishCommandComplete
FinishCommandComplete:
CLEAR ACK
at 0x00000124 : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x00000126 : */ 0x48000000,0x00000000,
/*
ENTRY Finish1
Finish1:
INT GOOD_STATUS_AFTER_STATUS
at 0x00000128 : */ 0x98080000,0x00000401,
};
#define A_AFTER_CMD 0x00000300
static u32 A_AFTER_CMD_used[] __attribute((unused)) = {
};
#define A_AFTER_DATA_IN 0x00000500
static u32 A_AFTER_DATA_IN_used[] __attribute((unused)) = {
};
#define A_AFTER_DATA_OUT 0x00000600
static u32 A_AFTER_DATA_OUT_used[] __attribute((unused)) = {
};
#define A_AFTER_SELECTION 0x00000100
static u32 A_AFTER_SELECTION_used[] __attribute((unused)) = {
};
#define A_AFTER_STATUS 0x00000400
static u32 A_AFTER_STATUS_used[] __attribute((unused)) = {
};
#define A_BEFORE_CMD 0x00000200
static u32 A_BEFORE_CMD_used[] __attribute((unused)) = {
};
#define A_COMMAND_COMPLETE_MSG 0x00000000
static u32 A_COMMAND_COMPLETE_MSG_used[] __attribute((unused)) = {
0x0000011e,
};
#define A_COMPLETED_SELECTION_AS_TARGET 0x00001001
static u32 A_COMPLETED_SELECTION_AS_TARGET_used[] __attribute((unused)) = {
0x0000001d,
};
#define A_CommandAddress 0x00000000
static u32 A_CommandAddress_used[] __attribute((unused)) = {
0x00000079,
};
#define A_CommandCount 0x00000000
static u32 A_CommandCount_used[] __attribute((unused)) = {
0x00000078,
};
#define A_DATA_IN_AFTER_DATA_IN 0x000005a0
static u32 A_DATA_IN_AFTER_DATA_IN_used[] __attribute((unused)) = {
0x000000cb,
};
#define A_DEBUG_INTERRUPT 0x00003000
static u32 A_DEBUG_INTERRUPT_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT1 0x00003001
static u32 A_DEBUG_INTERRUPT1_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT2 0x00003002
static u32 A_DEBUG_INTERRUPT2_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT3 0x00003003
static u32 A_DEBUG_INTERRUPT3_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT4 0x00003004
static u32 A_DEBUG_INTERRUPT4_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT5 0x00003005
static u32 A_DEBUG_INTERRUPT5_used[] __attribute((unused)) = {
};
#define A_DEBUG_INTERRUPT6 0x00003006
static u32 A_DEBUG_INTERRUPT6_used[] __attribute((unused)) = {
};
#define A_DISCONNECT 0x00000080
static u32 A_DISCONNECT_used[] __attribute((unused)) = {
};
#define A_DISCONNECT_AFTER_CMD 0x00000380
static u32 A_DISCONNECT_AFTER_CMD_used[] __attribute((unused)) = {
0x000000ab,
};
#define A_DISCONNECT_AFTER_DATA 0x00000580
static u32 A_DISCONNECT_AFTER_DATA_used[] __attribute((unused)) = {
0x000000f5,
0x00000113,
};
#define A_DISCONNECT_DURING_DATA 0x00000780
static u32 A_DISCONNECT_DURING_DATA_used[] __attribute((unused)) = {
0x000000eb,
};
#define A_DISCONNECT_MSG 0x00000004
static u32 A_DISCONNECT_MSG_used[] __attribute((unused)) = {
0x0000008a,
0x00000094,
0x000000d8,
0x000000fc,
};
#define A_DURING_DATA_IN 0x00000700
static u32 A_DURING_DATA_IN_used[] __attribute((unused)) = {
};
#define A_Device_ID 0x00000000
static u32 A_Device_ID_used[] __attribute((unused)) = {
0x00000000,
};
#define A_EXTENDED_MSG 0x00000001
static u32 A_EXTENDED_MSG_used[] __attribute((unused)) = {
0x0000002a,
};
#define A_FATAL 0x00002000
static u32 A_FATAL_used[] __attribute((unused)) = {
};
#define A_FATAL_ILLEGAL_MSG_LENGTH 0x00002003
static u32 A_FATAL_ILLEGAL_MSG_LENGTH_used[] __attribute((unused)) = {
0x00000043,
};
#define A_FATAL_NOT_MSG_IN_AFTER_SELECTION 0x00002002
static u32 A_FATAL_NOT_MSG_IN_AFTER_SELECTION_used[] __attribute((unused)) = {
0x0000000d,
};
#define A_FATAL_SEND_MSG 0x00002001
static u32 A_FATAL_SEND_MSG_used[] __attribute((unused)) = {
0x00000023,
};
#define A_FATAL_UNEXPECTED_RESELECTION_MSG 0x00002000
static u32 A_FATAL_UNEXPECTED_RESELECTION_MSG_used[] __attribute((unused)) = {
};
#define A_GOOD_STATUS 0x00000001
static u32 A_GOOD_STATUS_used[] __attribute((unused)) = {
};
#define A_GOOD_STATUS_AFTER_STATUS 0x00000401
static u32 A_GOOD_STATUS_AFTER_STATUS_used[] __attribute((unused)) = {
0x00000129,
};
#define A_IDENTIFY_MSG 0x00000080
static u32 A_IDENTIFY_MSG_used[] __attribute((unused)) = {
};
#define A_IDENTIFY_MSG_MASK 0x0000007f
static u32 A_IDENTIFY_MSG_MASK_used[] __attribute((unused)) = {
};
#define A_MSG_IN 0x00000050
static u32 A_MSG_IN_used[] __attribute((unused)) = {
};
#define A_MSG_IN_AFTER_CMD 0x00000350
static u32 A_MSG_IN_AFTER_CMD_used[] __attribute((unused)) = {
0x0000009d,
};
#define A_MSG_IN_AFTER_DATA_IN 0x00000550
static u32 A_MSG_IN_AFTER_DATA_IN_used[] __attribute((unused)) = {
0x000000e1,
};
#define A_MSG_IN_AFTER_DATA_OUT 0x00000650
static u32 A_MSG_IN_AFTER_DATA_OUT_used[] __attribute((unused)) = {
0x00000105,
};
#define A_MSG_IN_AFTER_STATUS 0x00000440
static u32 A_MSG_IN_AFTER_STATUS_used[] __attribute((unused)) = {
0x00000123,
};
#define A_MSG_IN_BEFORE_CMD 0x00000250
static u32 A_MSG_IN_BEFORE_CMD_used[] __attribute((unused)) = {
0x000000b9,
};
#define A_MSG_IN_DURING_DATA_IN 0x00000750
static u32 A_MSG_IN_DURING_DATA_IN_used[] __attribute((unused)) = {
0x00000091,
};
#define A_MSG_OUT 0x00000090
static u32 A_MSG_OUT_used[] __attribute((unused)) = {
};
#define A_MSG_OUT_AFTER_DATA_IN 0x00000590
static u32 A_MSG_OUT_AFTER_DATA_IN_used[] __attribute((unused)) = {
0x000000c7,
};
#define A_MessageCount 0x00000000
static u32 A_MessageCount_used[] __attribute((unused)) = {
0x0000001e,
};
#define A_MessageLocation 0x00000000
static u32 A_MessageLocation_used[] __attribute((unused)) = {
0x0000001f,
};
#define A_NOT_MSG_IN 0x00000030
static u32 A_NOT_MSG_IN_used[] __attribute((unused)) = {
};
#define A_NOT_MSG_IN_AFTER_STATUS 0x00000430
static u32 A_NOT_MSG_IN_AFTER_STATUS_used[] __attribute((unused)) = {
0x0000011b,
};
#define A_NOT_MSG_OUT 0x00000010
static u32 A_NOT_MSG_OUT_used[] __attribute((unused)) = {
};
#define A_NOT_MSG_OUT_AFTER_SELECTION 0x00000110
static u32 A_NOT_MSG_OUT_AFTER_SELECTION_used[] __attribute((unused)) = {
0x00000007,
};
#define A_PARITY_ERROR_MSG 0x00000009
static u32 A_PARITY_ERROR_MSG_used[] __attribute((unused)) = {
};
#define A_REJECT_MSG 0x00000007
static u32 A_REJECT_MSG_used[] __attribute((unused)) = {
};
#define A_REJECT_MSG_BEFORE_CMD 0x00000270
static u32 A_REJECT_MSG_BEFORE_CMD_used[] __attribute((unused)) = {
};
#define A_REJECT_MSG_R 0x00000070
static u32 A_REJECT_MSG_R_used[] __attribute((unused)) = {
};
#define A_RESELECTED_DURING_SELECTION 0x00001000
static u32 A_RESELECTED_DURING_SELECTION_used[] __attribute((unused)) = {
0x0000000b,
};
#define A_RESELECTION_IDENTIFIED 0x00001003
static u32 A_RESELECTION_IDENTIFIED_used[] __attribute((unused)) = {
0x00000011,
0x00000015,
};
#define A_RESTORE_DATA_PTRS_MSG 0x00000003
static u32 A_RESTORE_DATA_PTRS_MSG_used[] __attribute((unused)) = {
0x0000008e,
0x00000098,
0x000000b4,
0x000000dc,
0x00000100,
};
#define A_ReceiveMsgAddress 0x00000000
static u32 A_ReceiveMsgAddress_used[] __attribute((unused)) = {
0x0000000f,
0x00000013,
0x00000029,
0x00000031,
0x00000037,
0x00000047,
0x0000004d,
0x00000053,
0x00000059,
0x0000005f,
0x00000089,
0x00000093,
0x000000b1,
0x000000d7,
0x000000fb,
0x0000011d,
};
#define A_SAVE_DATA_PTRS_MSG 0x00000002
static u32 A_SAVE_DATA_PTRS_MSG_used[] __attribute((unused)) = {
0x0000008c,
0x00000096,
0x000000b2,
0x000000da,
0x000000fe,
};
#define A_SDTR_MSG 0x00000001
static u32 A_SDTR_MSG_used[] __attribute((unused)) = {
};
#define A_SDTR_MSG_AFTER_CMD 0x00000360
static u32 A_SDTR_MSG_AFTER_CMD_used[] __attribute((unused)) = {
};
#define A_SDTR_MSG_BEFORE_CMD 0x00000260
static u32 A_SDTR_MSG_BEFORE_CMD_used[] __attribute((unused)) = {
};
#define A_SDTR_MSG_R 0x00000060
static u32 A_SDTR_MSG_R_used[] __attribute((unused)) = {
};
#define A_SGScriptStartAddress 0x00000000
static u32 A_SGScriptStartAddress_used[] __attribute((unused)) = {
0x000000bf,
0x000000cf,
};
#define A_SIMPLE_TAG_MSG 0x00000020
static u32 A_SIMPLE_TAG_MSG_used[] __attribute((unused)) = {
};
#define A_StatusAddress 0x00000000
static u32 A_StatusAddress_used[] __attribute((unused)) = {
0x00000119,
};
#define A_TWO_BYTE_MSG 0x00000020
static u32 A_TWO_BYTE_MSG_used[] __attribute((unused)) = {
0x0000002c,
};
#define A_TWO_BYTE_MSG_MASK 0x0000000f
static u32 A_TWO_BYTE_MSG_MASK_used[] __attribute((unused)) = {
0x0000002c,
};
#define A_UNEXPECTED_MSG 0x00000040
static u32 A_UNEXPECTED_MSG_used[] __attribute((unused)) = {
};
#define A_UNEXPECTED_MSG_BEFORE_CMD 0x00000240
static u32 A_UNEXPECTED_MSG_BEFORE_CMD_used[] __attribute((unused)) = {
};
#define A_UNEXPECTED_PHASE 0x00000020
static u32 A_UNEXPECTED_PHASE_used[] __attribute((unused)) = {
};
#define A_UNEXPECTED_PHASE_AFTER_CMD 0x00000320
static u32 A_UNEXPECTED_PHASE_AFTER_CMD_used[] __attribute((unused)) = {
0x00000083,
};
#define A_UNEXPECTED_PHASE_AFTER_DATA_IN 0x00000520
static u32 A_UNEXPECTED_PHASE_AFTER_DATA_IN_used[] __attribute((unused)) = {
0x000000c9,
};
#define A_UNEXPECTED_PHASE_AFTER_DATA_OUT 0x00000620
static u32 A_UNEXPECTED_PHASE_AFTER_DATA_OUT_used[] __attribute((unused)) = {
0x000000d5,
};
#define A_UNEXPECTED_PHASE_BEFORE_CMD 0x00000220
static u32 A_UNEXPECTED_PHASE_BEFORE_CMD_used[] __attribute((unused)) = {
0x00000077,
};
#define A_WDTR_MSG 0x00000003
static u32 A_WDTR_MSG_used[] __attribute((unused)) = {
};
#define A_WDTR_MSG_AFTER_CMD 0x000003a0
static u32 A_WDTR_MSG_AFTER_CMD_used[] __attribute((unused)) = {
};
#define A_WDTR_MSG_R 0x000000a0
static u32 A_WDTR_MSG_R_used[] __attribute((unused)) = {
};
#define Ent_Disconnect1 0x000002a8
#define Ent_Disconnect2 0x000002b0
#define Ent_Disconnect3 0x000003a8
#define Ent_Disconnect4 0x000003b0
#define Ent_Disconnect5 0x000003d0
#define Ent_Disconnect6 0x000003d8
#define Ent_Disconnect7 0x00000448
#define Ent_Disconnect8 0x00000450
#define Ent_Finish1 0x000004a0
#define Ent_Finish2 0x000004a8
#define Ent_FinishCommandComplete 0x00000490
#define Ent_GetReselectionData 0x00000038
#define Ent_GetReselectionWithTag 0x00000048
#define Ent_IgnoreMessage 0x00000188
#define Ent_MsgInDuringData 0x00000218
#define Ent_ReceiveMessage 0x000000a0
#define Ent_SelectedAsTarget 0x00000058
#define Ent_SendCommand 0x000001c8
#define Ent_SendMessage 0x00000078
#define Ent_SendMessagePhaseMismatch 0x00000090
#define Ent_SendMessageWithATN 0x00000198
#define Ent_StartUp 0x00000000
static u32 LABELPATCHES[] __attribute((unused)) = {
0x00000001,
0x00000003,
0x00000005,
0x00000009,
0x00000027,
0x0000002b,
0x00000039,
0x0000003b,
0x0000003d,
0x0000003f,
0x00000041,
0x0000006b,
0x0000006d,
0x00000073,
0x00000075,
0x0000007b,
0x0000007d,
0x0000007f,
0x00000081,
0x00000087,
0x0000008b,
0x0000008d,
0x0000008f,
0x00000095,
0x00000097,
0x00000099,
0x0000009b,
0x000000a1,
0x000000a5,
0x000000af,
0x000000b3,
0x000000b5,
0x000000b7,
0x000000bd,
0x000000c1,
0x000000c3,
0x000000c5,
0x000000cd,
0x000000d1,
0x000000d3,
0x000000d9,
0x000000db,
0x000000dd,
0x000000df,
0x000000e5,
0x000000ef,
0x000000f9,
0x000000fd,
0x000000ff,
0x00000101,
0x00000103,
0x00000109,
0x0000010d,
0x00000117,
0x0000011f,
0x00000121,
};
static struct {
u32 offset;
void *address;
} EXTERNAL_PATCHES[] __attribute((unused)) = {
};
static u32 INSTRUCTIONS __attribute((unused)) = 149;
static u32 PATCHES __attribute((unused)) = 56;
static u32 EXTERNAL_PATCHES_LEN __attribute((unused)) = 0;
/* DO NOT EDIT - Generated automatically by script_asm.pl */
static u32 SCRIPT[] = {
/*
; 53c710 driver. Modified from Drew Eckhardts driver
; for 53c810 by Richard Hirst [richard@sleepie.demon.co.uk]
;
; I have left the script for the 53c8xx family in here, as it is likely
; to be useful to see what I changed when bug hunting.
; NCR 53c810 driver, main script
; Sponsored by
; iX Multiuser Multitasking Magazine
; hm@ix.de
;
; Copyright 1993, 1994, 1995 Drew Eckhardt
; Visionary Computing
; (Unix and Linux consulting and custom programming)
; drew@PoohSticks.ORG
; +1 (303) 786-7975
;
; TolerANT and SCSI SCRIPTS are registered trademarks of NCR Corporation.
;
; PRE-ALPHA
;
; For more information, please consult
;
; NCR 53C810
; PCI-SCSI I/O Processor
; Data Manual
;
; NCR 53C710
; SCSI I/O Processor
; Programmers Guide
;
; NCR Microelectronics
; 1635 Aeroplaza Drive
; Colorado Springs, CO 80916
; 1+ (719) 578-3400
;
; Toll free literature number
; +1 (800) 334-5454
;
; IMPORTANT : This code is self modifying due to the limitations of
; the NCR53c7,8xx series chips. Persons debugging this code with
; the remote debugger should take this into account, and NOT set
; breakpoints in modified instructions.
;
; Design:
; The NCR53c7,8xx family of SCSI chips are busmasters with an onboard
; microcontroller using a simple instruction set.
;
; So, to minimize the effects of interrupt latency, and to maximize
; throughput, this driver offloads the practical maximum amount
; of processing to the SCSI chip while still maintaining a common
; structure.
;
; Where tradeoffs were needed between efficiency on the older
; chips and the newer NCR53c800 series, the NCR53c800 series
; was chosen.
;
; While the NCR53c700 and NCR53c700-66 lacked the facilities to fully
; automate SCSI transfers without host processor intervention, this
; isn't the case with the NCR53c710 and newer chips which allow
;
; - reads and writes to the internal registers from within the SCSI
; scripts, allowing the SCSI SCRIPTS(tm) code to save processor
; state so that multiple threads of execution are possible, and also
; provide an ALU for loop control, etc.
;
; - table indirect addressing for some instructions. This allows
; pointers to be located relative to the DSA ((Data Structure
; Address) register.
;
; These features make it possible to implement a mailbox style interface,
; where the same piece of code is run to handle I/O for multiple threads
; at once minimizing our need to relocate code. Since the NCR53c700/
; NCR53c800 series have a unique combination of features, making a
; a standard ingoing/outgoing mailbox system, costly, I've modified it.
;
; - Mailboxes are a mixture of code and data. This lets us greatly
; simplify the NCR53c810 code and do things that would otherwise
; not be possible.
;
; The saved data pointer is now implemented as follows :
;
; Control flow has been architected such that if control reaches
; munge_save_data_pointer, on a restore pointers message or
; reconnection, a jump to the address formerly in the TEMP register
; will allow the SCSI command to resume execution.
;
;
; Note : the DSA structures must be aligned on 32 bit boundaries,
; since the source and destination of MOVE MEMORY instructions
; must share the same alignment and this is the alignment of the
; NCR registers.
;
; For some systems (MVME166, for example) dmode is always the same, so don't
; waste time writing it
ABSOLUTE dsa_temp_lun = 0 ; Patch to lun for current dsa
ABSOLUTE dsa_temp_next = 0 ; Patch to dsa next for current dsa
ABSOLUTE dsa_temp_addr_next = 0 ; Patch to address of dsa next address
; for current dsa
ABSOLUTE dsa_temp_sync = 0 ; Patch to address of per-target
; sync routine
ABSOLUTE dsa_sscf_710 = 0 ; Patch to address of per-target
; sscf value (53c710)
ABSOLUTE dsa_temp_target = 0 ; Patch to id for current dsa
ABSOLUTE dsa_temp_addr_saved_pointer = 0; Patch to address of per-command
; saved data pointer
ABSOLUTE dsa_temp_addr_residual = 0 ; Patch to address of per-command
; current residual code
ABSOLUTE dsa_temp_addr_saved_residual = 0; Patch to address of per-command
; saved residual code
ABSOLUTE dsa_temp_addr_new_value = 0 ; Address of value for JUMP operand
ABSOLUTE dsa_temp_addr_array_value = 0 ; Address to copy to
ABSOLUTE dsa_temp_addr_dsa_value = 0 ; Address of this DSA value
;
; Once a device has initiated reselection, we need to compare it
; against the singly linked list of commands which have disconnected
; and are pending reselection. These commands are maintained in
; an unordered singly linked list of DSA structures, through the
; DSA pointers at their 'centers' headed by the reconnect_dsa_head
; pointer.
;
; To avoid complications in removing commands from the list,
; I minimize the amount of expensive (at eight operations per
; addition @ 500-600ns each) pointer operations which must
; be done in the NCR driver by precomputing them on the
; host processor during dsa structure generation.
;
; The fixed-up per DSA code knows how to recognize the nexus
; associated with the corresponding SCSI command, and modifies
; the source and destination pointers for the MOVE MEMORY
; instruction which is executed when reselected_ok is called
; to remove the command from the list. Similarly, DSA is
; loaded with the address of the next DSA structure and
; reselected_check_next is called if a failure occurs.
;
; Perhaps more concisely, the net effect of the mess is
;
; for (dsa = reconnect_dsa_head, dest = &reconnect_dsa_head,
; src = NULL; dsa; dest = &dsa->next, dsa = dsa->next) {
; src = &dsa->next;
; if (target_id == dsa->id && target_lun == dsa->lun) {
; *dest = *src;
; break;
; }
; }
;
; if (!dsa)
; error (int_err_unexpected_reselect);
; else
; longjmp (dsa->jump_resume, 0);
;
;
; Define DSA structure used for mailboxes
ENTRY dsa_code_template
dsa_code_template:
ENTRY dsa_code_begin
dsa_code_begin:
; RGH: Don't care about TEMP and DSA here
MOVE MEMORY 4, dsa_temp_addr_dsa_value, addr_scratch
at 0x00000000 : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, saved_dsa
at 0x00000003 : */ 0xc0000004,0x00000000,0x00000000,
/*
; We are about to go and select the device, so must set SSCF bits
MOVE MEMORY 4, dsa_sscf_710, addr_scratch
at 0x00000006 : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE SCRATCH3 TO SFBR
at 0x00000009 : */ 0x72370000,0x00000000,
/*
MOVE SFBR TO SBCL
at 0x0000000b : */ 0x6a0b0000,0x00000000,
/*
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x0000000d : */ 0xc0000004,0x00000000,0x00000000,
/*
CALL select
at 0x00000010 : */ 0x88080000,0x000001f8,
/*
; Handle the phase mismatch which may have resulted from the
; MOVE FROM dsa_msgout if we returned here. The CLEAR ATN
; may or may not be necessary, and we should update script_asm.pl
; to handle multiple pieces.
CLEAR ATN
at 0x00000012 : */ 0x60000008,0x00000000,
/*
CLEAR ACK
at 0x00000014 : */ 0x60000040,0x00000000,
/*
; Replace second operand with address of JUMP instruction dest operand
; in schedule table for this DSA. Becomes dsa_jump_dest in 53c7,8xx.c.
ENTRY dsa_code_fix_jump
dsa_code_fix_jump:
MOVE MEMORY 4, NOP_insn, 0
at 0x00000016 : */ 0xc0000004,0x00000000,0x00000000,
/*
JUMP select_done
at 0x00000019 : */ 0x80080000,0x00000230,
/*
; wrong_dsa loads the DSA register with the value of the dsa_next
; field.
;
wrong_dsa:
; NOTE DSA is corrupt when we arrive here!
; Patch the MOVE MEMORY INSTRUCTION such that
; the destination address is the address of the OLD
; next pointer.
;
MOVE MEMORY 4, dsa_temp_addr_next, reselected_ok_patch + 8
at 0x0000001b : */ 0xc0000004,0x00000000,0x000007ec,
/*
;
; Move the _contents_ of the next pointer into the DSA register as
; the next I_T_L or I_T_L_Q tupple to check against the established
; nexus.
;
MOVE MEMORY 4, dsa_temp_next, addr_scratch
at 0x0000001e : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, saved_dsa
at 0x00000021 : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x00000024 : */ 0xc0000004,0x00000000,0x00000000,
/*
JUMP reselected_check_next
at 0x00000027 : */ 0x80080000,0x000006f0,
/*
ABSOLUTE dsa_save_data_pointer = 0
ENTRY dsa_code_save_data_pointer
dsa_code_save_data_pointer:
; When we get here, TEMP has been saved in jump_temp+4, DSA is corrupt
; We MUST return with DSA correct
MOVE MEMORY 4, jump_temp+4, dsa_temp_addr_saved_pointer
at 0x00000029 : */ 0xc0000004,0x000009c8,0x00000000,
/*
; HARD CODED : 24 bytes needs to agree with 53c7,8xx.h
MOVE MEMORY 24, dsa_temp_addr_residual, dsa_temp_addr_saved_residual
at 0x0000002c : */ 0xc0000018,0x00000000,0x00000000,
/*
CLEAR ACK
at 0x0000002f : */ 0x60000040,0x00000000,
/*
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x00000031 : */ 0xc0000004,0x00000000,0x00000000,
/*
JUMP jump_temp
at 0x00000034 : */ 0x80080000,0x000009c4,
/*
ABSOLUTE dsa_restore_pointers = 0
ENTRY dsa_code_restore_pointers
dsa_code_restore_pointers:
; TEMP and DSA are corrupt when we get here, but who cares!
MOVE MEMORY 4, dsa_temp_addr_saved_pointer, jump_temp + 4
at 0x00000036 : */ 0xc0000004,0x00000000,0x000009c8,
/*
; HARD CODED : 24 bytes needs to agree with 53c7,8xx.h
MOVE MEMORY 24, dsa_temp_addr_saved_residual, dsa_temp_addr_residual
at 0x00000039 : */ 0xc0000018,0x00000000,0x00000000,
/*
CLEAR ACK
at 0x0000003c : */ 0x60000040,0x00000000,
/*
; Restore DSA, note we don't care about TEMP
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x0000003e : */ 0xc0000004,0x00000000,0x00000000,
/*
JUMP jump_temp
at 0x00000041 : */ 0x80080000,0x000009c4,
/*
ABSOLUTE dsa_check_reselect = 0
; dsa_check_reselect determines whether or not the current target and
; lun match the current DSA
ENTRY dsa_code_check_reselect
dsa_code_check_reselect:
MOVE LCRC TO SFBR ; LCRC has our ID and his ID bits set
at 0x00000043 : */ 0x72230000,0x00000000,
/*
JUMP REL (wrong_dsa), IF NOT dsa_temp_target, AND MASK 0x80
at 0x00000045 : */ 0x80848000,0x00ffff50,
/*
;
; Hack - move to scratch first, since SFBR is not writeable
; via the CPU and hence a MOVE MEMORY instruction.
;
MOVE MEMORY 1, reselected_identify, addr_scratch
at 0x00000047 : */ 0xc0000001,0x00000000,0x00000000,
/*
; BIG ENDIAN ON MVME16x
MOVE SCRATCH3 TO SFBR
at 0x0000004a : */ 0x72370000,0x00000000,
/*
; FIXME : we need to accommodate bit fielded and binary here for '7xx/'8xx chips
; Are you sure about that? richard@sleepie.demon.co.uk
JUMP REL (wrong_dsa), IF NOT dsa_temp_lun, AND MASK 0xf8
at 0x0000004c : */ 0x8084f800,0x00ffff34,
/*
; Patch the MOVE MEMORY INSTRUCTION such that
; the source address is the address of this dsa's
; next pointer.
MOVE MEMORY 4, dsa_temp_addr_next, reselected_ok_patch + 4
at 0x0000004e : */ 0xc0000004,0x00000000,0x000007e8,
/*
CALL reselected_ok
at 0x00000051 : */ 0x88080000,0x00000798,
/*
; Restore DSA following memory moves in reselected_ok
; dsa_temp_sync doesn't really care about DSA, but it has an
; optional debug INT so a valid DSA is a good idea.
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x00000053 : */ 0xc0000004,0x00000000,0x00000000,
/*
CALL dsa_temp_sync
at 0x00000056 : */ 0x88080000,0x00000000,
/*
; Release ACK on the IDENTIFY message _after_ we've set the synchronous
; transfer parameters!
CLEAR ACK
at 0x00000058 : */ 0x60000040,0x00000000,
/*
; Implicitly restore pointers on reselection, so a RETURN
; will transfer control back to the right spot.
CALL REL (dsa_code_restore_pointers)
at 0x0000005a : */ 0x88880000,0x00ffff68,
/*
RETURN
at 0x0000005c : */ 0x90080000,0x00000000,
/*
ENTRY dsa_zero
dsa_zero:
ENTRY dsa_code_template_end
dsa_code_template_end:
; Perform sanity check for dsa_fields_start == dsa_code_template_end -
; dsa_zero, puke.
ABSOLUTE dsa_fields_start = 0 ; Sanity marker
; pad 48 bytes (fix this RSN)
ABSOLUTE dsa_next = 48 ; len 4 Next DSA
; del 4 Previous DSA address
ABSOLUTE dsa_cmnd = 56 ; len 4 Scsi_Cmnd * for this thread.
ABSOLUTE dsa_select = 60 ; len 4 Device ID, Period, Offset for
; table indirect select
ABSOLUTE dsa_msgout = 64 ; len 8 table indirect move parameter for
; select message
ABSOLUTE dsa_cmdout = 72 ; len 8 table indirect move parameter for
; command
ABSOLUTE dsa_dataout = 80 ; len 4 code pointer for dataout
ABSOLUTE dsa_datain = 84 ; len 4 code pointer for datain
ABSOLUTE dsa_msgin = 88 ; len 8 table indirect move for msgin
ABSOLUTE dsa_status = 96 ; len 8 table indirect move for status byte
ABSOLUTE dsa_msgout_other = 104 ; len 8 table indirect for normal message out
; (Synchronous transfer negotiation, etc).
ABSOLUTE dsa_end = 112
ABSOLUTE schedule = 0 ; Array of JUMP dsa_begin or JUMP (next),
; terminated by a call to JUMP wait_reselect
; Linked lists of DSA structures
ABSOLUTE reconnect_dsa_head = 0 ; Link list of DSAs which can reconnect
ABSOLUTE addr_reconnect_dsa_head = 0 ; Address of variable containing
; address of reconnect_dsa_head
; These select the source and destination of a MOVE MEMORY instruction
ABSOLUTE dmode_memory_to_memory = 0x0
ABSOLUTE dmode_memory_to_ncr = 0x0
ABSOLUTE dmode_ncr_to_memory = 0x0
ABSOLUTE addr_scratch = 0x0
ABSOLUTE addr_temp = 0x0
ABSOLUTE saved_dsa = 0x0
ABSOLUTE emulfly = 0x0
ABSOLUTE addr_dsa = 0x0
; Interrupts -
; MSB indicates type
; 0 handle error condition
; 1 handle message
; 2 handle normal condition
; 3 debugging interrupt
; 4 testing interrupt
; Next byte indicates specific error
; XXX not yet implemented, I'm not sure if I want to -
; Next byte indicates the routine the error occurred in
; The LSB indicates the specific place the error occurred
ABSOLUTE int_err_unexpected_phase = 0x00000000 ; Unexpected phase encountered
ABSOLUTE int_err_selected = 0x00010000 ; SELECTED (nee RESELECTED)
ABSOLUTE int_err_unexpected_reselect = 0x00020000
ABSOLUTE int_err_check_condition = 0x00030000
ABSOLUTE int_err_no_phase = 0x00040000
ABSOLUTE int_msg_wdtr = 0x01000000 ; WDTR message received
ABSOLUTE int_msg_sdtr = 0x01010000 ; SDTR received
ABSOLUTE int_msg_1 = 0x01020000 ; single byte special message
; received
ABSOLUTE int_norm_select_complete = 0x02000000 ; Select complete, reprogram
; registers.
ABSOLUTE int_norm_reselect_complete = 0x02010000 ; Nexus established
ABSOLUTE int_norm_command_complete = 0x02020000 ; Command complete
ABSOLUTE int_norm_disconnected = 0x02030000 ; Disconnected
ABSOLUTE int_norm_aborted =0x02040000 ; Aborted *dsa
ABSOLUTE int_norm_reset = 0x02050000 ; Generated BUS reset.
ABSOLUTE int_norm_emulateintfly = 0x02060000 ; 53C710 Emulated intfly
ABSOLUTE int_debug_break = 0x03000000 ; Break point
ABSOLUTE int_debug_panic = 0x030b0000 ; Panic driver
ABSOLUTE int_test_1 = 0x04000000 ; Test 1 complete
ABSOLUTE int_test_2 = 0x04010000 ; Test 2 complete
ABSOLUTE int_test_3 = 0x04020000 ; Test 3 complete
; These should start with 0x05000000, with low bits incrementing for
; each one.
ABSOLUTE NCR53c7xx_msg_abort = 0 ; Pointer to abort message
ABSOLUTE NCR53c7xx_msg_reject = 0 ; Pointer to reject message
ABSOLUTE NCR53c7xx_zero = 0 ; long with zero in it, use for source
ABSOLUTE NCR53c7xx_sink = 0 ; long to dump worthless data in
ABSOLUTE NOP_insn = 0 ; NOP instruction
; Pointer to message, potentially multi-byte
ABSOLUTE msg_buf = 0
; Pointer to holding area for reselection information
ABSOLUTE reselected_identify = 0
ABSOLUTE reselected_tag = 0
; Request sense command pointer, it's a 6 byte command, should
; be constant for all commands since we always want 16 bytes of
; sense and we don't need to change any fields as we did under
; SCSI-I when we actually cared about the LUN field.
;EXTERNAL NCR53c7xx_sense ; Request sense command
; dsa_schedule
; PURPOSE : after a DISCONNECT message has been received, and pointers
; saved, insert the current DSA structure at the head of the
; disconnected queue and fall through to the scheduler.
;
; CALLS : OK
;
; INPUTS : dsa - current DSA structure, reconnect_dsa_head - list
; of disconnected commands
;
; MODIFIES : SCRATCH, reconnect_dsa_head
;
; EXITS : always passes control to schedule
ENTRY dsa_schedule
dsa_schedule:
;
; Calculate the address of the next pointer within the DSA
; structure of the command that is currently disconnecting
;
; Read what should be the current DSA from memory - actual DSA
; register is probably corrupt
MOVE MEMORY 4, saved_dsa, addr_scratch
at 0x0000005e : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE SCRATCH0 + dsa_next TO SCRATCH0
at 0x00000061 : */ 0x7e343000,0x00000000,
/*
MOVE SCRATCH1 + 0 TO SCRATCH1 WITH CARRY
at 0x00000063 : */ 0x7f350000,0x00000000,
/*
MOVE SCRATCH2 + 0 TO SCRATCH2 WITH CARRY
at 0x00000065 : */ 0x7f360000,0x00000000,
/*
MOVE SCRATCH3 + 0 TO SCRATCH3 WITH CARRY
at 0x00000067 : */ 0x7f370000,0x00000000,
/*
; Point the next field of this DSA structure at the current disconnected
; list
MOVE MEMORY 4, addr_scratch, dsa_schedule_insert + 8
at 0x00000069 : */ 0xc0000004,0x00000000,0x000001b8,
/*
dsa_schedule_insert:
MOVE MEMORY 4, reconnect_dsa_head, 0
at 0x0000006c : */ 0xc0000004,0x00000000,0x00000000,
/*
; And update the head pointer.
; Read what should be the current DSA from memory - actual DSA
; register is probably corrupt
MOVE MEMORY 4, saved_dsa, addr_scratch
at 0x0000006f : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, reconnect_dsa_head
at 0x00000072 : */ 0xc0000004,0x00000000,0x00000000,
/*
CLEAR ACK
at 0x00000075 : */ 0x60000040,0x00000000,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x00000077 : */ 0xc0000004,0x00000000,0x00000000,
/*
WAIT DISCONNECT
at 0x0000007a : */ 0x48000000,0x00000000,
/*
JUMP schedule
at 0x0000007c : */ 0x80080000,0x00000000,
/*
;
; select
;
; PURPOSE : establish a nexus for the SCSI command referenced by DSA.
; On success, the current DSA structure is removed from the issue
; queue. Usually, this is entered as a fall-through from schedule,
; although the contingent allegiance handling code will write
; the select entry address to the DSP to restart a command as a
; REQUEST SENSE. A message is sent (usually IDENTIFY, although
; additional SDTR or WDTR messages may be sent). COMMAND OUT
; is handled.
;
; INPUTS : DSA - SCSI command, issue_dsa_head
;
; CALLS : NOT OK
;
; MODIFIES : SCRATCH, issue_dsa_head
;
; EXITS : on reselection or selection, go to select_failed
; otherwise, RETURN so control is passed back to
; dsa_begin.
;
ENTRY select
select:
CLEAR TARGET
at 0x0000007e : */ 0x60000200,0x00000000,
/*
; XXX
;
; In effect, SELECTION operations are backgrounded, with execution
; continuing until code which waits for REQ or a fatal interrupt is
; encountered.
;
; So, for more performance, we could overlap the code which removes
; the command from the NCRs issue queue with the selection, but
; at this point I don't want to deal with the error recovery.
;
; Enable selection timer
MOVE CTEST7 & 0xef TO CTEST7
at 0x00000080 : */ 0x7c1bef00,0x00000000,
/*
SELECT ATN FROM dsa_select, select_failed
at 0x00000082 : */ 0x4300003c,0x00000828,
/*
JUMP select_msgout, WHEN MSG_OUT
at 0x00000084 : */ 0x860b0000,0x00000218,
/*
ENTRY select_msgout
select_msgout:
; Disable selection timer
MOVE CTEST7 | 0x10 TO CTEST7
at 0x00000086 : */ 0x7a1b1000,0x00000000,
/*
MOVE FROM dsa_msgout, WHEN MSG_OUT
at 0x00000088 : */ 0x1e000000,0x00000040,
/*
RETURN
at 0x0000008a : */ 0x90080000,0x00000000,
/*
;
; select_done
;
; PURPOSE: continue on to normal data transfer; called as the exit
; point from dsa_begin.
;
; INPUTS: dsa
;
; CALLS: OK
;
;
select_done:
; NOTE DSA is corrupt when we arrive here!
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x0000008c : */ 0xc0000004,0x00000000,0x00000000,
/*
; After a successful selection, we should get either a CMD phase or
; some transfer request negotiation message.
JUMP cmdout, WHEN CMD
at 0x0000008f : */ 0x820b0000,0x0000025c,
/*
INT int_err_unexpected_phase, WHEN NOT MSG_IN
at 0x00000091 : */ 0x9f030000,0x00000000,
/*
select_msg_in:
CALL msg_in, WHEN MSG_IN
at 0x00000093 : */ 0x8f0b0000,0x0000041c,
/*
JUMP select_msg_in, WHEN MSG_IN
at 0x00000095 : */ 0x870b0000,0x0000024c,
/*
cmdout:
INT int_err_unexpected_phase, WHEN NOT CMD
at 0x00000097 : */ 0x9a030000,0x00000000,
/*
ENTRY cmdout_cmdout
cmdout_cmdout:
MOVE FROM dsa_cmdout, WHEN CMD
at 0x00000099 : */ 0x1a000000,0x00000048,
/*
;
; data_transfer
; other_out
; other_in
; other_transfer
;
; PURPOSE : handle the main data transfer for a SCSI command in
; several parts. In the first part, data_transfer, DATA_IN
; and DATA_OUT phases are allowed, with the user provided
; code (usually dynamically generated based on the scatter/gather
; list associated with a SCSI command) called to handle these
; phases.
;
; After control has passed to one of the user provided
; DATA_IN or DATA_OUT routines, back calls are made to
; other_transfer_in or other_transfer_out to handle non-DATA IN
; and DATA OUT phases respectively, with the state of the active
; data pointer being preserved in TEMP.
;
; On completion, the user code passes control to other_transfer
; which causes DATA_IN and DATA_OUT to result in unexpected_phase
; interrupts so that data overruns may be trapped.
;
; INPUTS : DSA - SCSI command
;
; CALLS : OK in data_transfer_start, not ok in other_out and other_in, ok in
; other_transfer
;
; MODIFIES : SCRATCH
;
; EXITS : if STATUS IN is detected, signifying command completion,
; the NCR jumps to command_complete. If MSG IN occurs, a
; CALL is made to msg_in. Otherwise, other_transfer runs in
; an infinite loop.
;
ENTRY data_transfer
data_transfer:
JUMP cmdout_cmdout, WHEN CMD
at 0x0000009b : */ 0x820b0000,0x00000264,
/*
CALL msg_in, WHEN MSG_IN
at 0x0000009d : */ 0x8f0b0000,0x0000041c,
/*
INT int_err_unexpected_phase, WHEN MSG_OUT
at 0x0000009f : */ 0x9e0b0000,0x00000000,
/*
JUMP do_dataout, WHEN DATA_OUT
at 0x000000a1 : */ 0x800b0000,0x000002a4,
/*
JUMP do_datain, WHEN DATA_IN
at 0x000000a3 : */ 0x810b0000,0x000002fc,
/*
JUMP command_complete, WHEN STATUS
at 0x000000a5 : */ 0x830b0000,0x0000065c,
/*
JUMP data_transfer
at 0x000000a7 : */ 0x80080000,0x0000026c,
/*
ENTRY end_data_transfer
end_data_transfer:
;
; FIXME: On NCR53c700 and NCR53c700-66 chips, do_dataout/do_datain
; should be fixed up whenever the nexus changes so it can point to the
; correct routine for that command.
;
; Nasty jump to dsa->dataout
do_dataout:
MOVE MEMORY 4, saved_dsa, addr_scratch
at 0x000000a9 : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE SCRATCH0 + dsa_dataout TO SCRATCH0
at 0x000000ac : */ 0x7e345000,0x00000000,
/*
MOVE SCRATCH1 + 0 TO SCRATCH1 WITH CARRY
at 0x000000ae : */ 0x7f350000,0x00000000,
/*
MOVE SCRATCH2 + 0 TO SCRATCH2 WITH CARRY
at 0x000000b0 : */ 0x7f360000,0x00000000,
/*
MOVE SCRATCH3 + 0 TO SCRATCH3 WITH CARRY
at 0x000000b2 : */ 0x7f370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, dataout_to_jump + 4
at 0x000000b4 : */ 0xc0000004,0x00000000,0x000002e0,
/*
dataout_to_jump:
MOVE MEMORY 4, 0, dataout_jump + 4
at 0x000000b7 : */ 0xc0000004,0x00000000,0x000002f8,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x000000ba : */ 0xc0000004,0x00000000,0x00000000,
/*
dataout_jump:
JUMP 0
at 0x000000bd : */ 0x80080000,0x00000000,
/*
; Nasty jump to dsa->dsain
do_datain:
MOVE MEMORY 4, saved_dsa, addr_scratch
at 0x000000bf : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE SCRATCH0 + dsa_datain TO SCRATCH0
at 0x000000c2 : */ 0x7e345400,0x00000000,
/*
MOVE SCRATCH1 + 0 TO SCRATCH1 WITH CARRY
at 0x000000c4 : */ 0x7f350000,0x00000000,
/*
MOVE SCRATCH2 + 0 TO SCRATCH2 WITH CARRY
at 0x000000c6 : */ 0x7f360000,0x00000000,
/*
MOVE SCRATCH3 + 0 TO SCRATCH3 WITH CARRY
at 0x000000c8 : */ 0x7f370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, datain_to_jump + 4
at 0x000000ca : */ 0xc0000004,0x00000000,0x00000338,
/*
ENTRY datain_to_jump
datain_to_jump:
MOVE MEMORY 4, 0, datain_jump + 4
at 0x000000cd : */ 0xc0000004,0x00000000,0x00000350,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x000000d0 : */ 0xc0000004,0x00000000,0x00000000,
/*
datain_jump:
JUMP 0
at 0x000000d3 : */ 0x80080000,0x00000000,
/*
; Note that other_out and other_in loop until a non-data phase
; is discovered, so we only execute return statements when we
; can go on to the next data phase block move statement.
ENTRY other_out
other_out:
INT int_err_unexpected_phase, WHEN CMD
at 0x000000d5 : */ 0x9a0b0000,0x00000000,
/*
JUMP msg_in_restart, WHEN MSG_IN
at 0x000000d7 : */ 0x870b0000,0x000003fc,
/*
INT int_err_unexpected_phase, WHEN MSG_OUT
at 0x000000d9 : */ 0x9e0b0000,0x00000000,
/*
INT int_err_unexpected_phase, WHEN DATA_IN
at 0x000000db : */ 0x990b0000,0x00000000,
/*
JUMP command_complete, WHEN STATUS
at 0x000000dd : */ 0x830b0000,0x0000065c,
/*
JUMP other_out, WHEN NOT DATA_OUT
at 0x000000df : */ 0x80030000,0x00000354,
/*
; TEMP should be OK, as we got here from a call in the user dataout code.
RETURN
at 0x000000e1 : */ 0x90080000,0x00000000,
/*
ENTRY other_in
other_in:
INT int_err_unexpected_phase, WHEN CMD
at 0x000000e3 : */ 0x9a0b0000,0x00000000,
/*
JUMP msg_in_restart, WHEN MSG_IN
at 0x000000e5 : */ 0x870b0000,0x000003fc,
/*
INT int_err_unexpected_phase, WHEN MSG_OUT
at 0x000000e7 : */ 0x9e0b0000,0x00000000,
/*
INT int_err_unexpected_phase, WHEN DATA_OUT
at 0x000000e9 : */ 0x980b0000,0x00000000,
/*
JUMP command_complete, WHEN STATUS
at 0x000000eb : */ 0x830b0000,0x0000065c,
/*
JUMP other_in, WHEN NOT DATA_IN
at 0x000000ed : */ 0x81030000,0x0000038c,
/*
; TEMP should be OK, as we got here from a call in the user datain code.
RETURN
at 0x000000ef : */ 0x90080000,0x00000000,
/*
ENTRY other_transfer
other_transfer:
INT int_err_unexpected_phase, WHEN CMD
at 0x000000f1 : */ 0x9a0b0000,0x00000000,
/*
CALL msg_in, WHEN MSG_IN
at 0x000000f3 : */ 0x8f0b0000,0x0000041c,
/*
INT int_err_unexpected_phase, WHEN MSG_OUT
at 0x000000f5 : */ 0x9e0b0000,0x00000000,
/*
INT int_err_unexpected_phase, WHEN DATA_OUT
at 0x000000f7 : */ 0x980b0000,0x00000000,
/*
INT int_err_unexpected_phase, WHEN DATA_IN
at 0x000000f9 : */ 0x990b0000,0x00000000,
/*
JUMP command_complete, WHEN STATUS
at 0x000000fb : */ 0x830b0000,0x0000065c,
/*
JUMP other_transfer
at 0x000000fd : */ 0x80080000,0x000003c4,
/*
;
; msg_in_restart
; msg_in
; munge_msg
;
; PURPOSE : process messages from a target. msg_in is called when the
; caller hasn't read the first byte of the message. munge_message
; is called when the caller has read the first byte of the message,
; and left it in SFBR. msg_in_restart is called when the caller
; hasn't read the first byte of the message, and wishes RETURN
; to transfer control back to the address of the conditional
; CALL instruction rather than to the instruction after it.
;
; Various int_* interrupts are generated when the host system
; needs to intervene, as is the case with SDTR, WDTR, and
; INITIATE RECOVERY messages.
;
; When the host system handles one of these interrupts,
; it can respond by reentering at reject_message,
; which rejects the message and returns control to
; the caller of msg_in or munge_msg, accept_message
; which clears ACK and returns control, or reply_message
; which sends the message pointed to by the DSA
; msgout_other table indirect field.
;
; DISCONNECT messages are handled by moving the command
; to the reconnect_dsa_queue.
; NOTE: DSA should be valid when we get here - we cannot save both it
; and TEMP in this routine.
;
; INPUTS : DSA - SCSI COMMAND, SFBR - first byte of message (munge_msg
; only)
;
; CALLS : NO. The TEMP register isn't backed up to allow nested calls.
;
; MODIFIES : SCRATCH, DSA on DISCONNECT
;
; EXITS : On receipt of SAVE DATA POINTER, RESTORE POINTERS,
; and normal return from message handlers running under
; Linux, control is returned to the caller. Receipt
; of DISCONNECT messages pass control to dsa_schedule.
;
ENTRY msg_in_restart
msg_in_restart:
; XXX - hackish
;
; Since it's easier to debug changes to the statically
; compiled code, rather than the dynamically generated
; stuff, such as
;
; MOVE x, y, WHEN data_phase
; CALL other_z, WHEN NOT data_phase
; MOVE x, y, WHEN data_phase
;
; I'd like to have certain routines (notably the message handler)
; restart on the conditional call rather than the next instruction.
;
; So, subtract 8 from the return address
MOVE TEMP0 + 0xf8 TO TEMP0
at 0x000000ff : */ 0x7e1cf800,0x00000000,
/*
MOVE TEMP1 + 0xff TO TEMP1 WITH CARRY
at 0x00000101 : */ 0x7f1dff00,0x00000000,
/*
MOVE TEMP2 + 0xff TO TEMP2 WITH CARRY
at 0x00000103 : */ 0x7f1eff00,0x00000000,
/*
MOVE TEMP3 + 0xff TO TEMP3 WITH CARRY
at 0x00000105 : */ 0x7f1fff00,0x00000000,
/*
ENTRY msg_in
msg_in:
MOVE 1, msg_buf, WHEN MSG_IN
at 0x00000107 : */ 0x0f000001,0x00000000,
/*
munge_msg:
JUMP munge_extended, IF 0x01 ; EXTENDED MESSAGE
at 0x00000109 : */ 0x800c0001,0x00000574,
/*
JUMP munge_2, IF 0x20, AND MASK 0xdf ; two byte message
at 0x0000010b : */ 0x800cdf20,0x00000464,
/*
;
; XXX - I've seen a handful of broken SCSI devices which fail to issue
; a SAVE POINTERS message before disconnecting in the middle of
; a transfer, assuming that the DATA POINTER will be implicitly
; restored.
;
; Historically, I've often done an implicit save when the DISCONNECT
; message is processed. We may want to consider having the option of
; doing that here.
;
JUMP munge_save_data_pointer, IF 0x02 ; SAVE DATA POINTER
at 0x0000010d : */ 0x800c0002,0x0000046c,
/*
JUMP munge_restore_pointers, IF 0x03 ; RESTORE POINTERS
at 0x0000010f : */ 0x800c0003,0x00000518,
/*
JUMP munge_disconnect, IF 0x04 ; DISCONNECT
at 0x00000111 : */ 0x800c0004,0x0000056c,
/*
INT int_msg_1, IF 0x07 ; MESSAGE REJECT
at 0x00000113 : */ 0x980c0007,0x01020000,
/*
INT int_msg_1, IF 0x0f ; INITIATE RECOVERY
at 0x00000115 : */ 0x980c000f,0x01020000,
/*
JUMP reject_message
at 0x00000117 : */ 0x80080000,0x00000604,
/*
munge_2:
JUMP reject_message
at 0x00000119 : */ 0x80080000,0x00000604,
/*
;
; The SCSI standard allows targets to recover from transient
; error conditions by backing up the data pointer with a
; RESTORE POINTERS message.
;
; So, we must save and restore the _residual_ code as well as
; the current instruction pointer. Because of this messiness,
; it is simpler to put dynamic code in the dsa for this and to
; just do a simple jump down there.
;
munge_save_data_pointer:
; We have something in TEMP here, so first we must save that
MOVE TEMP0 TO SFBR
at 0x0000011b : */ 0x721c0000,0x00000000,
/*
MOVE SFBR TO SCRATCH0
at 0x0000011d : */ 0x6a340000,0x00000000,
/*
MOVE TEMP1 TO SFBR
at 0x0000011f : */ 0x721d0000,0x00000000,
/*
MOVE SFBR TO SCRATCH1
at 0x00000121 : */ 0x6a350000,0x00000000,
/*
MOVE TEMP2 TO SFBR
at 0x00000123 : */ 0x721e0000,0x00000000,
/*
MOVE SFBR TO SCRATCH2
at 0x00000125 : */ 0x6a360000,0x00000000,
/*
MOVE TEMP3 TO SFBR
at 0x00000127 : */ 0x721f0000,0x00000000,
/*
MOVE SFBR TO SCRATCH3
at 0x00000129 : */ 0x6a370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, jump_temp + 4
at 0x0000012b : */ 0xc0000004,0x00000000,0x000009c8,
/*
; Now restore DSA
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x0000012e : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE DSA0 + dsa_save_data_pointer TO SFBR
at 0x00000131 : */ 0x76100000,0x00000000,
/*
MOVE SFBR TO SCRATCH0
at 0x00000133 : */ 0x6a340000,0x00000000,
/*
MOVE DSA1 + 0xff TO SFBR WITH CARRY
at 0x00000135 : */ 0x7711ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH1
at 0x00000137 : */ 0x6a350000,0x00000000,
/*
MOVE DSA2 + 0xff TO SFBR WITH CARRY
at 0x00000139 : */ 0x7712ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH2
at 0x0000013b : */ 0x6a360000,0x00000000,
/*
MOVE DSA3 + 0xff TO SFBR WITH CARRY
at 0x0000013d : */ 0x7713ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH3
at 0x0000013f : */ 0x6a370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, jump_dsa_save + 4
at 0x00000141 : */ 0xc0000004,0x00000000,0x00000514,
/*
jump_dsa_save:
JUMP 0
at 0x00000144 : */ 0x80080000,0x00000000,
/*
munge_restore_pointers:
; The code at dsa_restore_pointers will RETURN, but we don't care
; about TEMP here, as it will overwrite it anyway.
MOVE DSA0 + dsa_restore_pointers TO SFBR
at 0x00000146 : */ 0x76100000,0x00000000,
/*
MOVE SFBR TO SCRATCH0
at 0x00000148 : */ 0x6a340000,0x00000000,
/*
MOVE DSA1 + 0xff TO SFBR WITH CARRY
at 0x0000014a : */ 0x7711ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH1
at 0x0000014c : */ 0x6a350000,0x00000000,
/*
MOVE DSA2 + 0xff TO SFBR WITH CARRY
at 0x0000014e : */ 0x7712ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH2
at 0x00000150 : */ 0x6a360000,0x00000000,
/*
MOVE DSA3 + 0xff TO SFBR WITH CARRY
at 0x00000152 : */ 0x7713ff00,0x00000000,
/*
MOVE SFBR TO SCRATCH3
at 0x00000154 : */ 0x6a370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, jump_dsa_restore + 4
at 0x00000156 : */ 0xc0000004,0x00000000,0x00000568,
/*
jump_dsa_restore:
JUMP 0
at 0x00000159 : */ 0x80080000,0x00000000,
/*
munge_disconnect:
JUMP dsa_schedule
at 0x0000015b : */ 0x80080000,0x00000178,
/*
munge_extended:
CLEAR ACK
at 0x0000015d : */ 0x60000040,0x00000000,
/*
INT int_err_unexpected_phase, WHEN NOT MSG_IN
at 0x0000015f : */ 0x9f030000,0x00000000,
/*
MOVE 1, msg_buf + 1, WHEN MSG_IN
at 0x00000161 : */ 0x0f000001,0x00000001,
/*
JUMP munge_extended_2, IF 0x02
at 0x00000163 : */ 0x800c0002,0x000005a4,
/*
JUMP munge_extended_3, IF 0x03
at 0x00000165 : */ 0x800c0003,0x000005d4,
/*
JUMP reject_message
at 0x00000167 : */ 0x80080000,0x00000604,
/*
munge_extended_2:
CLEAR ACK
at 0x00000169 : */ 0x60000040,0x00000000,
/*
MOVE 1, msg_buf + 2, WHEN MSG_IN
at 0x0000016b : */ 0x0f000001,0x00000002,
/*
JUMP reject_message, IF NOT 0x02 ; Must be WDTR
at 0x0000016d : */ 0x80040002,0x00000604,
/*
CLEAR ACK
at 0x0000016f : */ 0x60000040,0x00000000,
/*
MOVE 1, msg_buf + 3, WHEN MSG_IN
at 0x00000171 : */ 0x0f000001,0x00000003,
/*
INT int_msg_wdtr
at 0x00000173 : */ 0x98080000,0x01000000,
/*
munge_extended_3:
CLEAR ACK
at 0x00000175 : */ 0x60000040,0x00000000,
/*
MOVE 1, msg_buf + 2, WHEN MSG_IN
at 0x00000177 : */ 0x0f000001,0x00000002,
/*
JUMP reject_message, IF NOT 0x01 ; Must be SDTR
at 0x00000179 : */ 0x80040001,0x00000604,
/*
CLEAR ACK
at 0x0000017b : */ 0x60000040,0x00000000,
/*
MOVE 2, msg_buf + 3, WHEN MSG_IN
at 0x0000017d : */ 0x0f000002,0x00000003,
/*
INT int_msg_sdtr
at 0x0000017f : */ 0x98080000,0x01010000,
/*
ENTRY reject_message
reject_message:
SET ATN
at 0x00000181 : */ 0x58000008,0x00000000,
/*
CLEAR ACK
at 0x00000183 : */ 0x60000040,0x00000000,
/*
MOVE 1, NCR53c7xx_msg_reject, WHEN MSG_OUT
at 0x00000185 : */ 0x0e000001,0x00000000,
/*
RETURN
at 0x00000187 : */ 0x90080000,0x00000000,
/*
ENTRY accept_message
accept_message:
CLEAR ATN
at 0x00000189 : */ 0x60000008,0x00000000,
/*
CLEAR ACK
at 0x0000018b : */ 0x60000040,0x00000000,
/*
RETURN
at 0x0000018d : */ 0x90080000,0x00000000,
/*
ENTRY respond_message
respond_message:
SET ATN
at 0x0000018f : */ 0x58000008,0x00000000,
/*
CLEAR ACK
at 0x00000191 : */ 0x60000040,0x00000000,
/*
MOVE FROM dsa_msgout_other, WHEN MSG_OUT
at 0x00000193 : */ 0x1e000000,0x00000068,
/*
RETURN
at 0x00000195 : */ 0x90080000,0x00000000,
/*
;
; command_complete
;
; PURPOSE : handle command termination when STATUS IN is detected by reading
; a status byte followed by a command termination message.
;
; Normal termination results in an INTFLY instruction, and
; the host system can pick out which command terminated by
; examining the MESSAGE and STATUS buffers of all currently
; executing commands;
;
; Abnormal (CHECK_CONDITION) termination results in an
; int_err_check_condition interrupt so that a REQUEST SENSE
; command can be issued out-of-order so that no other command
; clears the contingent allegiance condition.
;
;
; INPUTS : DSA - command
;
; CALLS : OK
;
; EXITS : On successful termination, control is passed to schedule.
; On abnormal termination, the user will usually modify the
; DSA fields and corresponding buffers and return control
; to select.
;
ENTRY command_complete
command_complete:
MOVE FROM dsa_status, WHEN STATUS
at 0x00000197 : */ 0x1b000000,0x00000060,
/*
MOVE SFBR TO SCRATCH0 ; Save status
at 0x00000199 : */ 0x6a340000,0x00000000,
/*
ENTRY command_complete_msgin
command_complete_msgin:
MOVE FROM dsa_msgin, WHEN MSG_IN
at 0x0000019b : */ 0x1f000000,0x00000058,
/*
; Indicate that we should be expecting a disconnect
; Above code cleared the Unexpected Disconnect bit, what do we do?
CLEAR ACK
at 0x0000019d : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x0000019f : */ 0x48000000,0x00000000,
/*
;
; The SCSI specification states that when a UNIT ATTENTION condition
; is pending, as indicated by a CHECK CONDITION status message,
; the target shall revert to asynchronous transfers. Since
; synchronous transfers parameters are maintained on a per INITIATOR/TARGET
; basis, and returning control to our scheduler could work on a command
; running on another lun on that target using the old parameters, we must
; interrupt the host processor to get them changed, or change them ourselves.
;
; Once SCSI-II tagged queueing is implemented, things will be even more
; hairy, since contingent allegiance conditions exist on a per-target/lun
; basis, and issuing a new command with a different tag would clear it.
; In these cases, we must interrupt the host processor to get a request
; added to the HEAD of the queue with the request sense command, or we
; must automatically issue the request sense command.
INT int_norm_emulateintfly
at 0x000001a1 : */ 0x98080000,0x02060000,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x000001a3 : */ 0xc0000004,0x00000000,0x00000000,
/*
JUMP schedule
at 0x000001a6 : */ 0x80080000,0x00000000,
/*
command_failed:
INT int_err_check_condition
at 0x000001a8 : */ 0x98080000,0x00030000,
/*
;
; wait_reselect
;
; PURPOSE : This is essentially the idle routine, where control lands
; when there are no new processes to schedule. wait_reselect
; waits for reselection, selection, and new commands.
;
; When a successful reselection occurs, with the aid
; of fixed up code in each DSA, wait_reselect walks the
; reconnect_dsa_queue, asking each dsa if the target ID
; and LUN match its.
;
; If a match is found, a call is made back to reselected_ok,
; which through the miracles of self modifying code, extracts
; the found DSA from the reconnect_dsa_queue and then
; returns control to the DSAs thread of execution.
;
; INPUTS : NONE
;
; CALLS : OK
;
; MODIFIES : DSA,
;
; EXITS : On successful reselection, control is returned to the
; DSA which called reselected_ok. If the WAIT RESELECT
; was interrupted by a new commands arrival signaled by
; SIG_P, control is passed to schedule. If the NCR is
; selected, the host system is interrupted with an
; int_err_selected which is usually responded to by
; setting DSP to the target_abort address.
ENTRY wait_reselect
wait_reselect:
WAIT RESELECT wait_reselect_failed
at 0x000001aa : */ 0x50000000,0x00000800,
/*
reselected:
CLEAR TARGET
at 0x000001ac : */ 0x60000200,0x00000000,
/*
; Read all data needed to reestablish the nexus -
MOVE 1, reselected_identify, WHEN MSG_IN
at 0x000001ae : */ 0x0f000001,0x00000000,
/*
; We used to CLEAR ACK here.
; Point DSA at the current head of the disconnected queue.
MOVE MEMORY 4, reconnect_dsa_head, addr_scratch
at 0x000001b0 : */ 0xc0000004,0x00000000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, saved_dsa
at 0x000001b3 : */ 0xc0000004,0x00000000,0x00000000,
/*
; Fix the update-next pointer so that the reconnect_dsa_head
; pointer is the one that will be updated if this DSA is a hit
; and we remove it from the queue.
MOVE MEMORY 4, addr_reconnect_dsa_head, reselected_ok_patch + 8
at 0x000001b6 : */ 0xc0000004,0x00000000,0x000007ec,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x000001b9 : */ 0xc0000004,0x00000000,0x00000000,
/*
ENTRY reselected_check_next
reselected_check_next:
; Check for a NULL pointer.
MOVE DSA0 TO SFBR
at 0x000001bc : */ 0x72100000,0x00000000,
/*
JUMP reselected_not_end, IF NOT 0
at 0x000001be : */ 0x80040000,0x00000738,
/*
MOVE DSA1 TO SFBR
at 0x000001c0 : */ 0x72110000,0x00000000,
/*
JUMP reselected_not_end, IF NOT 0
at 0x000001c2 : */ 0x80040000,0x00000738,
/*
MOVE DSA2 TO SFBR
at 0x000001c4 : */ 0x72120000,0x00000000,
/*
JUMP reselected_not_end, IF NOT 0
at 0x000001c6 : */ 0x80040000,0x00000738,
/*
MOVE DSA3 TO SFBR
at 0x000001c8 : */ 0x72130000,0x00000000,
/*
JUMP reselected_not_end, IF NOT 0
at 0x000001ca : */ 0x80040000,0x00000738,
/*
INT int_err_unexpected_reselect
at 0x000001cc : */ 0x98080000,0x00020000,
/*
reselected_not_end:
;
; XXX the ALU is only eight bits wide, and the assembler
; wont do the dirt work for us. As long as dsa_check_reselect
; is negative, we need to sign extend with 1 bits to the full
; 32 bit width of the address.
;
; A potential work around would be to have a known alignment
; of the DSA structure such that the base address plus
; dsa_check_reselect doesn't require carrying from bytes
; higher than the LSB.
;
MOVE DSA0 TO SFBR
at 0x000001ce : */ 0x72100000,0x00000000,
/*
MOVE SFBR + dsa_check_reselect TO SCRATCH0
at 0x000001d0 : */ 0x6e340000,0x00000000,
/*
MOVE DSA1 TO SFBR
at 0x000001d2 : */ 0x72110000,0x00000000,
/*
MOVE SFBR + 0xff TO SCRATCH1 WITH CARRY
at 0x000001d4 : */ 0x6f35ff00,0x00000000,
/*
MOVE DSA2 TO SFBR
at 0x000001d6 : */ 0x72120000,0x00000000,
/*
MOVE SFBR + 0xff TO SCRATCH2 WITH CARRY
at 0x000001d8 : */ 0x6f36ff00,0x00000000,
/*
MOVE DSA3 TO SFBR
at 0x000001da : */ 0x72130000,0x00000000,
/*
MOVE SFBR + 0xff TO SCRATCH3 WITH CARRY
at 0x000001dc : */ 0x6f37ff00,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, reselected_check + 4
at 0x000001de : */ 0xc0000004,0x00000000,0x00000794,
/*
; Time to correct DSA following memory move
MOVE MEMORY 4, saved_dsa, addr_dsa
at 0x000001e1 : */ 0xc0000004,0x00000000,0x00000000,
/*
reselected_check:
JUMP 0
at 0x000001e4 : */ 0x80080000,0x00000000,
/*
;
;
; We have problems here - the memory move corrupts TEMP and DSA. This
; routine is called from DSA code, and patched from many places. Scratch
; is probably free when it is called.
; We have to:
; copy temp to scratch, one byte at a time
; write scratch to patch a jump in place of the return
; do the move memory
; jump to the patched in return address
; DSA is corrupt when we get here, and can be left corrupt
ENTRY reselected_ok
reselected_ok:
MOVE TEMP0 TO SFBR
at 0x000001e6 : */ 0x721c0000,0x00000000,
/*
MOVE SFBR TO SCRATCH0
at 0x000001e8 : */ 0x6a340000,0x00000000,
/*
MOVE TEMP1 TO SFBR
at 0x000001ea : */ 0x721d0000,0x00000000,
/*
MOVE SFBR TO SCRATCH1
at 0x000001ec : */ 0x6a350000,0x00000000,
/*
MOVE TEMP2 TO SFBR
at 0x000001ee : */ 0x721e0000,0x00000000,
/*
MOVE SFBR TO SCRATCH2
at 0x000001f0 : */ 0x6a360000,0x00000000,
/*
MOVE TEMP3 TO SFBR
at 0x000001f2 : */ 0x721f0000,0x00000000,
/*
MOVE SFBR TO SCRATCH3
at 0x000001f4 : */ 0x6a370000,0x00000000,
/*
MOVE MEMORY 4, addr_scratch, reselected_ok_jump + 4
at 0x000001f6 : */ 0xc0000004,0x00000000,0x000007f4,
/*
reselected_ok_patch:
MOVE MEMORY 4, 0, 0
at 0x000001f9 : */ 0xc0000004,0x00000000,0x00000000,
/*
reselected_ok_jump:
JUMP 0
at 0x000001fc : */ 0x80080000,0x00000000,
/*
selected:
INT int_err_selected;
at 0x000001fe : */ 0x98080000,0x00010000,
/*
;
; A select or reselect failure can be caused by one of two conditions :
; 1. SIG_P was set. This will be the case if the user has written
; a new value to a previously NULL head of the issue queue.
;
; 2. The NCR53c810 was selected or reselected by another device.
;
; 3. The bus was already busy since we were selected or reselected
; before starting the command.
wait_reselect_failed:
; Check selected bit.
; Must work out how to tell if we are selected....
; Reading CTEST2 clears the SIG_P bit in the ISTAT register.
MOVE CTEST2 & 0x40 TO SFBR
at 0x00000200 : */ 0x74164000,0x00000000,
/*
JUMP schedule, IF 0x40
at 0x00000202 : */ 0x800c0040,0x00000000,
/*
; Check connected bit.
; FIXME: this needs to change if we support target mode
MOVE ISTAT & 0x08 TO SFBR
at 0x00000204 : */ 0x74210800,0x00000000,
/*
JUMP reselected, IF 0x08
at 0x00000206 : */ 0x800c0008,0x000006b0,
/*
; FIXME : Something bogus happened, and we shouldn't fail silently.
INT int_debug_panic
at 0x00000208 : */ 0x98080000,0x030b0000,
/*
select_failed:
; Disable selection timer
MOVE CTEST7 | 0x10 TO CTEST7
at 0x0000020a : */ 0x7a1b1000,0x00000000,
/*
; Otherwise, mask the selected and reselected bits off SIST0
; Let's assume we don't get selected for now
MOVE SSTAT0 & 0x10 TO SFBR
at 0x0000020c : */ 0x740d1000,0x00000000,
/*
JUMP reselected, IF 0x10
at 0x0000020e : */ 0x800c0010,0x000006b0,
/*
; If SIGP is set, the user just gave us another command, and
; we should restart or return to the scheduler.
; Reading CTEST2 clears the SIG_P bit in the ISTAT register.
MOVE CTEST2 & 0x40 TO SFBR
at 0x00000210 : */ 0x74164000,0x00000000,
/*
JUMP select, IF 0x40
at 0x00000212 : */ 0x800c0040,0x000001f8,
/*
; Check connected bit.
; FIXME: this needs to change if we support target mode
; FIXME: is this really necessary?
MOVE ISTAT & 0x08 TO SFBR
at 0x00000214 : */ 0x74210800,0x00000000,
/*
JUMP reselected, IF 0x08
at 0x00000216 : */ 0x800c0008,0x000006b0,
/*
; FIXME : Something bogus happened, and we shouldn't fail silently.
INT int_debug_panic
at 0x00000218 : */ 0x98080000,0x030b0000,
/*
;
; test_1
; test_2
;
; PURPOSE : run some verification tests on the NCR. test_1
; copies test_src to test_dest and interrupts the host
; processor, testing for cache coherency and interrupt
; problems in the processes.
;
; test_2 runs a command with offsets relative to the
; DSA on entry, and is useful for miscellaneous experimentation.
;
; Verify that interrupts are working correctly and that we don't
; have a cache invalidation problem.
ABSOLUTE test_src = 0, test_dest = 0
ENTRY test_1
test_1:
MOVE MEMORY 4, test_src, test_dest
at 0x0000021a : */ 0xc0000004,0x00000000,0x00000000,
/*
INT int_test_1
at 0x0000021d : */ 0x98080000,0x04000000,
/*
;
; Run arbitrary commands, with test code establishing a DSA
;
ENTRY test_2
test_2:
CLEAR TARGET
at 0x0000021f : */ 0x60000200,0x00000000,
/*
; Enable selection timer
MOVE CTEST7 & 0xef TO CTEST7
at 0x00000221 : */ 0x7c1bef00,0x00000000,
/*
SELECT ATN FROM 0, test_2_fail
at 0x00000223 : */ 0x43000000,0x000008dc,
/*
JUMP test_2_msgout, WHEN MSG_OUT
at 0x00000225 : */ 0x860b0000,0x0000089c,
/*
ENTRY test_2_msgout
test_2_msgout:
; Disable selection timer
MOVE CTEST7 | 0x10 TO CTEST7
at 0x00000227 : */ 0x7a1b1000,0x00000000,
/*
MOVE FROM 8, WHEN MSG_OUT
at 0x00000229 : */ 0x1e000000,0x00000008,
/*
MOVE FROM 16, WHEN CMD
at 0x0000022b : */ 0x1a000000,0x00000010,
/*
MOVE FROM 24, WHEN DATA_IN
at 0x0000022d : */ 0x19000000,0x00000018,
/*
MOVE FROM 32, WHEN STATUS
at 0x0000022f : */ 0x1b000000,0x00000020,
/*
MOVE FROM 40, WHEN MSG_IN
at 0x00000231 : */ 0x1f000000,0x00000028,
/*
CLEAR ACK
at 0x00000233 : */ 0x60000040,0x00000000,
/*
WAIT DISCONNECT
at 0x00000235 : */ 0x48000000,0x00000000,
/*
test_2_fail:
; Disable selection timer
MOVE CTEST7 | 0x10 TO CTEST7
at 0x00000237 : */ 0x7a1b1000,0x00000000,
/*
INT int_test_2
at 0x00000239 : */ 0x98080000,0x04010000,
/*
ENTRY debug_break
debug_break:
INT int_debug_break
at 0x0000023b : */ 0x98080000,0x03000000,
/*
;
; initiator_abort
; target_abort
;
; PURPOSE : Abort the currently established nexus from with initiator
; or target mode.
;
;
ENTRY target_abort
target_abort:
SET TARGET
at 0x0000023d : */ 0x58000200,0x00000000,
/*
DISCONNECT
at 0x0000023f : */ 0x48000000,0x00000000,
/*
CLEAR TARGET
at 0x00000241 : */ 0x60000200,0x00000000,
/*
JUMP schedule
at 0x00000243 : */ 0x80080000,0x00000000,
/*
ENTRY initiator_abort
initiator_abort:
SET ATN
at 0x00000245 : */ 0x58000008,0x00000000,
/*
;
; The SCSI-I specification says that targets may go into MSG out at
; their leisure upon receipt of the ATN single. On all versions of the
; specification, we can't change phases until REQ transitions true->false,
; so we need to sink/source one byte of data to allow the transition.
;
; For the sake of safety, we'll only source one byte of data in all
; cases, but to accommodate the SCSI-I dain bramage, we'll sink an
; arbitrary number of bytes.
JUMP spew_cmd, WHEN CMD
at 0x00000247 : */ 0x820b0000,0x0000094c,
/*
JUMP eat_msgin, WHEN MSG_IN
at 0x00000249 : */ 0x870b0000,0x0000095c,
/*
JUMP eat_datain, WHEN DATA_IN
at 0x0000024b : */ 0x810b0000,0x0000098c,
/*
JUMP eat_status, WHEN STATUS
at 0x0000024d : */ 0x830b0000,0x00000974,
/*
JUMP spew_dataout, WHEN DATA_OUT
at 0x0000024f : */ 0x800b0000,0x000009a4,
/*
JUMP sated
at 0x00000251 : */ 0x80080000,0x000009ac,
/*
spew_cmd:
MOVE 1, NCR53c7xx_zero, WHEN CMD
at 0x00000253 : */ 0x0a000001,0x00000000,
/*
JUMP sated
at 0x00000255 : */ 0x80080000,0x000009ac,
/*
eat_msgin:
MOVE 1, NCR53c7xx_sink, WHEN MSG_IN
at 0x00000257 : */ 0x0f000001,0x00000000,
/*
JUMP eat_msgin, WHEN MSG_IN
at 0x00000259 : */ 0x870b0000,0x0000095c,
/*
JUMP sated
at 0x0000025b : */ 0x80080000,0x000009ac,
/*
eat_status:
MOVE 1, NCR53c7xx_sink, WHEN STATUS
at 0x0000025d : */ 0x0b000001,0x00000000,
/*
JUMP eat_status, WHEN STATUS
at 0x0000025f : */ 0x830b0000,0x00000974,
/*
JUMP sated
at 0x00000261 : */ 0x80080000,0x000009ac,
/*
eat_datain:
MOVE 1, NCR53c7xx_sink, WHEN DATA_IN
at 0x00000263 : */ 0x09000001,0x00000000,
/*
JUMP eat_datain, WHEN DATA_IN
at 0x00000265 : */ 0x810b0000,0x0000098c,
/*
JUMP sated
at 0x00000267 : */ 0x80080000,0x000009ac,
/*
spew_dataout:
MOVE 1, NCR53c7xx_zero, WHEN DATA_OUT
at 0x00000269 : */ 0x08000001,0x00000000,
/*
sated:
MOVE 1, NCR53c7xx_msg_abort, WHEN MSG_OUT
at 0x0000026b : */ 0x0e000001,0x00000000,
/*
WAIT DISCONNECT
at 0x0000026d : */ 0x48000000,0x00000000,
/*
INT int_norm_aborted
at 0x0000026f : */ 0x98080000,0x02040000,
/*
; Little patched jump, used to overcome problems with TEMP getting
; corrupted on memory moves.
jump_temp:
JUMP 0
at 0x00000271 : */ 0x80080000,0x00000000,
};
#define A_NCR53c7xx_msg_abort 0x00000000
static u32 A_NCR53c7xx_msg_abort_used[] __attribute((unused)) = {
0x0000026c,
};
#define A_NCR53c7xx_msg_reject 0x00000000
static u32 A_NCR53c7xx_msg_reject_used[] __attribute((unused)) = {
0x00000186,
};
#define A_NCR53c7xx_sink 0x00000000
static u32 A_NCR53c7xx_sink_used[] __attribute((unused)) = {
0x00000258,
0x0000025e,
0x00000264,
};
#define A_NCR53c7xx_zero 0x00000000
static u32 A_NCR53c7xx_zero_used[] __attribute((unused)) = {
0x00000254,
0x0000026a,
};
#define A_NOP_insn 0x00000000
static u32 A_NOP_insn_used[] __attribute((unused)) = {
0x00000017,
};
#define A_addr_dsa 0x00000000
static u32 A_addr_dsa_used[] __attribute((unused)) = {
0x0000000f,
0x00000026,
0x00000033,
0x00000040,
0x00000055,
0x00000079,
0x0000008e,
0x000000bc,
0x000000d2,
0x00000130,
0x000001a5,
0x000001bb,
0x000001e3,
};
#define A_addr_reconnect_dsa_head 0x00000000
static u32 A_addr_reconnect_dsa_head_used[] __attribute((unused)) = {
0x000001b7,
};
#define A_addr_scratch 0x00000000
static u32 A_addr_scratch_used[] __attribute((unused)) = {
0x00000002,
0x00000004,
0x00000008,
0x00000020,
0x00000022,
0x00000049,
0x00000060,
0x0000006a,
0x00000071,
0x00000073,
0x000000ab,
0x000000b5,
0x000000c1,
0x000000cb,
0x0000012c,
0x00000142,
0x00000157,
0x000001b2,
0x000001b4,
0x000001df,
0x000001f7,
};
#define A_addr_temp 0x00000000
static u32 A_addr_temp_used[] __attribute((unused)) = {
};
#define A_dmode_memory_to_memory 0x00000000
static u32 A_dmode_memory_to_memory_used[] __attribute((unused)) = {
};
#define A_dmode_memory_to_ncr 0x00000000
static u32 A_dmode_memory_to_ncr_used[] __attribute((unused)) = {
};
#define A_dmode_ncr_to_memory 0x00000000
static u32 A_dmode_ncr_to_memory_used[] __attribute((unused)) = {
};
#define A_dsa_check_reselect 0x00000000
static u32 A_dsa_check_reselect_used[] __attribute((unused)) = {
0x000001d0,
};
#define A_dsa_cmdout 0x00000048
static u32 A_dsa_cmdout_used[] __attribute((unused)) = {
0x0000009a,
};
#define A_dsa_cmnd 0x00000038
static u32 A_dsa_cmnd_used[] __attribute((unused)) = {
};
#define A_dsa_datain 0x00000054
static u32 A_dsa_datain_used[] __attribute((unused)) = {
0x000000c2,
};
#define A_dsa_dataout 0x00000050
static u32 A_dsa_dataout_used[] __attribute((unused)) = {
0x000000ac,
};
#define A_dsa_end 0x00000070
static u32 A_dsa_end_used[] __attribute((unused)) = {
};
#define A_dsa_fields_start 0x00000000
static u32 A_dsa_fields_start_used[] __attribute((unused)) = {
};
#define A_dsa_msgin 0x00000058
static u32 A_dsa_msgin_used[] __attribute((unused)) = {
0x0000019c,
};
#define A_dsa_msgout 0x00000040
static u32 A_dsa_msgout_used[] __attribute((unused)) = {
0x00000089,
};
#define A_dsa_msgout_other 0x00000068
static u32 A_dsa_msgout_other_used[] __attribute((unused)) = {
0x00000194,
};
#define A_dsa_next 0x00000030
static u32 A_dsa_next_used[] __attribute((unused)) = {
0x00000061,
};
#define A_dsa_restore_pointers 0x00000000
static u32 A_dsa_restore_pointers_used[] __attribute((unused)) = {
0x00000146,
};
#define A_dsa_save_data_pointer 0x00000000
static u32 A_dsa_save_data_pointer_used[] __attribute((unused)) = {
0x00000131,
};
#define A_dsa_select 0x0000003c
static u32 A_dsa_select_used[] __attribute((unused)) = {
0x00000082,
};
#define A_dsa_sscf_710 0x00000000
static u32 A_dsa_sscf_710_used[] __attribute((unused)) = {
0x00000007,
};
#define A_dsa_status 0x00000060
static u32 A_dsa_status_used[] __attribute((unused)) = {
0x00000198,
};
#define A_dsa_temp_addr_array_value 0x00000000
static u32 A_dsa_temp_addr_array_value_used[] __attribute((unused)) = {
};
#define A_dsa_temp_addr_dsa_value 0x00000000
static u32 A_dsa_temp_addr_dsa_value_used[] __attribute((unused)) = {
0x00000001,
};
#define A_dsa_temp_addr_new_value 0x00000000
static u32 A_dsa_temp_addr_new_value_used[] __attribute((unused)) = {
};
#define A_dsa_temp_addr_next 0x00000000
static u32 A_dsa_temp_addr_next_used[] __attribute((unused)) = {
0x0000001c,
0x0000004f,
};
#define A_dsa_temp_addr_residual 0x00000000
static u32 A_dsa_temp_addr_residual_used[] __attribute((unused)) = {
0x0000002d,
0x0000003b,
};
#define A_dsa_temp_addr_saved_pointer 0x00000000
static u32 A_dsa_temp_addr_saved_pointer_used[] __attribute((unused)) = {
0x0000002b,
0x00000037,
};
#define A_dsa_temp_addr_saved_residual 0x00000000
static u32 A_dsa_temp_addr_saved_residual_used[] __attribute((unused)) = {
0x0000002e,
0x0000003a,
};
#define A_dsa_temp_lun 0x00000000
static u32 A_dsa_temp_lun_used[] __attribute((unused)) = {
0x0000004c,
};
#define A_dsa_temp_next 0x00000000
static u32 A_dsa_temp_next_used[] __attribute((unused)) = {
0x0000001f,
};
#define A_dsa_temp_sync 0x00000000
static u32 A_dsa_temp_sync_used[] __attribute((unused)) = {
0x00000057,
};
#define A_dsa_temp_target 0x00000000
static u32 A_dsa_temp_target_used[] __attribute((unused)) = {
0x00000045,
};
#define A_emulfly 0x00000000
static u32 A_emulfly_used[] __attribute((unused)) = {
};
#define A_int_debug_break 0x03000000
static u32 A_int_debug_break_used[] __attribute((unused)) = {
0x0000023c,
};
#define A_int_debug_panic 0x030b0000
static u32 A_int_debug_panic_used[] __attribute((unused)) = {
0x00000209,
0x00000219,
};
#define A_int_err_check_condition 0x00030000
static u32 A_int_err_check_condition_used[] __attribute((unused)) = {
0x000001a9,
};
#define A_int_err_no_phase 0x00040000
static u32 A_int_err_no_phase_used[] __attribute((unused)) = {
};
#define A_int_err_selected 0x00010000
static u32 A_int_err_selected_used[] __attribute((unused)) = {
0x000001ff,
};
#define A_int_err_unexpected_phase 0x00000000
static u32 A_int_err_unexpected_phase_used[] __attribute((unused)) = {
0x00000092,
0x00000098,
0x000000a0,
0x000000d6,
0x000000da,
0x000000dc,
0x000000e4,
0x000000e8,
0x000000ea,
0x000000f2,
0x000000f6,
0x000000f8,
0x000000fa,
0x00000160,
};
#define A_int_err_unexpected_reselect 0x00020000
static u32 A_int_err_unexpected_reselect_used[] __attribute((unused)) = {
0x000001cd,
};
#define A_int_msg_1 0x01020000
static u32 A_int_msg_1_used[] __attribute((unused)) = {
0x00000114,
0x00000116,
};
#define A_int_msg_sdtr 0x01010000
static u32 A_int_msg_sdtr_used[] __attribute((unused)) = {
0x00000180,
};
#define A_int_msg_wdtr 0x01000000
static u32 A_int_msg_wdtr_used[] __attribute((unused)) = {
0x00000174,
};
#define A_int_norm_aborted 0x02040000
static u32 A_int_norm_aborted_used[] __attribute((unused)) = {
0x00000270,
};
#define A_int_norm_command_complete 0x02020000
static u32 A_int_norm_command_complete_used[] __attribute((unused)) = {
};
#define A_int_norm_disconnected 0x02030000
static u32 A_int_norm_disconnected_used[] __attribute((unused)) = {
};
#define A_int_norm_emulateintfly 0x02060000
static u32 A_int_norm_emulateintfly_used[] __attribute((unused)) = {
0x000001a2,
};
#define A_int_norm_reselect_complete 0x02010000
static u32 A_int_norm_reselect_complete_used[] __attribute((unused)) = {
};
#define A_int_norm_reset 0x02050000
static u32 A_int_norm_reset_used[] __attribute((unused)) = {
};
#define A_int_norm_select_complete 0x02000000
static u32 A_int_norm_select_complete_used[] __attribute((unused)) = {
};
#define A_int_test_1 0x04000000
static u32 A_int_test_1_used[] __attribute((unused)) = {
0x0000021e,
};
#define A_int_test_2 0x04010000
static u32 A_int_test_2_used[] __attribute((unused)) = {
0x0000023a,
};
#define A_int_test_3 0x04020000
static u32 A_int_test_3_used[] __attribute((unused)) = {
};
#define A_msg_buf 0x00000000
static u32 A_msg_buf_used[] __attribute((unused)) = {
0x00000108,
0x00000162,
0x0000016c,
0x00000172,
0x00000178,
0x0000017e,
};
#define A_reconnect_dsa_head 0x00000000
static u32 A_reconnect_dsa_head_used[] __attribute((unused)) = {
0x0000006d,
0x00000074,
0x000001b1,
};
#define A_reselected_identify 0x00000000
static u32 A_reselected_identify_used[] __attribute((unused)) = {
0x00000048,
0x000001af,
};
#define A_reselected_tag 0x00000000
static u32 A_reselected_tag_used[] __attribute((unused)) = {
};
#define A_saved_dsa 0x00000000
static u32 A_saved_dsa_used[] __attribute((unused)) = {
0x00000005,
0x0000000e,
0x00000023,
0x00000025,
0x00000032,
0x0000003f,
0x00000054,
0x0000005f,
0x00000070,
0x00000078,
0x0000008d,
0x000000aa,
0x000000bb,
0x000000c0,
0x000000d1,
0x0000012f,
0x000001a4,
0x000001b5,
0x000001ba,
0x000001e2,
};
#define A_schedule 0x00000000
static u32 A_schedule_used[] __attribute((unused)) = {
0x0000007d,
0x000001a7,
0x00000203,
0x00000244,
};
#define A_test_dest 0x00000000
static u32 A_test_dest_used[] __attribute((unused)) = {
0x0000021c,
};
#define A_test_src 0x00000000
static u32 A_test_src_used[] __attribute((unused)) = {
0x0000021b,
};
#define Ent_accept_message 0x00000624
#define Ent_cmdout_cmdout 0x00000264
#define Ent_command_complete 0x0000065c
#define Ent_command_complete_msgin 0x0000066c
#define Ent_data_transfer 0x0000026c
#define Ent_datain_to_jump 0x00000334
#define Ent_debug_break 0x000008ec
#define Ent_dsa_code_begin 0x00000000
#define Ent_dsa_code_check_reselect 0x0000010c
#define Ent_dsa_code_fix_jump 0x00000058
#define Ent_dsa_code_restore_pointers 0x000000d8
#define Ent_dsa_code_save_data_pointer 0x000000a4
#define Ent_dsa_code_template 0x00000000
#define Ent_dsa_code_template_end 0x00000178
#define Ent_dsa_schedule 0x00000178
#define Ent_dsa_zero 0x00000178
#define Ent_end_data_transfer 0x000002a4
#define Ent_initiator_abort 0x00000914
#define Ent_msg_in 0x0000041c
#define Ent_msg_in_restart 0x000003fc
#define Ent_other_in 0x0000038c
#define Ent_other_out 0x00000354
#define Ent_other_transfer 0x000003c4
#define Ent_reject_message 0x00000604
#define Ent_reselected_check_next 0x000006f0
#define Ent_reselected_ok 0x00000798
#define Ent_respond_message 0x0000063c
#define Ent_select 0x000001f8
#define Ent_select_msgout 0x00000218
#define Ent_target_abort 0x000008f4
#define Ent_test_1 0x00000868
#define Ent_test_2 0x0000087c
#define Ent_test_2_msgout 0x0000089c
#define Ent_wait_reselect 0x000006a8
static u32 LABELPATCHES[] __attribute((unused)) = {
0x00000011,
0x0000001a,
0x0000001d,
0x00000028,
0x0000002a,
0x00000035,
0x00000038,
0x00000042,
0x00000050,
0x00000052,
0x0000006b,
0x00000083,
0x00000085,
0x00000090,
0x00000094,
0x00000096,
0x0000009c,
0x0000009e,
0x000000a2,
0x000000a4,
0x000000a6,
0x000000a8,
0x000000b6,
0x000000b9,
0x000000cc,
0x000000cf,
0x000000d8,
0x000000de,
0x000000e0,
0x000000e6,
0x000000ec,
0x000000ee,
0x000000f4,
0x000000fc,
0x000000fe,
0x0000010a,
0x0000010c,
0x0000010e,
0x00000110,
0x00000112,
0x00000118,
0x0000011a,
0x0000012d,
0x00000143,
0x00000158,
0x0000015c,
0x00000164,
0x00000166,
0x00000168,
0x0000016e,
0x0000017a,
0x000001ab,
0x000001b8,
0x000001bf,
0x000001c3,
0x000001c7,
0x000001cb,
0x000001e0,
0x000001f8,
0x00000207,
0x0000020f,
0x00000213,
0x00000217,
0x00000224,
0x00000226,
0x00000248,
0x0000024a,
0x0000024c,
0x0000024e,
0x00000250,
0x00000252,
0x00000256,
0x0000025a,
0x0000025c,
0x00000260,
0x00000262,
0x00000266,
0x00000268,
};
static struct {
u32 offset;
void *address;
} EXTERNAL_PATCHES[] __attribute((unused)) = {
};
static u32 INSTRUCTIONS __attribute((unused)) = 290;
static u32 PATCHES __attribute((unused)) = 78;
static u32 EXTERNAL_PATCHES_LEN __attribute((unused)) = 0;
#undef A_NCR53c7xx_msg_abort
#undef A_NCR53c7xx_msg_reject
#undef A_NCR53c7xx_sink
#undef A_NCR53c7xx_zero
#undef A_NOP_insn
#undef A_addr_dsa
#undef A_addr_reconnect_dsa_head
#undef A_addr_scratch
#undef A_addr_temp
#undef A_dmode_memory_to_memory
#undef A_dmode_memory_to_ncr
#undef A_dmode_ncr_to_memory
#undef A_dsa_check_reselect
#undef A_dsa_cmdout
#undef A_dsa_cmnd
#undef A_dsa_datain
#undef A_dsa_dataout
#undef A_dsa_end
#undef A_dsa_fields_start
#undef A_dsa_msgin
#undef A_dsa_msgout
#undef A_dsa_msgout_other
#undef A_dsa_next
#undef A_dsa_restore_pointers
#undef A_dsa_save_data_pointer
#undef A_dsa_select
#undef A_dsa_sscf_710
#undef A_dsa_status
#undef A_dsa_temp_addr_array_value
#undef A_dsa_temp_addr_dsa_value
#undef A_dsa_temp_addr_new_value
#undef A_dsa_temp_addr_next
#undef A_dsa_temp_addr_residual
#undef A_dsa_temp_addr_saved_pointer
#undef A_dsa_temp_addr_saved_residual
#undef A_dsa_temp_lun
#undef A_dsa_temp_next
#undef A_dsa_temp_sync
#undef A_dsa_temp_target
#undef A_emulfly
#undef A_int_debug_break
#undef A_int_debug_panic
#undef A_int_err_check_condition
#undef A_int_err_no_phase
#undef A_int_err_selected
#undef A_int_err_unexpected_phase
#undef A_int_err_unexpected_reselect
#undef A_int_msg_1
#undef A_int_msg_sdtr
#undef A_int_msg_wdtr
#undef A_int_norm_aborted
#undef A_int_norm_command_complete
#undef A_int_norm_disconnected
#undef A_int_norm_emulateintfly
#undef A_int_norm_reselect_complete
#undef A_int_norm_reset
#undef A_int_norm_select_complete
#undef A_int_test_1
#undef A_int_test_2
#undef A_int_test_3
#undef A_msg_buf
#undef A_reconnect_dsa_head
#undef A_reselected_identify
#undef A_reselected_tag
#undef A_saved_dsa
#undef A_schedule
#undef A_test_dest
#undef A_test_src
#undef Ent_accept_message
#undef Ent_cmdout_cmdout
#undef Ent_command_complete
#undef Ent_command_complete_msgin
#undef Ent_data_transfer
#undef Ent_datain_to_jump
#undef Ent_debug_break
#undef Ent_dsa_code_begin
#undef Ent_dsa_code_check_reselect
#undef Ent_dsa_code_fix_jump
#undef Ent_dsa_code_restore_pointers
#undef Ent_dsa_code_save_data_pointer
#undef Ent_dsa_code_template
#undef Ent_dsa_code_template_end
#undef Ent_dsa_schedule
#undef Ent_dsa_zero
#undef Ent_end_data_transfer
#undef Ent_initiator_abort
#undef Ent_msg_in
#undef Ent_msg_in_restart
#undef Ent_other_in
#undef Ent_other_out
#undef Ent_other_transfer
#undef Ent_reject_message
#undef Ent_reselected_check_next
#undef Ent_reselected_ok
#undef Ent_respond_message
#undef Ent_select
#undef Ent_select_msgout
#undef Ent_target_abort
#undef Ent_test_1
#undef Ent_test_2
#undef Ent_test_2_msgout
#undef Ent_wait_reselect
...@@ -131,42 +131,32 @@ cpqfc-objs := cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o \ ...@@ -131,42 +131,32 @@ cpqfc-objs := cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o \
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
53c8xx_d.h: 53c7,8xx.scr script_asm.pl $(obj)/53c7,8xx.o: $(obj)/53c8xx_d.h $(obj)/53c8xx_u.h
ln -sf 53c7,8xx.scr fake8.c $(obj)/53c7xx.o: $(obj)/53c7xx_d.h $(obj)/53c7xx_u.h
$(CPP) $(CPPFLAGS) -traditional -DCHIP=810 fake8.c | grep -v '^#' | $(PERL) script_asm.pl $(obj)/sim710.o: $(obj)/sim710_d.h
mv script.h 53c8xx_d.h $(obj)/53c700.o $(MODVERDIR)/53c700.ver: $(obj)/53c700_d.h
mv scriptu.h 53c8xx_u.h
rm fake8.c
53c8xx_u.h: 53c8xx_d.h # If you want to play with the firmware, uncomment
# GENERATE_FIRMWARE := 1
53c7,8xx.o: 53c8xx_u.h ifdef GENERATE_FIRMWARE
53c7xx_d.h: 53c7xx.scr script_asm.pl $(obj)/53c8xx_d.h: $(src)/53c7,8xx.scr $(src)/script_asm.pl
ln -sf 53c7xx.scr fake7.c $(CPP) -traditional -DCHIP=810 - < $< | grep -v '^#' | $(PERL) $(src)/script_asm.pl $@ $(@:_d.h=_u.h)
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family
mv script.h 53c7xx_d.h
mv scriptu.h 53c7xx_u.h
rm fake7.c
53c7xx_u.h: 53c7xx_d.h $(obj)/53c8xx_u.h: $(obj)/53c8xx_d.h
53c7xx.o : 53c7xx_d.h $(obj)/53c7xx_d.h: $(src)/53c7xx.scr $(src)/script_asm.pl
$(CPP) -traditional -DCHIP=710 - < $< | grep -v '^#' | $(PERL) -s $(src)/script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
sim710_d.h: sim710.scr script_asm.pl $(obj)/53c7xx_u.h: $(obj)/53c7xx_d.h
ln -sf sim710.scr fake7.c
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr7x0_family
mv script.h sim710_d.h
mv scriptu.h sim710_u.h
rm fake7.c
sim710_u.h: sim710_d.h $(obj)/sim710_d.h: $(src)/sim710.scr $(src)/script_asm.pl
$(CPP) -traditional -DCHIP=710 - < $< | grep -v '^#' | $(PERL) -s $(src)/script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h)
sim710.o : sim710_d.h $(obj)/sim710_u.h: $(obj)/sim710_d.h
53c700_d.h: 53c700.scr script_asm.pl $(obj)/53c700_d.h: $(src)/53c700.scr $(src)/script_asm.pl
$(PERL) -s script_asm.pl -ncr7x0_family < 53c700.scr $(PERL) -s $(src)/script_asm.pl -ncr7x0_family $@ $(@:_d.h=_u.h) < $<
rm -f scriptu.h
mv script.h 53c700_d.h
53c700.o: 53c700_d.h endif
\ No newline at end of file
...@@ -24,21 +24,20 @@ include $(TOPDIR)/Rules.make ...@@ -24,21 +24,20 @@ include $(TOPDIR)/Rules.make
# Dependencies for generated files need to be listed explicitly # Dependencies for generated files need to be listed explicitly
aic7xxx_core.o: aic7xxx_seq.h $(obj)/aic7xxx_core.o: $(obj)/aic7xxx_seq.h
$(aic7xxx-objs): aic7xxx_reg.h $(addprefix $(obj)/,$(aic7xxx-objs)): $(obj)/aic7xxx_reg.h
ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y) ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
aic7xxx_seq.h aic7xxx_reg.h: aic7xxx.seq aic7xxx.reg aicasm/aicasm $(obj)/aic7xxx_seq.h $(obj)/aic7xxx_reg.h: $(src)/aic7xxx.seq \
aicasm/aicasm -I. -r aic7xxx_reg.h -o aic7xxx_seq.h aic7xxx.seq $(src)/aic7xxx.reg \
$(obj)/aicasm/aicasm
$(obj)/aicasm/aicasm -I. -r $(obj)/aic7xxx_reg.h \
-o $(obj)/aic7xxx_seq.h $(src)/aic7xxx.seq
else $(obj)/aicasm/aicasm: $(src)/aicasm/*.[chyl]
$(MAKE) -C $(src)/aicasm
aic7xxx_seq.h aic7xxx_reg.h: %.h : shipped_%.h
cp $< $@
endif endif
aicasm/aicasm: aicasm/*.[chyl]
$(MAKE) -C aicasm
...@@ -53,7 +53,8 @@ $debug = 0; # Print general debugging messages ...@@ -53,7 +53,8 @@ $debug = 0; # Print general debugging messages
$debug_external = 0; # Print external/forward reference messages $debug_external = 0; # Print external/forward reference messages
$list_in_array = 1; # Emit original SCRIPTS assembler in comments in $list_in_array = 1; # Emit original SCRIPTS assembler in comments in
# script.h # script.h
$prefix = ''; # define all arrays having this prefix so we #$prefix; # (set by perl -s)
# define all arrays having this prefix so we
# don't have name space collisions after # don't have name space collisions after
# assembling this file in different ways for # assembling this file in different ways for
# different host adapters # different host adapters
...@@ -383,11 +384,9 @@ print STDERR "looking for data in $conditional\n" if ($debug); ...@@ -383,11 +384,9 @@ print STDERR "looking for data in $conditional\n" if ($debug);
} }
# Parse command line # Parse command line
foreach $arg (@argv) { $output = shift;
if ($arg =~ /^-prefix\s*=\s*([_a-zA-Z][_a-zA-Z0-9]*)$/i) { $outputu = shift;
$prefix = $1
}
}
# Main loop # Main loop
while (<STDIN>) { while (<STDIN>) {
......
#undef A_dsa_cmnd
#undef A_dsa_datain
#undef A_dsa_dataout
#undef A_dsa_msgin
#undef A_dsa_msgout
#undef A_dsa_select
#undef A_dsa_size
#undef A_dsa_status
#undef A_had_cmdout
#undef A_had_datain
#undef A_had_dataout
#undef A_had_extmsg
#undef A_had_msgin
#undef A_had_msgout
#undef A_had_select
#undef A_had_status
#undef A_int_bad_extmsg1a
#undef A_int_bad_extmsg1b
#undef A_int_bad_extmsg2a
#undef A_int_bad_extmsg2b
#undef A_int_bad_extmsg3a
#undef A_int_bad_extmsg3b
#undef A_int_bad_msg1
#undef A_int_bad_msg2
#undef A_int_bad_msg3
#undef A_int_cmd_bad_phase
#undef A_int_cmd_complete
#undef A_int_data_bad_phase
#undef A_int_disc1
#undef A_int_disc2
#undef A_int_disc3
#undef A_int_msg_sdtr1
#undef A_int_msg_sdtr2
#undef A_int_msg_sdtr3
#undef A_int_no_msgout1
#undef A_int_no_msgout2
#undef A_int_no_msgout3
#undef A_int_not_cmd_complete
#undef A_int_not_rej
#undef A_int_resel_not_msgin
#undef A_int_reselected
#undef A_int_sel_no_ident
#undef A_int_sel_not_cmd
#undef A_int_selected
#undef A_int_status_not_msgin
#undef A_msgin_buf
#undef A_reselected_identify
#undef Ent_do_select
#undef Ent_done_ident
#undef Ent_end_data_trans
#undef Ent_patch_input_data
#undef Ent_patch_new_dsa
#undef Ent_patch_output_data
#undef Ent_reselect
#undef Ent_resume_cmd
#undef Ent_resume_msgin1a
#undef Ent_resume_msgin1b
#undef Ent_resume_msgin2a
#undef Ent_resume_msgin2b
#undef Ent_resume_msgin3a
#undef Ent_resume_msgin3b
#undef Ent_resume_pmm
#undef Ent_resume_rej_ident
#undef Ent_wait_disc1
#undef Ent_wait_disc2
#undef Ent_wait_disc3
#undef Ent_wait_disc_complete
...@@ -15,5 +15,5 @@ obj-$(CONFIG_VT) += lk201.o lk201-map.o lk201-remap.o ...@@ -15,5 +15,5 @@ obj-$(CONFIG_VT) += lk201.o lk201-map.o lk201-remap.o
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
lk201-map.c: lk201-map.map $(obj)/lk201-map.c: $(src)/lk201-map.map
loadkeys --mktable lk201-map.map > lk201-map.c loadkeys --mktable $< > $@
...@@ -122,17 +122,12 @@ obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o ...@@ -122,17 +122,12 @@ obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o
obj-$(CONFIG_FBCON_STI) += fbcon-sti.o obj-$(CONFIG_FBCON_STI) += fbcon-sti.o
obj-$(CONFIG_FBCON_ACCEL) += fbcon-accel.o obj-$(CONFIG_FBCON_ACCEL) += fbcon-accel.o
host-progs := ../conmakehash host-progs := ../char/conmakehash
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
clean: $(obj)/promcon_tbl.c: $(src)/prom.uni $(obj)/../char/conmakehash
rm -f core *.o *.a *.s $(obj)/../char/conmakehash $< | \
promcon_tbl.c: prom.uni ../char/conmakehash
../char/conmakehash prom.uni | \
sed -e '/#include <[^>]*>/p' -e 's/types/init/' \ sed -e '/#include <[^>]*>/p' -e 's/types/init/' \
-e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > promcon_tbl.c -e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > $@
promcon_tbl.o: promcon_tbl.c $(TOPDIR)/include/linux/types.h
...@@ -11,7 +11,11 @@ host-progs := gen_devlist ...@@ -11,7 +11,11 @@ host-progs := gen_devlist
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
names.o: devlist.h # Dependencies on generated files need to be listed explicitly
devlist.h: zorro.ids gen-devlist $(obj)/names.o: $(obj)/devlist.h
./gen-devlist <zorro.ids
# And that's how to generate them
$(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist
$(obj)/gen-devlist < $<
...@@ -10,17 +10,13 @@ include $(TOPDIR)/Rules.make ...@@ -10,17 +10,13 @@ include $(TOPDIR)/Rules.make
# dependencies on generated files need to be listed explicitly # dependencies on generated files need to be listed explicitly
version.o: ../include/linux/compile.h $(obj)/version.o: $(objtree)/include/linux/compile.h
# 'make dep' may add a dependency on $(TOPDIR)/include/linux/compile.h
$(TOPDIR)/include/linux/compile.h: ../include/linux/compile.h ;
# compile.h changes depending on hostname, generation number, etc, # compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always. # so we regenerate it always.
# mkcompile_h will make sure to only update the # mkcompile_h will make sure to only update the
# actual file if its content has changed. # actual file if its content has changed.
../include/linux/compile.h: FORCE $(objtree)/include/linux/compile.h: FORCE
@echo -n ' Generating $@' @echo -n ' Generating $@'
@../scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)" @../scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
...@@ -2,52 +2,40 @@ ...@@ -2,52 +2,40 @@
# Makefile for the Linux 802.x protocol layers. # Makefile for the Linux 802.x protocol layers.
# #
export-objs = llc_macinit.o p8022.o psnap.o export-objs := llc_macinit.o p8022.o psnap.o
obj-y = p8023.o obj-y := p8023.o
obj-$(CONFIG_SYSCTL) += sysctl_net_802.o obj-$(CONFIG_SYSCTL) += sysctl_net_802.o
obj-$(CONFIG_LLC) += llc_sendpdu.o llc_utility.o cl2llc.o llc_macinit.o obj-$(CONFIG_LLC) += p8022.o psnap.o llc_sendpdu.o llc_utility.o \
ifeq ($(CONFIG_SYSCTL),y) cl2llc.o llc_macinit.o
obj-y += sysctl_net_802.o obj-$(CONFIG_TR) += p8022.o psnap.o tr.o
endif obj-$(CONFIG_NET_FC) += fc.o
obj-$(CONFIG_FDDI) += fddi.o
ifeq ($(CONFIG_LLC),y) obj-$(CONFIG_HIPPI) += hippi.o
subdir-y += transit obj-$(CONFIG_IPX) += p8022.o psnap.o
obj-y += llc_sendpdu.o llc_utility.o cl2llc.o llc_macinit.o obj-$(CONFIG_ATALK) += p8022.o psnap.o
SNAP = y
endif
ifdef CONFIG_TR
obj-y += tr.o
SNAP=y
endif
ifdef CONFIG_NET_FC
obj-y += fc.o
endif
ifdef CONFIG_FDDI
obj-y += fddi.o
endif
ifdef CONFIG_HIPPI
obj-y += hippi.o
endif
ifdef CONFIG_IPX
SNAP=y
endif
ifdef CONFIG_ATALK
SNAP=y
endif
ifeq ($(SNAP),y)
obj-y += p8022.o psnap.o
endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
cl2llc.c: cl2llc.pre # Dependencies on generated files need to be listed explicitly
sed -f ./pseudo/opcd2num.sed cl2llc.pre >cl2llc.c
$(obj)/cl2llc.o: $(obj)/transit/pdutr.h $(obj)/transit/timertr.h \
$(obj)/pseudo/pseudocode.h
# Generated files
$(obj)/transit/pdutr.h: $(src)/transit/pdutr.pre $(src)/transit/compile.awk
awk -f $(src)/transit/compile.awk $< >$@
$(obj)/transit/timertr.h: $(src)/transit/timertr.pre $(src)/transit/compile.awk
awk -f $(src)/transit/compile.awk $< >$@
$(obj)/pseudo/pseudocode.h: $(src)/pseudo/pseudocode \
$(src)/pseudo/opcd2num.sed \
$(src)/pseudo/compile.awk
sed -f $(src)/pseudo/opcd2num.sed $< | \
awk -f $(src)/pseudo/compile.awk >$@
$(obj)/cl2llc.c: $(src)/cl2llc.pre $(src)/pseudo/opcd2num.sed
sed -f $(src)/pseudo/opcd2num.sed $< >$@
/*
* NET An implementation of the IEEE 802.2 LLC protocol for the
* LINUX operating system. LLC is implemented as a set of
* state machines and callbacks for higher networking layers.
*
* Class 2 llc algorithm.
* Pseudocode interpreter, transition table lookup,
* data_request & indicate primitives...
*
* Code for initialization, termination, registration and
* MAC layer glue.
*
* Copyright Tim Alpaerts,
* <Tim_Alpaerts@toyota-motor-europe.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Changes
* Alan Cox : Chainsawed into Linux format
* Modified to use llc_ names
* Changed callbacks
*
* This file must be processed by sed before it can be compiled.
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <net/p8022.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <asm/byteorder.h>
#include "pseudo/pseudocode.h"
#include "transit/pdutr.h"
#include "transit/timertr.h"
#include <net/llc_frame.h>
#include <net/llc.h>
/*
* Data_request() is called by the client to present a data unit
* to the llc for transmission.
* In the future this function should also check if the transmit window
* allows the sending of another pdu, and if not put the skb on the atq
* for deferred sending.
*/
int llc_data_request(llcptr lp, struct sk_buff *skb)
{
if (skb_headroom(skb) < (lp->dev->hard_header_len +4)){
printk("cl2llc: data_request() not enough headroom in skb\n");
return -1;
};
skb_push(skb, 4);
if ((lp->state != NORMAL) && (lp->state != BUSY) && (lp->state != REJECT))
{
printk("cl2llc: data_request() while no llc connection\n");
return -1;
}
if (lp->remote_busy)
{ /* if the remote llc is BUSY, */
ADD_TO_ATQ(skb); /* save skb in the await transmit queue */
return 0;
}
else
{
/*
* Else proceed with xmit
*/
switch(lp->state)
{
case NORMAL:
if(lp->p_flag)
llc_interpret_pseudo_code(lp, NORMAL2, skb, NO_FRAME);
else
llc_interpret_pseudo_code(lp, NORMAL1, skb, NO_FRAME);
break;
case BUSY:
if (lp->p_flag)
llc_interpret_pseudo_code(lp, BUSY2, skb, NO_FRAME);
else
llc_interpret_pseudo_code(lp, BUSY1, skb, NO_FRAME);
break;
case REJECT:
if (lp->p_flag)
llc_interpret_pseudo_code(lp, REJECT2, skb, NO_FRAME);
else
llc_interpret_pseudo_code(lp, REJECT1, skb, NO_FRAME);
break;
default:;
}
if(lp->llc_callbacks)
{
lp->llc_event(lp);
lp->llc_callbacks=0;
}
return 0;
}
}
/*
* Disconnect_request() requests that the llc to terminate a connection
*/
void disconnect_request(llcptr lp)
{
if ((lp->state == NORMAL) ||
(lp->state == BUSY) ||
(lp->state == REJECT) ||
(lp->state == AWAIT) ||
(lp->state == AWAIT_BUSY) ||
(lp->state == AWAIT_REJECT))
{
lp->state = D_CONN;
llc_interpret_pseudo_code(lp, SH1, NULL, NO_FRAME);
if(lp->llc_callbacks)
{
lp->llc_event(lp);
lp->llc_callbacks=0;
}
/*
* lp may be invalid after the callback
*/
}
}
/*
* Connect_request() requests that the llc to start a connection
*/
void connect_request(llcptr lp)
{
if (lp->state == ADM)
{
lp->state = SETUP;
llc_interpret_pseudo_code(lp, ADM1, NULL, NO_FRAME);
if(lp->llc_callbacks)
{
lp->llc_event(lp);
lp->llc_callbacks=0;
}
/*
* lp may be invalid after the callback
*/
}
}
/*
* Interpret_pseudo_code() executes the actions in the connection component
* state transition table. Table 4 in document on p88.
*
* If this function is called to handle an incoming pdu, skb will point
* to the buffer with the pdu and type will contain the decoded pdu type.
*
* If called by data_request skb points to an skb that was skb_alloc-ed by
* the llc client to hold the information unit to be transmitted, there is
* no valid type in this case.
*
* If called because a timer expired no skb is passed, and there is no
* type.
*/
void llc_interpret_pseudo_code(llcptr lp, int pc_label, struct sk_buff *skb,
char type)
{
short int pc; /* program counter in pseudo code array */
char p_flag_received;
frameptr fr;
int resend_count; /* number of pdus resend by llc_resend_ipdu() */
int ack_count; /* number of pdus acknowledged */
struct sk_buff *skb2;
if (skb != NULL)
{
fr = (frameptr) skb->data;
}
else
fr = NULL;
pc = pseudo_code_idx[pc_label];
while(pseudo_code[pc])
{
switch(pseudo_code[pc])
{
case 9:
if ((type != I_CMD) || (fr->i_hdr.i_pflag == 0))
break;
case 1:
lp->remote_busy = 0;
llc_stop_timer(lp, BUSY_TIMER);
if ((lp->state == NORMAL) ||
(lp->state == REJECT) ||
(lp->state == BUSY))
{
skb2 = llc_pull_from_atq(lp);
if (skb2 != NULL)
llc_start_timer(lp, ACK_TIMER);
while (skb2 != NULL)
{
llc_sendipdu( lp, I_CMD, 0, skb2);
skb2 = llc_pull_from_atq(lp);
}
}
break;
case 2:
lp->state = NORMAL; /* needed to eliminate connect_response() */
lp->llc_mode = MODE_ABM;
lp->llc_callbacks|=LLC_CONN_INDICATION;
break;
case 3:
lp->llc_mode = MODE_ABM;
lp->llc_callbacks|=LLC_CONN_CONFIRM;
break;
case 4:
skb_pull(skb, 4);
lp->inc_skb=skb;
lp->llc_callbacks|=LLC_DATA_INDIC;
break;
case 5:
lp->llc_mode = MODE_ADM;
lp->llc_callbacks|=LLC_DISC_INDICATION;
break;
case 70:
lp->llc_callbacks|=LLC_RESET_INDIC_LOC;
break;
case 71:
lp->llc_callbacks|=LLC_RESET_INDIC_REM;
break;
case 7:
lp->llc_callbacks|=LLC_RST_CONFIRM;
break;
case 66:
lp->llc_callbacks|=LLC_FRMR_RECV;
break;
case 67:
lp->llc_callbacks|=LLC_FRMR_SENT;
break;
case 68:
lp->llc_callbacks|=LLC_REMOTE_BUSY;
break;
case 69:
lp->llc_callbacks|=LLC_REMOTE_NOTBUSY;
break;
case 11:
llc_sendpdu(lp, DISC_CMD, lp->f_flag, 0, NULL);
break;
case 12:
llc_sendpdu(lp, DM_RSP, 0, 0, NULL);
break;
case 13:
lp->frmr_info_fld.cntl1 = fr->pdu_cntl.byte1;
lp->frmr_info_fld.cntl2 = fr->pdu_cntl.byte2;
lp->frmr_info_fld.vs = lp->vs;
lp->frmr_info_fld.vr_cr = lp->vr;
llc_sendpdu(lp, FRMR_RSP, 0, 5, (char *) &lp->frmr_info_fld);
break;
case 14:
llc_sendpdu(lp, FRMR_RSP, 0, 5, (char *) &lp->frmr_info_fld);
break;
case 15:
llc_sendpdu(lp, FRMR_RSP, lp->p_flag,
5, (char *) &lp->frmr_info_fld);
break;
case 16:
llc_sendipdu(lp, I_CMD, 1, skb);
break;
case 17:
resend_count = llc_resend_ipdu(lp, fr->i_hdr.nr, I_CMD, 1);
break;
case 18:
resend_count = llc_resend_ipdu(lp, fr->i_hdr.nr, I_CMD, 1);
if (resend_count == 0)
{
llc_sendpdu(lp, RR_CMD, 1, 0, NULL);
}
break;
case 19:
llc_sendipdu(lp, I_CMD, 0, skb);
break;
case 20:
resend_count = llc_resend_ipdu(lp, fr->i_hdr.nr, I_CMD, 0);
break;
case 21:
resend_count = llc_resend_ipdu(lp, fr->i_hdr.nr, I_CMD, 0);
if (resend_count == 0)
{
llc_sendpdu(lp, RR_CMD, 0, 0, NULL);
}
break;
case 22:
resend_count = llc_resend_ipdu(lp, fr->i_hdr.nr, I_RSP, 1);
break;
case 23:
llc_sendpdu(lp, REJ_CMD, 1, 0, NULL);
break;
case 24:
llc_sendpdu(lp, REJ_RSP, 1, 0, NULL);
break;
case 25:
if (IS_RSP(fr))
llc_sendpdu(lp, REJ_CMD, 0, 0, NULL);
else
llc_sendpdu(lp, REJ_RSP, 0, 0, NULL);
break;
case 26:
llc_sendpdu(lp, RNR_CMD, 1, 0, NULL);
break;
case 27:
llc_sendpdu(lp, RNR_RSP, 1, 0, NULL);
break;
case 28:
if (IS_RSP(fr))
llc_sendpdu(lp, RNR_CMD, 0, 0, NULL);
else
llc_sendpdu(lp, RNR_RSP, 0, 0, NULL);
break;
case 29:
if (lp->remote_busy == 0)
{
lp->remote_busy = 1;
llc_start_timer(lp, BUSY_TIMER);
lp->llc_callbacks|=LLC_REMOTE_BUSY;
}
else if (lp->timer_state[BUSY_TIMER] == TIMER_IDLE)
{
llc_start_timer(lp, BUSY_TIMER);
}
break;
case 30:
if (IS_RSP(fr))
llc_sendpdu(lp, RNR_CMD, 0, 0, NULL);
else
llc_sendpdu(lp, RNR_RSP, 0, 0, NULL);
break;
case 31:
llc_sendpdu(lp, RR_CMD, 1, 0, NULL);
break;
case 32:
llc_sendpdu(lp, RR_CMD, 1, 0, NULL);
break;
case 33:
llc_sendpdu(lp, RR_RSP, 1, 0, NULL);
break;
case 34:
llc_sendpdu(lp, RR_RSP, 1, 0, NULL);
break;
case 35:
llc_sendpdu(lp, RR_RSP, 0, 0, NULL);
break;
case 36:
if (IS_RSP(fr))
llc_sendpdu(lp, RR_CMD, 0, 0, NULL);
else
llc_sendpdu(lp, RR_RSP, 0, 0, NULL);
break;
case 37:
llc_sendpdu(lp, SABME_CMD, 0, 0, NULL);
lp->f_flag = 0;
break;
case 38:
llc_sendpdu(lp, UA_RSP, lp->f_flag, 0, NULL);
break;
case 39:
lp->s_flag = 0;
break;
case 40:
lp->s_flag = 1;
break;
case 41:
if(lp->timer_state[P_TIMER] == TIMER_RUNNING)
llc_stop_timer(lp, P_TIMER);
llc_start_timer(lp, P_TIMER);
if (lp->p_flag == 0)
{
lp->retry_count = 0;
lp->p_flag = 1;
}
break;
case 44:
if (lp->timer_state[ACK_TIMER] == TIMER_IDLE)
llc_start_timer(lp, ACK_TIMER);
break;
case 42:
llc_start_timer(lp, ACK_TIMER);
break;
case 43:
llc_start_timer(lp, REJ_TIMER);
break;
case 45:
llc_stop_timer(lp, ACK_TIMER);
break;
case 46:
llc_stop_timer(lp, ACK_TIMER);
lp->p_flag = 0;
break;
case 10:
if (lp->data_flag == 2)
llc_stop_timer(lp, REJ_TIMER);
break;
case 47:
llc_stop_timer(lp, REJ_TIMER);
break;
case 48:
llc_stop_timer(lp, ACK_TIMER);
llc_stop_timer(lp, P_TIMER);
llc_stop_timer(lp, REJ_TIMER);
llc_stop_timer(lp, BUSY_TIMER);
break;
case 49:
llc_stop_timer(lp, P_TIMER);
llc_stop_timer(lp, REJ_TIMER);
llc_stop_timer(lp, BUSY_TIMER);
break;
case 50:
ack_count = llc_free_acknowledged_skbs(lp,
(unsigned char) fr->s_hdr.nr);
if (ack_count > 0)
{
lp->retry_count = 0;
llc_stop_timer(lp, ACK_TIMER);
if (skb_peek(&lp->rtq) != NULL)
{
/*
* Re-transmit queue not empty
*/
llc_start_timer(lp, ACK_TIMER);
}
}
break;
case 51:
if (IS_UFRAME(fr))
p_flag_received = fr->u_hdr.u_pflag;
else
p_flag_received = fr->i_hdr.i_pflag;
if ((fr->pdu_hdr.ssap & 0x01) && (p_flag_received))
{
lp->p_flag = 0;
llc_stop_timer(lp, P_TIMER);
}
break;
case 52:
lp->data_flag = 2;
break;
case 53:
lp->data_flag = 0;
break;
case 54:
lp->data_flag = 1;
break;
case 55:
if (lp->data_flag == 0)
lp->data_flag = 1;
break;
case 56:
lp->p_flag = 0;
break;
case 57:
lp->p_flag = lp->f_flag;
break;
case 58:
lp->remote_busy = 0;
break;
case 59:
lp->retry_count = 0;
break;
case 60:
lp->retry_count++;
break;
case 61:
lp->vr = 0;
break;
case 62:
lp->vr++;
break;
case 63:
lp->vs = 0;
break;
case 64:
lp->vs = fr->i_hdr.nr;
break;
case 65:
if (IS_UFRAME(fr))
lp->f_flag = fr->u_hdr.u_pflag;
else
lp->f_flag = fr->i_hdr.i_pflag;
break;
default:;
}
pc++;
}
}
/*
* Process_otype2_frame will handle incoming frames
* for 802.2 Type 2 Procedure.
*/
void llc_process_otype2_frame(llcptr lp, struct sk_buff *skb, char type)
{
int idx; /* index in transition table */
int pc_label; /* action to perform, from tr tbl */
int validation; /* result of validate_seq_nos */
int p_flag_received; /* p_flag in received frame */
frameptr fr;
fr = (frameptr) skb->data;
if (IS_UFRAME(fr))
p_flag_received = fr->u_hdr.u_pflag;
else
p_flag_received = fr->i_hdr.i_pflag;
switch(lp->state)
{
/* Compute index in transition table: */
case ADM:
idx = type;
idx = (idx << 1) + p_flag_received;
break;
case CONN:
case RESET_WAIT:
case RESET_CHECK:
case ERROR:
idx = type;
break;
case SETUP:
case RESET:
case D_CONN:
idx = type;
idx = (idx << 1) + lp->p_flag;
break;
case NORMAL:
case BUSY:
case REJECT:
case AWAIT:
case AWAIT_BUSY:
case AWAIT_REJECT:
validation = llc_validate_seq_nos(lp, fr);
if (validation > 3)
type = BAD_FRAME;
idx = type;
idx = (idx << 1);
if (validation & 1)
idx = idx +1;
idx = (idx << 1) + p_flag_received;
idx = (idx << 1) + lp->p_flag;
default:
printk("llc_proc: bad state\n");
return;
}
idx = (idx << 1) + pdutr_offset[lp->state];
lp->state = pdutr_entry[idx +1];
pc_label = pdutr_entry[idx];
if (pc_label != 0)
{
llc_interpret_pseudo_code(lp, pc_label, skb, type);
if(lp->llc_callbacks)
{
lp->llc_event(lp);
lp->llc_callbacks=0;
}
/*
* lp may no longer be valid after this point. Be
* careful what is added!
*/
}
}
void llc_timer_expired(llcptr lp, int t)
{
int idx; /* index in transition table */
int pc_label; /* action to perform, from tr tbl */
lp->timer_state[t] = TIMER_EXPIRED;
idx = lp->state; /* Compute index in transition table: */
idx = (idx << 2) + t;
idx = idx << 1;
if (lp->retry_count >= lp->n2)
idx = idx + 1;
idx = (idx << 1) + lp->s_flag;
idx = (idx << 1) + lp->p_flag;
idx = idx << 1; /* 2 bytes per entry: action & newstate */
pc_label = timertr_entry[idx];
if (pc_label != 0)
{
llc_interpret_pseudo_code(lp, pc_label, NULL, NO_FRAME);
lp->state = timertr_entry[idx +1];
}
lp->timer_state[t] = TIMER_IDLE;
if(lp->llc_callbacks)
{
lp->llc_event(lp);
lp->llc_callbacks=0;
}
/*
* And lp may have vanished in the event callback
*/
}
...@@ -96,7 +96,7 @@ int llc_data_request(llcptr lp, struct sk_buff *skb) ...@@ -96,7 +96,7 @@ int llc_data_request(llcptr lp, struct sk_buff *skb)
else else
llc_interpret_pseudo_code(lp, REJECT1, skb, NO_FRAME); llc_interpret_pseudo_code(lp, REJECT1, skb, NO_FRAME);
break; break;
default: default:;
} }
if(lp->llc_callbacks) if(lp->llc_callbacks)
{ {
...@@ -497,7 +497,7 @@ void llc_interpret_pseudo_code(llcptr lp, int pc_label, struct sk_buff *skb, ...@@ -497,7 +497,7 @@ void llc_interpret_pseudo_code(llcptr lp, int pc_label, struct sk_buff *skb,
else else
lp->f_flag = fr->i_hdr.i_pflag; lp->f_flag = fr->i_hdr.i_pflag;
break; break;
default: default:;
} }
pc++; pc++;
} }
......
all: pseudocode.h actionnm.h
clean:
touch pseudocode.h actionnm.h
rm pseudocode.h actionnm.h
pseudocode.h: pseudocode opcd2num.sed compile.awk
sed -f opcd2num.sed pseudocode | awk -f compile.awk >pseudocode.h
actionnm.h: pseudocode.h actionnm.awk
awk -f actionnm.awk pseudocode.h>actionnm.h
/* this file generated on Thu Oct 24 11:42:37 GMT 1996 */
static char *action_names[] = {
"NOP" ,"ADM1" ,"ADM2" ,"ADM3" ,
"ADM4" ,"ADM5" ,"CONN2" ,"CONN3" ,
"CONN4" ,"CONN5" ,"RESWAIT1" ,"RESWAIT2" ,
"RESWAIT3" ,"RESWAIT4" ,"RESWAIT5" ,"RESWAIT6" ,
"RESWAIT7" ,"RESWAIT8" ,"RESCHK1" ,"RESCHK2" ,
"RESCHK3" ,"RESCHK4" ,"RESCHK5" ,"RESCHK6" ,
"SETUP1" ,"SETUP2" ,"SETUP3" ,"SETUP4" ,
"SETUP5" ,"SETUP6" ,"SETUP7" ,"SETUP8" ,
"RESET1" ,"RESET2" ,"RESET3" ,"RESET4" ,
"RESET5" ,"RESET6" ,"RESET7" ,"RESET8" ,
"D_CONN1" ,"D_CONN2" ,"D_CONN3" ,"D_CONN4" ,
"D_CONN5" ,"D_CONN6" ,"D_CONN7" ,"ERR1" ,
"ERR2" ,"ERR3" ,"ERR4" ,"ERR5" ,
"ERR6" ,"ERR7" ,"ERR8" ,"SH1" ,
"SH2" ,"SH3" ,"SH4" ,"SH5" ,
"SH6" ,"SH7" ,"SH8" ,"SH9" ,
"SH10" ,"SH11" ,"NORMAL1" ,"NORMAL2" ,
"NORMAL3" ,"NORMAL4" ,"NORMAL5" ,"NORMAL6" ,
"NORMAL7" ,"NORMAL8A" ,"NORMAL8B" ,"NORMAL9" ,
"NORMAL10" ,"NORMAL11" ,"NORMAL12" ,"NORMAL13" ,
"NORMAL14" ,"NORMAL15" ,"NORMAL16" ,"NORMAL17" ,
"NORMAL18" ,"NORMAL19" ,"NORMAL20" ,"BUSY1" ,
"BUSY2" ,"BUSY3" ,"BUSY4" ,"BUSY5" ,
"BUSY6" ,"BUSY7" ,"BUSY8" ,"BUSY9" ,
"BUSY10" ,"BUSY11" ,"BUSY12" ,"BUSY13" ,
"BUSY14" ,"BUSY15" ,"BUSY16" ,"BUSY17" ,
"BUSY18" ,"BUSY19" ,"BUSY20" ,"BUSY21" ,
"BUSY22" ,"BUSY23" ,"BUSY24" ,"BUSY25" ,
"BUSY26" ,"REJECT1" ,"REJECT2" ,"REJECT3" ,
"REJECT4" ,"REJECT5" ,"REJECT6" ,"REJECT7" ,
"REJECT8" ,"REJECT9" ,"REJECT10" ,"REJECT11" ,
"REJECT12" ,"REJECT13" ,"REJECT14" ,"REJECT15" ,
"REJECT16" ,"REJECT17" ,"REJECT18" ,"REJECT19" ,
"REJECT20" ,"AWAIT1" ,"AWAIT2" ,"AWAIT3" ,
"AWAIT4" ,"AWAIT5" ,"AWAIT6" ,"AWAIT7" ,
"AWAIT8" ,"AWAIT9" ,"AWAIT10" ,"AWAIT11" ,
"AWAIT12" ,"AWAIT13" ,"AWAIT14" ,"AWAIT_BUSY1" ,
"AWAIT_BUSY2" ,"AWAIT_BUSY3" ,"AWAIT_BUSY4" ,"AWAIT_BUSY5" ,
"AWAIT_BUSY6" ,"AWAIT_BUSY7" ,"AWAIT_BUSY8" ,"AWAIT_BUSY9" ,
"AWAIT_BUSY10" ,"AWAIT_BUSY11" ,"AWAIT_BUSY12" ,"AWAIT_BUSY13" ,
"AWAIT_BUSY14" ,"AWAIT_BUSY15" ,"AWAIT_BUSY16" ,"AWAIT_REJECT1" ,
"AWAIT_REJECT2" ,"AWAIT_REJECT3" ,"AWAIT_REJECT4" ,"AWAIT_REJECT5" ,
"AWAIT_REJECT6" ,"AWAIT_REJECT7" ,"AWAIT_REJECT8" ,"AWAIT_REJECT9" ,
"AWAIT_REJECT10" ,"AWAIT_REJECT11" ,"AWAIT_REJECT12" ,"AWAIT_REJECT13" ,
0
};
/* this file generated on Thu Oct 24 11:42:35 GMT 1996 */
static char pseudo_code [ ] = {
0, 37, 57, 42, 59, 39, 0, 65, 38,
63, 61, 59, 56, 58, 2, 0, 12, 0,
12, 0, 0, 0, 12, 0, 65, 0, 5,
0, 0, 0, 37, 57, 42, 59, 0, 38,
63, 61, 59, 56, 58, 7, 0, 11, 57,
42, 59, 0, 12, 0, 5, 0, 40, 65,
0, 12, 5, 0, 0, 0, 38, 63, 61,
59, 56, 58, 0, 12, 0, 5, 0, 65,
0, 12, 5, 0, 0, 0, 38, 63, 61,
59, 40, 0, 45, 63, 61, 59, 51, 3,
58, 0, 56, 3, 58, 0, 12, 5, 45,
0, 5, 45, 0, 0, 0, 37, 57, 42,
60, 0, 5, 0, 38, 63, 61, 59, 40,
0, 45, 63, 61, 59, 51, 7, 58, 0,
56, 7, 58, 0, 12, 5, 45, 0, 5,
45, 0, 0, 0, 37, 57, 42, 60, 0,
5, 0, 12, 45, 0, 45, 0, 38, 0,
45, 0, 0, 0, 11, 57, 42, 60, 0,
0, 0, 71, 45, 65, 0, 38, 5, 45,
0, 5, 45, 0, 70, 45, 66, 39, 0,
15, 42, 0, 0, 0, 14, 42, 60, 0,
39, 70, 0, 11, 57, 42, 49, 59, 0,
37, 57, 42, 49, 59, 39, 0, 71, 65,
48, 0, 38, 5, 48, 0, 48, 70, 66,
39, 0, 5, 48, 0, 13, 67, 42, 49,
59, 0, 0, 67, 42, 49, 59, 0, 0,
67, 42, 49, 59, 0, 13, 67, 42, 49,
59, 0, 48, 70, 39, 0, 16, 41, 44,
0, 19, 44, 0, 26, 41, 53, 0, 28,
53, 0, 25, 50, 51, 43, 9, 0, 25,
50, 43, 0, 24, 50, 43, 0, 62, 32,
41, 50, 9, 4, 0, 62, 51, 36, 50,
9, 4, 0, 62, 36, 50, 4, 0, 62,
34, 50, 4, 0, 51, 50, 1, 0, 34,
50, 1, 0, 51, 50, 29, 0, 33, 50,
29, 0, 64, 50, 51, 20, 1, 0, 64,
50, 20, 1, 0, 64, 50, 22, 1, 0,
31, 41, 0, 56, 0, 31, 41, 60, 0,
16, 41, 44, 0, 19, 44, 0, 23, 43,
41, 0, 25, 43, 0, 31, 41, 35, 0,
35, 0, 31, 41, 35, 0, 35, 0, 30,
51, 50, 55, 9, 0, 30, 50, 55, 0,
27, 50, 55, 0, 27, 50, 10, 54, 0,
30, 51, 50, 10, 54, 9, 0, 30, 50,
10, 54, 0, 51, 50, 1, 0, 27, 50,
1, 0, 51, 50, 29, 0, 27, 50, 29,
0, 64, 50, 51, 20, 1, 0, 64, 50,
20, 1, 0, 64, 50, 27, 20, 1, 0,
26, 41, 0, 56, 0, 26, 41, 60, 0,
54, 0, 54, 0, 16, 41, 44, 0, 19,
44, 0, 26, 41, 52, 0, 28, 52, 0,
50, 51, 9, 0, 33, 50, 0, 62, 32,
41, 50, 9, 47, 4, 0, 62, 36, 50,
47, 4, 0, 62, 34, 50, 47, 4, 0,
51, 50, 1, 0, 34, 50, 1, 0, 51,
50, 29, 0, 33, 50, 29, 0, 64, 50,
51, 20, 1, 0, 64, 50, 20, 1, 0,
64, 50, 22, 1, 0, 31, 41, 0, 23,
41, 43, 60, 0, 56, 0, 31, 41, 43,
60, 0, 28, 53, 0, 25, 50, 64, 46,
20, 43, 1, 0, 25, 50, 43, 0, 24,
50, 43, 0, 62, 50, 64, 18, 41, 1,
4, 0, 62, 35, 50, 4, 0, 62, 33,
50, 4, 0, 50, 64, 46, 20, 1, 0,
50, 1, 0, 33, 50, 1, 0, 50, 64,
46, 29, 0, 50, 29, 0, 33, 50, 29,
0, 31, 41, 60, 0, 25, 43, 0, 35,
0, 35, 0, 30, 50, 64, 46, 54, 1,
20, 0, 30, 50, 54, 0, 27, 50, 54,
0, 30, 50, 64, 54, 46, 1, 20, 0,
30, 50, 54, 0, 27, 50, 54, 0, 50,
64, 46, 20, 1, 0, 50, 1, 0, 27,
50, 1, 0, 50, 64, 46, 29, 0, 50,
29, 0, 27, 50, 29, 0, 26, 41, 60,
0, 28, 52, 0, 50, 0, 33, 50, 0,
62, 50, 64, 18, 41, 47, 1, 4, 0,
62, 35, 47, 50, 4, 0, 62, 33, 47,
50, 4, 0, 50, 64, 46, 20, 1, 0,
50, 1, 0, 33, 50, 1, 0, 50, 64,
46, 29, 0, 50, 29, 0, 33, 50, 29,
0, 23, 41, 60, 0
};
static short int pseudo_code_idx [ ] ={
0, 1, 7, 16, 18, 20, 22, 24, 26,
28, 30, 35, 43, 48, 50, 52, 55, 58,
60, 67, 69, 71, 73, 76, 78, 84, 92,
96, 100, 103, 105, 110, 112, 118, 126, 130,
134, 137, 139, 144, 146, 149, 151, 153, 155,
157, 162, 164, 168, 172, 175, 180, 183, 185,
189, 192, 198, 205, 209, 213, 218, 221, 227,
233, 239, 245, 249, 253, 256, 260, 263, 269,
273, 277, 284, 291, 296, 301, 305, 309, 313,
317, 323, 328, 333, 336, 338, 342, 346, 349,
353, 356, 360, 362, 366, 368, 374, 378, 382,
387, 394, 399, 403, 407, 411, 415, 421, 426,
432, 435, 437, 441, 443, 445, 449, 452, 456,
459, 463, 466, 474, 480, 486, 490, 494, 498,
502, 508, 513, 518, 521, 526, 528, 533, 536,
544, 548, 552, 560, 565, 570, 576, 579, 583,
588, 591, 595, 599, 602, 604, 606, 614, 618,
622, 630, 634, 638, 644, 647, 651, 656, 659,
663, 667, 670, 672, 675, 684, 690, 696, 702,
705, 709, 714, 717, 721, 0
};
#define NOP 0
#define ADM1 1
#define ADM2 2
#define ADM3 3
#define ADM4 4
#define ADM5 5
#define CONN2 6
#define CONN3 7
#define CONN4 8
#define CONN5 9
#define RESWAIT1 10
#define RESWAIT2 11
#define RESWAIT3 12
#define RESWAIT4 13
#define RESWAIT5 14
#define RESWAIT6 15
#define RESWAIT7 16
#define RESWAIT8 17
#define RESCHK1 18
#define RESCHK2 19
#define RESCHK3 20
#define RESCHK4 21
#define RESCHK5 22
#define RESCHK6 23
#define SETUP1 24
#define SETUP2 25
#define SETUP3 26
#define SETUP4 27
#define SETUP5 28
#define SETUP6 29
#define SETUP7 30
#define SETUP8 31
#define RESET1 32
#define RESET2 33
#define RESET3 34
#define RESET4 35
#define RESET5 36
#define RESET6 37
#define RESET7 38
#define RESET8 39
#define D_CONN1 40
#define D_CONN2 41
#define D_CONN3 42
#define D_CONN4 43
#define D_CONN5 44
#define D_CONN6 45
#define D_CONN7 46
#define ERR1 47
#define ERR2 48
#define ERR3 49
#define ERR4 50
#define ERR5 51
#define ERR6 52
#define ERR7 53
#define ERR8 54
#define SH1 55
#define SH2 56
#define SH3 57
#define SH4 58
#define SH5 59
#define SH6 60
#define SH7 61
#define SH8 62
#define SH9 63
#define SH10 64
#define SH11 65
#define NORMAL1 66
#define NORMAL2 67
#define NORMAL3 68
#define NORMAL4 69
#define NORMAL5 70
#define NORMAL6 71
#define NORMAL7 72
#define NORMAL8A 73
#define NORMAL8B 74
#define NORMAL9 75
#define NORMAL10 76
#define NORMAL11 77
#define NORMAL12 78
#define NORMAL13 79
#define NORMAL14 80
#define NORMAL15 81
#define NORMAL16 82
#define NORMAL17 83
#define NORMAL18 84
#define NORMAL19 85
#define NORMAL20 86
#define BUSY1 87
#define BUSY2 88
#define BUSY3 89
#define BUSY4 90
#define BUSY5 91
#define BUSY6 92
#define BUSY7 93
#define BUSY8 94
#define BUSY9 95
#define BUSY10 96
#define BUSY11 97
#define BUSY12 98
#define BUSY13 99
#define BUSY14 100
#define BUSY15 101
#define BUSY16 102
#define BUSY17 103
#define BUSY18 104
#define BUSY19 105
#define BUSY20 106
#define BUSY21 107
#define BUSY22 108
#define BUSY23 109
#define BUSY24 110
#define BUSY25 111
#define BUSY26 112
#define REJECT1 113
#define REJECT2 114
#define REJECT3 115
#define REJECT4 116
#define REJECT5 117
#define REJECT6 118
#define REJECT7 119
#define REJECT8 120
#define REJECT9 121
#define REJECT10 122
#define REJECT11 123
#define REJECT12 124
#define REJECT13 125
#define REJECT14 126
#define REJECT15 127
#define REJECT16 128
#define REJECT17 129
#define REJECT18 130
#define REJECT19 131
#define REJECT20 132
#define AWAIT1 133
#define AWAIT2 134
#define AWAIT3 135
#define AWAIT4 136
#define AWAIT5 137
#define AWAIT6 138
#define AWAIT7 139
#define AWAIT8 140
#define AWAIT9 141
#define AWAIT10 142
#define AWAIT11 143
#define AWAIT12 144
#define AWAIT13 145
#define AWAIT14 146
#define AWAIT_BUSY1 147
#define AWAIT_BUSY2 148
#define AWAIT_BUSY3 149
#define AWAIT_BUSY4 150
#define AWAIT_BUSY5 151
#define AWAIT_BUSY6 152
#define AWAIT_BUSY7 153
#define AWAIT_BUSY8 154
#define AWAIT_BUSY9 155
#define AWAIT_BUSY10 156
#define AWAIT_BUSY11 157
#define AWAIT_BUSY12 158
#define AWAIT_BUSY13 159
#define AWAIT_BUSY14 160
#define AWAIT_BUSY15 161
#define AWAIT_BUSY16 162
#define AWAIT_REJECT1 163
#define AWAIT_REJECT2 164
#define AWAIT_REJECT3 165
#define AWAIT_REJECT4 166
#define AWAIT_REJECT5 167
#define AWAIT_REJECT6 168
#define AWAIT_REJECT7 169
#define AWAIT_REJECT8 170
#define AWAIT_REJECT9 171
#define AWAIT_REJECT10 172
#define AWAIT_REJECT11 173
#define AWAIT_REJECT12 174
#define AWAIT_REJECT13 175
include $(TOPDIR)/Rules.make
all: pdutr.h timertr.h
pdutr.h: pdutr.pre compile.awk
awk -f ./compile.awk pdutr.pre > pdutr.h
timertr.h: timertr.pre compile.awk
awk -f ./compile.awk timertr.pre > timertr.h
clean:
touch pdutr.h timertr.h
rm pdutr.h timertr.h
/* this file was generated on Thu Jan 8 00:21:19 GMT 1998 */
/* index name #defines: */
#define ADM 0
#define CONN 1
#define RESET_WAIT 2
#define RESET_CHECK 3
#define SETUP 4
#define RESET 5
#define D_CONN 6
#define ERROR 7
#define NORMAL 8
#define BUSY 9
#define REJECT 10
#define AWAIT 11
#define AWAIT_BUSY 12
#define AWAIT_REJECT 13
/* size of transition table is 1684 bytes */
static short int pdutr_offset [ ] ={
0, 54, 82, 110, 138, 192, 246, 300, 328, 554,
780, 1006, 1232, 1458 };
static char pdutr_entry [ ] = {
ADM5 , ADM , ADM4 , ADM , ADM5 , ADM ,
ADM4 , ADM , ADM5 , ADM , ADM4 , ADM ,
ADM5 , ADM , ADM4 , ADM , ADM3 , ADM ,
ADM3 , ADM , ADM2 , CONN , ADM2 , CONN ,
ADM5 , ADM , ADM5 , ADM , ADM5 , ADM ,
ADM5 , ADM , ADM5 , ADM , ADM5 , ADM ,
ADM5 , ADM , ADM5 , ADM , ADM5 , ADM ,
ADM5 , ADM , ADM5 , ADM , ADM5 , ADM ,
ADM5 , ADM , ADM5 , ADM , ADM5 , ADM ,
CONN5 , CONN , CONN5 , CONN , CONN5 , CONN ,
CONN5 , CONN , CONN5 , CONN , CONN3 , CONN ,
CONN5 , CONN , CONN5 , CONN , CONN5 , CONN ,
CONN5 , CONN , CONN5 , CONN , CONN4 , ADM ,
CONN5 , CONN , CONN5 , CONN , RESWAIT8 , RESET_WAIT ,
RESWAIT8 , RESET_WAIT , RESWAIT8 , RESET_WAIT , RESWAIT8 , RESET_WAIT ,
RESWAIT7 , RESET_WAIT , RESWAIT6 , RESET_WAIT , RESWAIT8 , RESET_WAIT ,
RESWAIT8 , RESET_WAIT , RESWAIT8 , RESET_WAIT , RESWAIT8 , RESET_WAIT ,
RESWAIT8 , RESET_WAIT , RESWAIT5 , ADM , RESWAIT8 , RESET_WAIT ,
RESWAIT8 , RESET_WAIT , RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK ,
RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK , RESCHK5 , ADM ,
RESCHK4 , RESET_CHECK , RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK ,
RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK ,
RESCHK3 , ADM , RESCHK6 , RESET_CHECK , RESCHK6 , RESET_CHECK ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP4 , ADM ,
SETUP4 , ADM , SETUP1 , SETUP , SETUP1 , SETUP ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
SETUP2 , NORMAL , SETUP5 , ADM , SETUP5 , ADM ,
SETUP6 , SETUP , SETUP6 , SETUP , SETUP6 , SETUP ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
RESET6 , RESET , RESET6 , RESET , RESET4 , ADM ,
RESET4 , ADM , RESET1 , RESET , RESET1 , RESET ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
RESET2 , NORMAL , RESET5 , ADM , RESET5 , ADM ,
RESET6 , RESET , RESET6 , RESET , RESET6 , RESET ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN3 , D_CONN ,
D_CONN3 , D_CONN , D_CONN1 , ADM , D_CONN1 , ADM ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
D_CONN4 , ADM , D_CONN4 , ADM , D_CONN5 , ADM ,
D_CONN5 , D_CONN , D_CONN5 , D_CONN , D_CONN5 , D_CONN ,
ERR5 , ERROR , ERR5 , ERROR , ERR5 , ERROR ,
ERR5 , ERROR , ERR2 , ADM , ERR1 , RESET_CHECK ,
ERR6 , ERROR , ERR6 , ERROR , ERR6 , ERROR ,
ERR6 , ERROR , ERR6 , ERROR , ERR3 , ADM ,
ERR4 , RESET_WAIT , ERR4 , RESET_WAIT , NORMAL8B , NORMAL ,
NORMAL9 , NORMAL , NORMAL10 , NORMAL , NORMAL10 , NORMAL ,
NORMAL5 , REJECT , NORMAL6 , REJECT , NORMAL7 , REJECT ,
NORMAL7 , REJECT , NORMAL11 , NORMAL , NORMAL11 , NORMAL ,
NORMAL12 , NORMAL , NORMAL12 , NORMAL , NORMAL11 , NORMAL ,
NORMAL11 , NORMAL , NORMAL12 , NORMAL , NORMAL12 , NORMAL ,
NORMAL13 , NORMAL , NORMAL13 , NORMAL , NORMAL14 , NORMAL ,
NORMAL14 , NORMAL , NORMAL13 , NORMAL , NORMAL13 , NORMAL ,
NORMAL14 , NORMAL , NORMAL14 , NORMAL , NORMAL15 , NORMAL ,
NORMAL16 , NORMAL , NORMAL17 , NORMAL , NORMAL17 , NORMAL ,
NORMAL15 , NORMAL , NORMAL16 , NORMAL , NORMAL17 , NORMAL ,
NORMAL17 , NORMAL , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , NORMAL8B , NORMAL ,
NORMAL9 , NORMAL , SH10 , ERROR , NORMAL8A , NORMAL ,
NORMAL5 , REJECT , NORMAL6 , REJECT , SH10 , ERROR ,
NORMAL5 , REJECT , NORMAL11 , NORMAL , NORMAL11 , NORMAL ,
SH10 , ERROR , NORMAL11 , NORMAL , NORMAL11 , NORMAL ,
NORMAL11 , NORMAL , SH10 , ERROR , NORMAL11 , NORMAL ,
NORMAL13 , NORMAL , NORMAL13 , NORMAL , SH10 , ERROR ,
NORMAL13 , NORMAL , NORMAL13 , NORMAL , NORMAL13 , NORMAL ,
SH10 , ERROR , NORMAL13 , NORMAL , NORMAL15 , NORMAL ,
NORMAL16 , NORMAL , SH10 , ERROR , NORMAL15 , NORMAL ,
NORMAL15 , NORMAL , NORMAL16 , NORMAL , SH10 , ERROR ,
NORMAL15 , NORMAL , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , BUSY13 , BUSY , BUSY14 , BUSY ,
BUSY12 , BUSY , BUSY12 , BUSY , BUSY9 , BUSY ,
BUSY10 , BUSY , BUSY11 , BUSY , BUSY11 , BUSY ,
BUSY15 , BUSY , BUSY15 , BUSY , BUSY16 , BUSY ,
BUSY16 , BUSY , BUSY15 , BUSY , BUSY15 , BUSY ,
BUSY16 , BUSY , BUSY16 , BUSY , BUSY17 , BUSY ,
BUSY17 , BUSY , BUSY18 , BUSY , BUSY18 , BUSY ,
BUSY17 , BUSY , BUSY17 , BUSY , BUSY18 , BUSY ,
BUSY18 , BUSY , BUSY19 , BUSY , BUSY20 , BUSY ,
BUSY21 , BUSY , BUSY21 , BUSY , BUSY19 , BUSY ,
BUSY20 , BUSY , BUSY21 , BUSY , BUSY21 , BUSY ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , BUSY13 , BUSY , BUSY14 , BUSY ,
SH10 , ERROR , BUSY13 , BUSY , BUSY9 , BUSY ,
BUSY10 , BUSY , SH10 , ERROR , BUSY9 , BUSY ,
BUSY15 , BUSY , BUSY15 , BUSY , SH10 , ERROR ,
BUSY15 , BUSY , BUSY15 , BUSY , BUSY15 , BUSY ,
SH10 , ERROR , BUSY15 , BUSY , BUSY17 , BUSY ,
BUSY17 , BUSY , SH10 , ERROR , BUSY17 , BUSY ,
BUSY17 , BUSY , BUSY17 , BUSY , SH10 , ERROR ,
BUSY17 , BUSY , BUSY19 , BUSY , BUSY20 , BUSY ,
SH10 , ERROR , BUSY19 , BUSY , BUSY19 , BUSY ,
BUSY20 , BUSY , SH10 , ERROR , BUSY19 , BUSY ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
REJECT7 , REJECT , REJECT8 , REJECT , REJECT9 , REJECT ,
REJECT9 , REJECT , REJECT5 , REJECT , REJECT5 , REJECT ,
REJECT6 , REJECT , REJECT6 , REJECT , REJECT10 , REJECT ,
REJECT10 , REJECT , REJECT11 , REJECT , REJECT11 , REJECT ,
REJECT10 , REJECT , REJECT10 , REJECT , REJECT11 , REJECT ,
REJECT11 , REJECT , REJECT12 , REJECT , REJECT12 , REJECT ,
REJECT13 , REJECT , REJECT13 , REJECT , REJECT12 , REJECT ,
REJECT12 , REJECT , REJECT13 , REJECT , REJECT13 , REJECT ,
REJECT14 , REJECT , REJECT15 , REJECT , REJECT16 , REJECT ,
REJECT16 , REJECT , REJECT14 , REJECT , REJECT15 , REJECT ,
REJECT16 , REJECT , REJECT16 , REJECT , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
REJECT7 , REJECT , REJECT8 , REJECT , SH10 , ERROR ,
REJECT7 , REJECT , REJECT5 , REJECT , REJECT5 , REJECT ,
SH10 , ERROR , REJECT5 , REJECT , REJECT10 , REJECT ,
REJECT10 , REJECT , SH10 , ERROR , REJECT10 , REJECT ,
REJECT10 , REJECT , REJECT10 , REJECT , SH10 , ERROR ,
REJECT10 , REJECT , REJECT12 , REJECT , REJECT12 , REJECT ,
SH10 , ERROR , REJECT12 , REJECT , REJECT12 , REJECT ,
REJECT12 , REJECT , SH10 , ERROR , REJECT12 , REJECT ,
REJECT14 , REJECT , REJECT15 , REJECT , SH10 , ERROR ,
REJECT14 , REJECT , REJECT14 , REJECT , REJECT15 , REJECT ,
SH10 , ERROR , REJECT14 , REJECT , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , AWAIT6 , AWAIT ,
AWAIT6 , AWAIT , AWAIT7 , AWAIT , AWAIT7 , AWAIT ,
AWAIT3 , AWAIT_REJECT , AWAIT3 , AWAIT_REJECT , AWAIT4 , AWAIT_REJECT ,
AWAIT4 , AWAIT_REJECT , AWAIT9 , AWAIT , AWAIT9 , AWAIT ,
AWAIT10 , AWAIT , AWAIT10 , AWAIT , AWAIT9 , AWAIT ,
AWAIT9 , AWAIT , AWAIT10 , AWAIT , AWAIT10 , AWAIT ,
AWAIT12 , AWAIT , AWAIT12 , AWAIT , AWAIT13 , AWAIT ,
AWAIT13 , AWAIT , AWAIT12 , AWAIT , AWAIT12 , AWAIT ,
AWAIT13 , AWAIT , AWAIT13 , AWAIT , AWAIT9 , AWAIT ,
AWAIT9 , AWAIT , AWAIT10 , AWAIT , AWAIT10 , AWAIT ,
AWAIT9 , AWAIT , AWAIT9 , AWAIT , AWAIT10 , AWAIT ,
AWAIT10 , AWAIT , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , AWAIT6 , AWAIT ,
AWAIT6 , AWAIT , SH10 , ERROR , AWAIT5 , NORMAL ,
AWAIT3 , AWAIT_REJECT , AWAIT3 , AWAIT_REJECT , SH10 , ERROR ,
AWAIT2 , REJECT , AWAIT9 , AWAIT , AWAIT9 , AWAIT ,
SH10 , ERROR , AWAIT8 , AWAIT , AWAIT9 , AWAIT ,
AWAIT9 , AWAIT , SH10 , ERROR , AWAIT8 , AWAIT ,
AWAIT12 , AWAIT , AWAIT12 , AWAIT , SH10 , ERROR ,
AWAIT11 , AWAIT , AWAIT12 , AWAIT , AWAIT12 , AWAIT ,
SH10 , ERROR , AWAIT11 , AWAIT , AWAIT9 , AWAIT ,
AWAIT9 , AWAIT , SH10 , ERROR , AWAIT8 , AWAIT ,
AWAIT9 , AWAIT , AWAIT9 , AWAIT , SH10 , ERROR ,
AWAIT8 , AWAIT , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , AWAIT_BUSY8 , AWAIT_BUSY , AWAIT_BUSY8 , AWAIT_BUSY ,
AWAIT_BUSY9 , AWAIT_BUSY , AWAIT_BUSY9 , AWAIT_BUSY , AWAIT_BUSY5 , AWAIT_BUSY ,
AWAIT_BUSY5 , AWAIT_BUSY , AWAIT_BUSY6 , AWAIT_BUSY , AWAIT_BUSY6 , AWAIT_BUSY ,
AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY12 , AWAIT_BUSY ,
AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY14 , AWAIT_BUSY ,
AWAIT_BUSY14 , AWAIT_BUSY , AWAIT_BUSY15 , AWAIT_BUSY , AWAIT_BUSY15 , AWAIT_BUSY ,
AWAIT_BUSY14 , AWAIT_BUSY , AWAIT_BUSY14 , AWAIT_BUSY , AWAIT_BUSY15 , AWAIT_BUSY ,
AWAIT_BUSY15 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY12 , AWAIT_BUSY , AWAIT_BUSY12 , AWAIT_BUSY ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , AWAIT_BUSY8 , AWAIT_BUSY , AWAIT_BUSY8 , AWAIT_BUSY ,
SH10 , ERROR , AWAIT_BUSY7 , BUSY , AWAIT_BUSY5 , AWAIT_BUSY ,
AWAIT_BUSY5 , AWAIT_BUSY , SH10 , ERROR , AWAIT_BUSY4 , BUSY ,
AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY , SH10 , ERROR ,
AWAIT_BUSY10 , BUSY , AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
SH10 , ERROR , AWAIT_BUSY10 , BUSY , AWAIT_BUSY14 , AWAIT_BUSY ,
AWAIT_BUSY14 , AWAIT_BUSY , SH10 , ERROR , AWAIT_BUSY13 , BUSY ,
AWAIT_BUSY14 , AWAIT_BUSY , AWAIT_BUSY14 , AWAIT_BUSY , SH10 , ERROR ,
AWAIT_BUSY13 , BUSY , AWAIT_BUSY11 , AWAIT_BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
SH10 , ERROR , AWAIT_BUSY10 , BUSY , AWAIT_BUSY11 , AWAIT_BUSY ,
AWAIT_BUSY11 , AWAIT_BUSY , SH10 , ERROR , AWAIT_BUSY10 , BUSY ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
AWAIT_REJECT5 , AWAIT , AWAIT_REJECT5 , AWAIT , AWAIT_REJECT6 , AWAIT ,
AWAIT_REJECT6 , AWAIT , AWAIT_REJECT2 , AWAIT_REJECT , AWAIT_REJECT2 , AWAIT_REJECT ,
AWAIT_REJECT3 , AWAIT_REJECT , AWAIT_REJECT3 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT9 , AWAIT_REJECT , AWAIT_REJECT9 , AWAIT_REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT9 , AWAIT_REJECT ,
AWAIT_REJECT9 , AWAIT_REJECT , AWAIT_REJECT11, AWAIT_REJECT , AWAIT_REJECT11, AWAIT_REJECT ,
AWAIT_REJECT12, AWAIT_REJECT , AWAIT_REJECT12, AWAIT_REJECT , AWAIT_REJECT11, AWAIT_REJECT ,
AWAIT_REJECT11, AWAIT_REJECT , AWAIT_REJECT12, AWAIT_REJECT , AWAIT_REJECT12, AWAIT_REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT9 , AWAIT_REJECT ,
AWAIT_REJECT9 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT ,
AWAIT_REJECT9 , AWAIT_REJECT , AWAIT_REJECT9 , AWAIT_REJECT , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH4 , ADM , SH4 , ADM ,
SH4 , ADM , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
SH3 , RESET_CHECK , SH3 , RESET_CHECK , SH3 , RESET_CHECK ,
AWAIT_REJECT5 , AWAIT , AWAIT_REJECT5 , AWAIT , SH10 , ERROR ,
AWAIT_REJECT4 , NORMAL , AWAIT_REJECT2 , AWAIT_REJECT , AWAIT_REJECT2 , AWAIT_REJECT ,
SH10 , ERROR , AWAIT_REJECT4 , NORMAL , AWAIT_REJECT8 , AWAIT_REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , SH10 , ERROR , AWAIT_REJECT7 , REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT , SH10 , ERROR ,
AWAIT_REJECT7 , REJECT , AWAIT_REJECT11, AWAIT_REJECT , AWAIT_REJECT11, AWAIT_REJECT ,
SH10 , ERROR , AWAIT_REJECT10, REJECT , AWAIT_REJECT11, AWAIT_REJECT ,
AWAIT_REJECT11, AWAIT_REJECT , SH10 , ERROR , AWAIT_REJECT10, REJECT ,
AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT , SH10 , ERROR ,
AWAIT_REJECT7 , REJECT , AWAIT_REJECT8 , AWAIT_REJECT , AWAIT_REJECT8 , AWAIT_REJECT ,
SH10 , ERROR , AWAIT_REJECT7 , REJECT , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH9 , ERROR , SH9 , ERROR ,
SH9 , ERROR , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH6 , ADM , SH6 , ADM , SH6 , ADM ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH5 , RESET_WAIT ,
SH5 , RESET_WAIT , SH5 , RESET_WAIT , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR , SH7 , ERROR ,
SH7 , ERROR , SH7 , ERROR };
/* this file was generated on Thu Jan 8 00:21:21 GMT 1998 */
/* size of transition table is 898 bytes */
static char timertr_entry [ ] = {
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , ADM ,
NOP , ADM , NOP , ADM , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , CONN , NOP , CONN ,
NOP , CONN , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_WAIT , NOP , RESET_WAIT , NOP , RESET_WAIT ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , NOP , RESET_CHECK ,
NOP , RESET_CHECK , NOP , RESET_CHECK , SETUP7 , SETUP ,
SETUP7 , SETUP , SETUP3 , NORMAL , SETUP3 , NORMAL ,
SETUP8 , ADM , SETUP8 , ADM , SETUP3 , NORMAL ,
SETUP3 , NORMAL , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , NOP , SETUP , NOP , SETUP ,
NOP , SETUP , RESET7 , RESET , RESET7 , RESET ,
RESET3 , NORMAL , RESET3 , NORMAL , RESET8 , ADM ,
RESET8 , ADM , RESET3 , NORMAL , RESET3 , NORMAL ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
NOP , RESET , NOP , RESET , NOP , RESET ,
D_CONN6 , D_CONN , D_CONN6 , D_CONN , D_CONN6 , D_CONN ,
D_CONN6 , D_CONN , D_CONN7 , ADM , D_CONN7 , ADM ,
D_CONN7 , ADM , D_CONN7 , ADM , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , NOP , D_CONN ,
NOP , D_CONN , NOP , D_CONN , ERR7 , ERROR ,
ERR7 , ERROR , ERR7 , ERROR , ERR7 , ERROR ,
ERR8 , RESET_WAIT , ERR8 , RESET_WAIT , ERR8 , RESET_WAIT ,
ERR8 , RESET_WAIT , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NOP , ERROR , NOP , ERROR ,
NOP , ERROR , NORMAL20 , AWAIT , NOP , NORMAL ,
NORMAL20 , AWAIT , NOP , NORMAL , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NORMAL19 , NORMAL , NORMAL19 , NORMAL , NORMAL19 , NORMAL ,
NORMAL19 , NORMAL , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , NORMAL ,
NOP , NORMAL , NOP , NORMAL , NOP , NORMAL ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NORMAL20 , AWAIT , NOP , NORMAL ,
NORMAL20 , AWAIT , NOP , NORMAL , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
BUSY24 , AWAIT_BUSY , NOP , BUSY , BUSY24 , AWAIT_BUSY ,
NOP , BUSY , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , BUSY23 , BUSY ,
BUSY23 , BUSY , BUSY23 , BUSY , BUSY23 , BUSY ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , BUSY25 , BUSY , BUSY26 , BUSY ,
BUSY25 , BUSY , BUSY26 , BUSY , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , BUSY , NOP , BUSY , NOP , BUSY ,
NOP , BUSY , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , REJECT ,
NOP , REJECT , NOP , REJECT , NOP , REJECT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NOP , REJECT , NOP , REJECT ,
NOP , REJECT , NOP , REJECT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , REJECT , NOP , REJECT , NOP , REJECT ,
NOP , REJECT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , REJECT ,
NOP , REJECT , NOP , REJECT , NOP , REJECT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NOP , AWAIT , NOP , AWAIT ,
NOP , AWAIT , NOP , AWAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , AWAIT , NOP , AWAIT , NOP , AWAIT ,
NOP , AWAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , AWAIT ,
NOP , AWAIT , NOP , AWAIT , NOP , AWAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NOP , AWAIT , NOP , AWAIT ,
NOP , AWAIT , NOP , AWAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , AWAIT_BUSY , NOP , AWAIT_BUSY , NOP , AWAIT_BUSY ,
NOP , AWAIT_BUSY , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , AWAIT_BUSY ,
NOP , AWAIT_BUSY , NOP , AWAIT_BUSY , NOP , AWAIT_BUSY ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NOP , AWAIT_BUSY , NOP , AWAIT_BUSY ,
NOP , AWAIT_BUSY , NOP , AWAIT_BUSY , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , AWAIT_BUSY , NOP , AWAIT_BUSY , NOP , AWAIT_BUSY ,
NOP , AWAIT_BUSY , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , AWAIT_REJECT ,
NOP , AWAIT_REJECT , NOP , AWAIT_REJECT , NOP , AWAIT_REJECT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , NOP , AWAIT_REJECT , NOP , AWAIT_REJECT ,
NOP , AWAIT_REJECT , NOP , AWAIT_REJECT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
NOP , AWAIT_REJECT , NOP , AWAIT_REJECT , NOP , AWAIT_REJECT ,
NOP , AWAIT_REJECT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , NOP , AWAIT_REJECT ,
NOP , AWAIT_REJECT , NOP , AWAIT_REJECT , NOP , AWAIT_REJECT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT , SH11 , RESET_WAIT ,
SH11 , RESET_WAIT , SH11 , RESET_WAIT };
...@@ -14,16 +14,8 @@ obj-y := socket.o core/ ...@@ -14,16 +14,8 @@ obj-y := socket.o core/
obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/ obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/
obj-$(CONFIG_INET) += ipv4/ obj-$(CONFIG_INET) += ipv4/
obj-$(CONFIG_NETFILTER) += ipv4/netfilter/
obj-$(CONFIG_UNIX) += unix/ obj-$(CONFIG_UNIX) += unix/
obj-$(CONFIG_IPV6) += ipv6/ obj-$(CONFIG_IPV6) += ipv6/
ifneq ($(CONFIG_IPV6),n)
ifneq ($(CONFIG_IPV6),)
obj-$(CONFIG_NETFILTER) += ipv6/netfilter/
endif
endif
obj-$(CONFIG_KHTTPD) += khttpd/ obj-$(CONFIG_KHTTPD) += khttpd/
obj-$(CONFIG_PACKET) += packet/ obj-$(CONFIG_PACKET) += packet/
obj-$(CONFIG_NET_SCHED) += sched/ obj-$(CONFIG_NET_SCHED) += sched/
......
...@@ -2427,7 +2427,7 @@ static int dev_boot_phase = 1; ...@@ -2427,7 +2427,7 @@ static int dev_boot_phase = 1;
* will not get the same name. * will not get the same name.
*/ */
int net_dev_init(void); static int net_dev_init(void);
int register_netdevice(struct net_device *dev) int register_netdevice(struct net_device *dev)
{ {
...@@ -2693,7 +2693,7 @@ extern void dv_init(void); ...@@ -2693,7 +2693,7 @@ extern void dv_init(void);
* Callers must hold the rtnl semaphore. See the comment at the * Callers must hold the rtnl semaphore. See the comment at the
* end of Space.c for details about the locking. * end of Space.c for details about the locking.
*/ */
int __init net_dev_init(void) static int __init net_dev_init(void)
{ {
struct net_device *dev, **dp; struct net_device *dev, **dp;
int i; int i;
...@@ -2834,6 +2834,8 @@ int __init net_dev_init(void) ...@@ -2834,6 +2834,8 @@ int __init net_dev_init(void)
return 0; return 0;
} }
__initcall(net_dev_init);
#ifdef CONFIG_HOTPLUG #ifdef CONFIG_HOTPLUG
/* Notify userspace when a netdevice event occurs, /* Notify userspace when a netdevice event occurs,
......
...@@ -18,5 +18,6 @@ obj-$(CONFIG_NET_IPIP) += ipip.o ...@@ -18,5 +18,6 @@ obj-$(CONFIG_NET_IPIP) += ipip.o
obj-$(CONFIG_NET_IPGRE) += ip_gre.o obj-$(CONFIG_NET_IPGRE) += ip_gre.o
obj-$(CONFIG_SYN_COOKIES) += syncookies.o obj-$(CONFIG_SYN_COOKIES) += syncookies.o
obj-$(CONFIG_IP_PNP) += ipconfig.o obj-$(CONFIG_IP_PNP) += ipconfig.o
obj-$(CONFIG_NETFILTER) += netfilter/
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -13,5 +13,6 @@ ipv6-objs := af_inet6.o ip6_output.o ip6_input.o addrconf.o sit.o \ ...@@ -13,5 +13,6 @@ ipv6-objs := af_inet6.o ip6_output.o ip6_input.o addrconf.o sit.o \
ip6_flowlabel.o ipv6_syms.o ip6_flowlabel.o ipv6_syms.o
#obj-$(CONFIG_IPV6_FIREWALL) += ip6_fw.o #obj-$(CONFIG_IPV6_FIREWALL) += ip6_fw.o
obj-$(CONFIG_NETFILTER) += netfilter/
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -12,7 +12,11 @@ host-progs := make_times_h ...@@ -12,7 +12,11 @@ host-progs := make_times_h
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
rfc_time.o: times.h # Dependencies on generated files need to be listed explicitly
times.h: make_times_h $(obj)/rfc_time.o: $(obj)/times.h
./make_times_h
# Generated files
$(obj)/times.h: $(obj)/make_times_h
$< >$@
...@@ -64,59 +64,52 @@ static int WeekGetDay(int D,int M,int Y) ...@@ -64,59 +64,52 @@ static int WeekGetDay(int D,int M,int Y)
int main(void) int main(void)
{ {
int M,Y; int M,Y;
FILE *file;
file=fopen("times.h","w"); printf("static time_t TimeDays[10][13] = { \n");
if (file==NULL)
return 0;
fprintf(file,"static time_t TimeDays[10][13] = { \n");
Y=1997; Y=1997;
while (Y<2007) while (Y<2007)
{ {
M=0; M=0;
fprintf(file," { "); printf(" { ");
while (M<12) while (M<12)
{ {
fprintf(file,"%i",(int)GetDay(1,M,Y)); printf("%i",(int)GetDay(1,M,Y));
fprintf(file,",\t"); printf(",\t");
M++; M++;
} }
fprintf(file,"%i } ",(int)GetDay(1,0,Y+1)); printf("%i } ",(int)GetDay(1,0,Y+1));
if (Y!=2006) fprintf(file,","); if (Y!=2006) printf(",");
fprintf(file,"\n"); printf("\n");
Y++; Y++;
} }
fprintf(file,"};\n"); printf("};\n");
fprintf(file,"static int WeekDays[10][13] = { \n"); printf("static int WeekDays[10][13] = { \n");
Y=1997; Y=1997;
while (Y<2007) while (Y<2007)
{ {
M=0; M=0;
fprintf(file," { "); printf(" { ");
while (M<12) while (M<12)
{ {
fprintf(file,"%i",(int)WeekGetDay(1,M,Y)); printf("%i",(int)WeekGetDay(1,M,Y));
fprintf(file,",\t"); printf(",\t");
M++; M++;
} }
fprintf(file,"%i } ",(int)WeekGetDay(1,0,Y+1)); printf("%i } ",(int)WeekGetDay(1,0,Y+1));
if (Y!=2006) fprintf(file,","); if (Y!=2006) printf(",");
fprintf(file,"\n"); printf("\n");
Y++; Y++;
} }
fprintf(file,"};\n"); printf("};\n");
fprintf(file,"#define KHTTPD_YEAROFFSET 1997\n"); printf("#define KHTTPD_YEAROFFSET 1997\n");
fprintf(file,"#define KHTTPD_NUMYEARS 10\n"); printf("#define KHTTPD_NUMYEARS 10\n");
(void)fclose(file);
return 0; return 0;
} }
########################################################################### ###########################################################################
# Makefile for the Linux 802.2 LLC (fully-functional) layer. # Makefile for the Linux 802.2 LLC (fully-functional) layer.
# #
# Note 1! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...
#
# Copyright (c) 1997 by Procom Technology,Inc. # Copyright (c) 1997 by Procom Technology,Inc.
# 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> # 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
# #
...@@ -18,21 +12,15 @@ ...@@ -18,21 +12,15 @@
# See the GNU General Public License for more details. # See the GNU General Public License for more details.
########################################################################### ###########################################################################
O_TARGET := llc.o obj-$(CONFIG_LLC) += llc.o
obj-y := llc_if.o llc_c_ev.o llc_c_ac.o llc_mac.o llc_sap.o llc_s_st.o \ llc-y := llc_if.o llc_c_ev.o llc_c_ac.o llc_mac.o llc_sap.o llc_s_st.o \
llc_main.o llc_s_ac.o llc_conn.o llc_c_st.o llc_stat.o llc_actn.o \ llc_main.o llc_s_ac.o llc_conn.o llc_c_st.o llc_stat.o llc_actn.o \
llc_s_ev.o llc_evnt.o llc_pdu.o llc_s_ev.o llc_evnt.o llc_pdu.o
llc-$(CONFIG_LLC_UI) += llc_sock.o
ifeq ($(CONFIG_LLC_UI),y) llc-objs := $(llc-y)
obj-y += llc_sock.o
endif
# Objects that export symbols. # Objects that export symbols.
export-objs := llc_if.o export-objs := llc_if.o
ifeq ($(CONFIG_LLC),m)
obj-m += $(O_TARGET)
endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -108,127 +108,67 @@ include $(TOPDIR)/Rules.make ...@@ -108,127 +108,67 @@ include $(TOPDIR)/Rules.make
# Turtle Beach Maui / Tropez # Turtle Beach Maui / Tropez
maui.o: maui_boot.h $(obj)/maui.o: $(obj)/maui_boot.h
ifeq ($(CONFIG_MAUI_HAVE_BOOT),y) ifeq ($(CONFIG_MAUI_HAVE_BOOT),y)
maui_boot.h: $(patsubst "%", %, $(CONFIG_MAUI_BOOT_FILE)) bin2hex $(obj)/maui_boot.h: $(patsubst "%", %, $(CONFIG_MAUI_BOOT_FILE)) $(obj)/bin2hex
./bin2hex -i maui_os < $(CONFIG_MAUI_BOOT_FILE) > $@ $(obj)/bin2hex -i maui_os < $< > $@
else else
maui_boot.h: $(obj)/maui_boot.h:
( \ ( \
echo 'static unsigned char * maui_os = NULL;'; \ echo 'static unsigned char * maui_os = NULL;'; \
echo 'static int maui_osLen = 0;'; \ echo 'static int maui_osLen = 0;'; \
) > $@ ) > $@
endif endif
@ ( \
echo 'ifeq ($(strip $(CONFIG_MAUI_HAVE_BOOT) $(CONFIG_MAUI_BOOT_FILE)),$$(strip $$(CONFIG_MAUI_HAVE_BOOT) $$(CONFIG_MAUI_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
# Turtle Beach MultiSound # Turtle Beach MultiSound
ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y) ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y)
msnd_classic.o: msndperm.c msndinit.c $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) bin2hex $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
./bin2hex msndperm < $(CONFIG_MSNDCLAS_PERM_FILE) > $@ $(obj)/bin2hex msndperm < $< > $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_MSNDCLAS_HAVE_BOOT) $(CONFIG_MSNDCLAS_PERM_FILE)),$$(strip $$(CONFIG_MSNDCLAS_HAVE_BOOT) $$(CONFIG_MSNDCLAS_PERM_FILE)))'; \ $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
echo 'FILES_BOOT_UP_TO_DATE += $@'; \ $(obj)/bin2hex msndinit < $< > $@
echo 'endif' \
) > .$@.boot
msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) bin2hex
./bin2hex msndinit < $(CONFIG_MSNDCLAS_INIT_FILE) > $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_MSNDCLAS_HAVE_BOOT) $(CONFIG_MSNDCLAS_INIT_FILE)),$$(strip $$(CONFIG_MSNDCLAS_HAVE_BOOT) $$(CONFIG_MSNDCLAS_INIT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
endif endif
ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y) ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y)
msnd_pinnacle.o: pndsperm.c pndspini.c $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) bin2hex
./bin2hex pndsperm < $(CONFIG_MSNDPIN_PERM_FILE) > $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_MSNDPIN_HAVE_BOOT) $(CONFIG_MSNDPIN_PERM_FILE)),$$(strip $$(CONFIG_MSNDPIN_HAVE_BOOT) $$(CONFIG_MSNDPIN_PERM_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) bin2hex
./bin2hex pndspini < $(CONFIG_MSNDPIN_INIT_FILE) > $@
@ ( \
echo 'ifeq ($(strip $(CONFIG_MSNDPIN_HAVE_BOOT) $(CONFIG_MSNDPIN_INIT_FILE)),$$(strip $$(CONFIG_MSNDPIN_HAVE_BOOT) $$(CONFIG_MSNDPIN_INIT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
endif
$(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
$(obj)/bin2hex pndsperm < $< > $@
$(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
$(obj)/bin2hex pndspini < $< > $@
endif
# PSS (ECHO-ADI2111) # PSS (ECHO-ADI2111)
pss.o: pss_boot.h $(obj)/pss.o: $(obj)/pss_boot.h
ifeq ($(CONFIG_PSS_HAVE_BOOT),y) ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) bin2hex $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex
./bin2hex pss_synth < $(CONFIG_PSS_BOOT_FILE) > $@ $(obj)/bin2hex pss_synth < $< > $@
else else
pss_boot.h: $(obj)/pss_boot.h:
( \ ( \
echo 'static unsigned char * pss_synth = NULL;'; \ echo 'static unsigned char * pss_synth = NULL;'; \
echo 'static int pss_synthLen = 0;'; \ echo 'static int pss_synthLen = 0;'; \
) > $@ ) > $@
endif endif
@ ( \
echo 'ifeq ($(strip $(CONFIG_PSS_HAVE_BOOT) $(CONFIG_PSS_BOOT_FILE)),$$(strip $$(CONFIG_PSS_HAVE_BOOT) $$(CONFIG_PSS_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
# MediaTrix AudioTrix Pro # MediaTrix AudioTrix Pro
trix.o: trix_boot.h $(obj)/trix.o: $(obj)/trix_boot.h
ifeq ($(CONFIG_TRIX_HAVE_BOOT),y) ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) hex2hex $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex
./hex2hex -i trix_boot < $(CONFIG_TRIX_BOOT_FILE) > $@ $(obj)/hex2hex -i trix_boot < $< > $@
else else
trix_boot.h: $(obj)/trix_boot.h:
( \ ( \
echo 'static unsigned char * trix_boot = NULL;'; \ echo 'static unsigned char * trix_boot = NULL;'; \
echo 'static int trix_boot_len = 0;'; \ echo 'static int trix_boot_len = 0;'; \
) > $@ ) > $@
endif
@ ( \
echo 'ifeq ($(strip $(CONFIG_TRIX_HAVE_BOOT) $(CONFIG_TRIX_BOOT_FILE)),$$(strip $$(CONFIG_TRIX_HAVE_BOOT) $$(CONFIG_TRIX_BOOT_FILE)))'; \
echo 'FILES_BOOT_UP_TO_DATE += $@'; \
echo 'endif' \
) > .$@.boot
# Find boot files whose source file names have changed and force rebuild.
FILES_BOOT_UP_TO_DATE :=
FILES_BOOT_EXIST := $(wildcard .*.boot)
ifneq ($(FILES_BOOT_EXIST),)
include $(FILES_BOOT_EXIST)
endif
FILES_BOOT_CHANGED := $(strip \
$(filter-out $(FILES_BOOT_UP_TO_DATE), \
maui_boot.h pss_boot.h trix_boot.h))
ifneq ($(FILES_BOOT_CHANGED),)
$(FILES_BOOT_CHANGED): FORCE
endif endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment