History log of /freebsd-current/sys/dev/aic7xxx/aicasm/aicasm_scan.l
Revision Date Author Comments
# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 718cf2cc 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.


# 9f812a5b 12-Nov-2012 Neel Natu <neel@FreeBSD.org>

Revert r229954 which in turn had reverted r228556 in projects/bhyve.

This was done to work around build issues when building projects/bhyve on an
8.x system at the time.

The workaround is no longer needed so re-instantiate r228556 in projects/bhyve.

Discussed with: grehan@
Obtained from: NetApp


# 3f36fe31 10-Jan-2012 Peter Grehan <grehan@FreeBSD.org>

Revert r228556 - this breaks building on 8.*, and I still use these
systems daily to do CURRENT development.


# 487d088e 15-Dec-2011 Dimitry Andric <dim@FreeBSD.org>

Add "%option noinput" to aicasm_scan.l and aicasm_macro_scan.l, so no
unneeded input functions will be emitted.

Spotted by: arundel
MFC after: 1 week


# cb0f0a02 14-Jul-2011 Ed Maste <emaste@FreeBSD.org>

Improve portability #defines for compiling aicasm on other systems.

Submitted by: Robert Millan rmh debian.org
Obtained from: Debian GNU/kFreeBSD


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# ea7303d1 14-Oct-2010 Rui Paulo <rpaulo@FreeBSD.org>

Revert r213765. This is required because our build infrastructure uses
the host lex instead of the lex built during buildworld. I will MFC the
lex changes soon and in a few weeks this I'll commit again r213765.


# c42a2be2 13-Oct-2010 Rui Paulo <rpaulo@FreeBSD.org>

Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror
turned on.


# 2ca586a5 22-Jan-2010 Brooks Davis <brooks@FreeBSD.org>

MFC r201261:
Add missing `void' keywords.


# 73c4bad0 30-Dec-2009 Ed Schouten <ed@FreeBSD.org>

Add missing `void' keywords.


# 5bb0de05 01-Jun-2009 Xin LI <delphij@FreeBSD.org>

Initialize the match structure. This is unnecessary but gcc insists to
complain about it when we raise the WARNS level.


# b18a2ef1 01-Jun-2009 Xin LI <delphij@FreeBSD.org>

Code cleanups to make this WARNS=6 clean.

PR: bin/96128


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 098ca2bd 05-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start each of the license/copyright comments with /*-, minor shuffle of lines


# 708d2cb0 16-Dec-2003 Justin T. Gibbs <gibbs@FreeBSD.org>

Modify assembler to ignore carriage returns in input.
This should make those using the assembler under cygwin
happy.


# 99ddedd8 26-Sep-2002 Justin T. Gibbs <gibbs@FreeBSD.org>

Remove redundant inclusion of inttypes.h in aicasm_gram.y
and properly sort inttypes.h into list of includes.

Noticed by: Mike Barcroft <mike@freebsd.org>


# 4ff10146 26-Sep-2002 Justin T. Gibbs <gibbs@FreeBSD.org>

Use inttypes.h

Upgrade assembler to allow a move immediate of 0.
This is helpful in certain macros where we can't know the value of the
immediate in advance.


# 63183d8c 31-Aug-2002 Justin T. Gibbs <gibbs@FreeBSD.org>

Update assembler syntax and assembler to allow generation of register
description tables used for diagnostic "pretty printing".


# 9b2af00e 05-Jun-2002 Justin T. Gibbs <gibbs@FreeBSD.org>

Silence GCC warnings about multi-line strings.

Sync Perforce IDs.


# 7ce72dba 24-Apr-2002 Justin T. Gibbs <gibbs@FreeBSD.org>

Add macro functionality.

Staticize and allow unique naming of data structures so that more
than on sequencer program can be statically compiled into the kernel
at a time.


# 8f8cd845 22-Jul-2001 Assar Westerlund <assar@FreeBSD.org>

add %option nounput


# 2d0fbde8 18-Jul-2001 Justin T. Gibbs <gibbs@FreeBSD.org>

Add support for parsing version strings out of assembler source files
and outputing them in generated files.

Fixed a few other scanner bugs that for some reason didn't show up until
these modifications were made.

MFC after: 10 days


# aaad27fd 10-Nov-2000 Justin T. Gibbs <gibbs@FreeBSD.org>

Sync perforce IDs.


# 083d01f2 22-Sep-2000 Justin T. Gibbs <gibbs@FreeBSD.org>

Add Perforce RCSIDs for easy revision correlation to my local tree.

Add support for constructing a table of critical section regions in
the firmware image. The kernel driver will soon have support for
single stepping the sequencer outside of a critical region prior
to starting exception handling.


# 32da3127 16-Sep-2000 Justin T. Gibbs <gibbs@FreeBSD.org>

Move aicasm to its own subdirectory.


# aa6dfd9d 18-Jul-2000 Justin T. Gibbs <gibbs@FreeBSD.org>

o Convert to <inttypes.h> style fixed sized types to facilitate porting to
other systems.

o Normalize copyright text.

o Clean up probe code function interfaces by passing around a single
structure of common arguments instead of passing "too many" args
in each function call.

o Add support for the AAA-131 as a SCSI adapter.

o Add support for the AHA-4944 courtesy of "Matthew N. Dodd" <winter@jurai.net

o Correct manual termination support for PCI cards. The bit definitions
for manual termination control in the SEEPROM were incorrect.

o Add support for extracting NVRAM information from SCB 2 for BIOSen
that use this mechanism to pass this data to OS drivers.

o Properly set the STPWLEVEL bit in PCI config space based on the
setting in an SEEPROM.

o Go back to useing 32byte SCBs for all controllers. The current
firmware allows us to embed 12byte cdbs on all controllers in
a 32byte SCB, and larger cdbs are rarely used, so it is a
better use of this space to offer more SCBs (32).

o Add support for U160 transfers.

o Add an idle loop executed during data transfers that prefetches
S/G segments on controllers that have a secondary DMA engine
(aic789X).

o Improve the performance of reselections by avoiding an extra
one byte DMA in the case of an SCB lookup miss for the reselecting
target. We now keep a 16byte "untagged target" array on the card
for dealing with untagged reselections. If the controller has
external SCB ram and can support 64byte SCBs, then we use an
"untagged target/lun" array to maximize concurrency. Without
external SCB ram, the controller is limited to one untagged
transaction per target, auto-request sense operations excluded.

o Correct the setup of the STPWEN bit in SXFRCTL1. This control
line is tri-stated until set to one, so set it to one and then
set it to the desired value.

o Add tagged queuing support to our target role implementation.

o Handle the common cases of the ignore wide residue message
in firmware.

o Add preliminary support for 39bit addressing.

o Add support for assembling on big-endian machines. Big-endian
support is not complete in the driver.

o Correctly remove SCBs in the waiting for selection queue when
freezing a device queue.

o Now that we understand more about the autoflush bug on the
aic7890, only use the workaround on devices that need it.

o Add a workaround for the "aic7890 hangs the system when you
attempt to pause it" problem. We can now pause the aic7890
safely regardless of what instruction it is executing.


# e3975643 25-May-2000 Jake Burkholder <jake@FreeBSD.org>

Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by: msmith and others


# 740a1973 23-May-2000 Jake Burkholder <jake@FreeBSD.org>

Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by: phk
Reviewed by: phk
Approved by: mdodd


# 41c47eee 06-Dec-1999 Justin T. Gibbs <gibbs@FreeBSD.org>

Simplify my copyright license terms.

aic7xxx.c:
Add a function for sucking firmware out of the controller
prior to reset.

Remove some inline bloat from functions that should not have
been inlined.

During initialization, wait 1ms after the chip reset before
touching any registers. You can get machine checks on certain
architectures (Atari I think?) without the delay.

Return CAM_REQ_CMP for external BDR requests instead
of CAM_BDR_SENT.

Bump some messages to bootverbose levels above 1.

Don't clear any negotiated sync rate if the target rejects
a WDTR message. The sync rate is only cleared if the target
accepts a WDTR message.

Fix a small bug in the mesgin handling code that could cause
us to believe that we had recieved a message that was actually
received by another target. This could only confuse us in
some very rare transmission negotiation scenarios.

Remove some unecessary cleanup of residual information after
a residual is reported. The sequencer does this when the
command is queued now.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 3bafc9d4 15-Sep-1998 Justin T. Gibbs <gibbs@FreeBSD.org>

Massive overhaul of the aic7xxx driver:
- Convert to CAM
- Use a new DMA based queuing and paging scheme
- Add preliminary target mode support
- Add support for the aic789X chips
- Take advantage of external SRAM on more controllers.
- Numerous bug fixes and performance improvements.


# 37507c1b 27-Sep-1997 Justin T. Gibbs <gibbs@FreeBSD.org>

Add support to aicasm for "downloaded constants". These are immediate
operands that are set during seqeuncer program download instead of at
assembly time.

Convert the sequencer code to use" downloaded constants" for four run time
constants that vary depending on the board type. This frees up 4 bytes
of sequencer scratch ram space where these constants used to be stored and
also removes the additional instructions required to load their values
into the accumulator prior to using them.

Remove the REJBYTE sram variable. The host driver can just as easly
read the accumulator to get this value.

The scratch ram savings is important as the old code used to clober the
SCSICONF register on 274X cards which sits near the top of scratch ram
space. The SCSICONF register controls bus termination, and clobbering
it is not a good thing. Now we have 4 bytes to spare.

This should fix the reported problems with cards that don't have devices
attached to them failing with a stream of "Somone reset bus X" messages.

Doug Ledford determined the cause of the problem, fixes by me.


# c66dbc92 02-Sep-1997 Justin T. Gibbs <gibbs@FreeBSD.org>

Make the aic7xxx sequencer assembler compile in the kernel's object
directory. Rename (via repository copy) some files so that the potential
for future conflicts is minimized.

PR: conf/4363


# f68f348b 27-Jun-1997 Justin T. Gibbs <gibbs@FreeBSD.org>

Modify my copyright notice to allow the sequencer to be used with GPLed
software (aka Linux).

Fix a few bugs in the sequencer assembler.

Make it easy to compiler the assembler with debugging turned on.


# 60b161a9 16-Mar-1997 Bruce Evans <bde@FreeBSD.org>

Don't depend on <sys/types.h> being (bogusly) included by <stdio.h>.


# c5cb3888 16-Mar-1997 Justin T. Gibbs <gibbs@FreeBSD.org>

Makefile gram.y scan.l sequencer.h symbol.c symbol.h aic7xxx_asm.c:
New sequencer assembler for the aic7xxx adapters. This assembler
performs some amount of register type checking, allows bit
manipulation of symbolic constants, and generates "patch tables"
for conditionalized downloading of portions of the program.
This makes it easier to take full advantage of the different
features of the aic7xxx cards without imposing run time penalies
or being bound to the small memory footprints of the low end
cards for features like target mode.

aic7xxx.reg:
New, assembler parsed, register definitions fo the aic7xxx cards.
This was done primarily in anticipation of 7810 support which
will have a different register layout, but should be able to use
the same assembler. The kernel aic7xxx driver consumes a generated
file in the compile directory to get the definitions of the register
locations.

aic7xxx.seq:
Convert to the slighly different syntax of the new assembler.

Conditionalize SCB_PAGING, ultra, and twin features which shaves
quite a bit of space once the program is downloaded.

Add code to leave the selection hardware enabled during reconnects
that win bus arbitration. This ensures that we will rearbitrate
as soon as the bus goes free instead of delaying for a bit.

When we expect the bus to go free, perform all of the cleanup
associated with that event "up front" and enter a loop awaiting
bus free. If we see a REQ first, complain, but attempt to
continue. This will hopefully address, or at least help diagnose,
the "target didn't send identify" messages that have been reported.

Spelling corrections obtained from NetBSD.