Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/adwlib.c
RevisionDateAuthorComments
 1.45  25-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.44  15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.43  06-Oct-2019  uwe Get rid of bogus ADW_CALLBACK typedef. Use the real callback types
directly. Since we no longer need the casting dance we can get rid of
ADW_ISR_CALLBACK and ADW_ASYNC_CALLBACK typedefs too. The diff for
adwlib.h looks larger than it is b/c we need to reorder structure
definitions for the proper callback declaration. Found by gcc8
-Wcast-function-type.
 1.42  03-Feb-2019  mrg branches: 1.42.4;
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.41  12-Sep-2013  martin branches: 1.41.30;
Remove unused ppr_able variable.
 1.40  13-Nov-2010  uebayasi branches: 1.40.8; 1.40.18; 1.40.22;
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
 1.39  14-Mar-2009  dsl branches: 1.39.4;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.38  19-Oct-2007  ad branches: 1.38.20; 1.38.28; 1.38.34;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.37  27-Aug-2006  christos branches: 1.37.12; 1.37.26; 1.37.28; 1.37.32;
complete declarations
 1.36  21-May-2006  christos void casts to functions whose return values are ignored.
 1.35  11-Dec-2005  christos branches: 1.35.4; 1.35.6; 1.35.8; 1.35.12; 1.35.14;
merge ktrace-lwp.
 1.34  30-May-2005  christos branches: 1.34.2;
- add missing const
- fix variable shadowing
- remove unneeded casts
 1.33  27-Feb-2005  perry nuke trailing whitespace
 1.32  04-Feb-2005  perry de-__P
 1.31  02-Nov-2003  wiz branches: 1.31.8; 1.31.10;
Fix some typos. From Tom Cosgrove via jmc@openbsd.
 1.30  30-Oct-2003  simonb Remove some assigned-to but otherwise unused variables.
 1.29  29-Oct-2003  mycroft Return EINVAL rather than stepping off a null pointer.
 1.28  25-Oct-2003  christos Fix uninitialized variable warning.
 1.27  25-Oct-2003  christos Fix uninitialized variable warnings
 1.26  21-Oct-2003  fvdl Correct NULL abuse.
 1.25  21-Feb-2003  tsutsui branches: 1.25.2;
hz -> Hz
 1.24  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.23  13-Nov-2001  lukem add/cleanup RCSID
 1.22  29-Aug-2001  briggs Ensure that data accessed by the ADW driver in memory is in
little-endian byte-order. This should work out to be a no-op
for LE systems, and allows BE systems to use the board.

Tested on PPC, reviewed by Dante.

NOTE: The board/microcode does have a BIG_ENDIAN mode of operation,
but it's not well-documented. That might be interesting to investigate
at some point in the future, though.
 1.21  30-Apr-2001  lukem branches: 1.21.2;
use #if 0 rather than // or /* to comment out blocks of code
 1.20  04-Jul-2000  itojun branches: 1.20.2;
sync with sys/dev/ic/adwlib.h change (s/ADV_TICKLE/ADW_TICKLE/)
not sure if it is right. comments?
 1.19  28-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.18  26-Jun-2000  mrg remove redundant vm includes.
 1.17  27-May-2000  dante Change AdwInitCarriers in adwmcode.c
Add new AdwInitCarriers prototype in adwmcode.h
All of the supported adapters are now initialized calling a unique common
function
 1.16  26-May-2000  dante branches: 1.16.2;
Fix a bug introduced in last commit which caused a painc due to
re-enqueueing an already free ccb.
Prepare the background to have a unique initialization function for
all of the supported host adapters.
Rename a lot of #define in a more sane way.
Move Carriers initialization and defines in adwmcode.{c,h}
Don't lose Carrier nodes in case of a BUS/Chip reset explicitly invoked
after a DMA failure.

XXX - DMA failure still arise when AdvanSys U[2]W host adapters are used
in conjunction with Intel 82443BX Host Bridge/Controller (rev. 0x03).
!?!Have to understand why!?!
 1.15  15-May-2000  dante Cosmetic change
 1.14  14-May-2000  dante Fix a typo
 1.13  14-May-2000  dante Handle better the status codes.
Add a way to instruct the upper layer to don't bother w/ new requests if/when a device queue is full/busy or the device is unavailabale at that time
Use scsipi_inquiry_data instead of its own inquiry structure
 1.12  10-May-2000  dante Change adw_isr_callback() status handler
Add a catch for DMA Error which show up on Intel 82443BX Host Bridge/Controller (rev. 0x03). This doesn't fix the problem, but reset the SCSI bus and reinitialize the host adapter
Minor cosmetical changes

Thanks a lot to Greg Oster and Andan Lauber
 1.11  08-May-2000  dante Change the way ADW_CARRIER is allocated and handled.
Increased ADW_MAX_CCB to 63 and ADW_MAX_CARRIER to 253
Print WDTR/SDTR negotiation result per target
Protect AdvISR() inside splbio()/splx() pair
Add a pending queue to keep track of all the CCBs that are being executed by the host adapter.
Rewrote timeout handler in a more efficient way:
After 3 timeout now the SCSI is resetted and all pending queues not completed are now reenqueued in the waiting queue so to get executed just after the BUS Reset (hoping that resetting the SCSI BUS and reinitializing the adapter could solve the problem).
 1.10  30-Apr-2000  dante Add new microcode for all of the supported boards.
Fix minor glitches.
Add preliminary support for ASB-3940U3W host adapters; it might work w/ autotermination on.
ASB-3940U3W support is not yet tested due to lack of board.
 1.9  04-Feb-2000  dante Fix "unused variable" warning when FAILSAFE option is defined
 1.8  04-Feb-2000  dante Fix a compilation bug due to a missing parenthesys
 1.7  03-Feb-2000  dante Add AdvanSys U2W (LVD) boards support
 1.6  15-Nov-1999  dante Let user enable/disable WDTR, SDTR and Tag Queuing from kernel config file
 1.5  16-Aug-1999  thorpej branches: 1.5.2; 1.5.8;
Fix several LP64 problems, and clear up kernel pointer vs. physical
address confusion. This driver now works on the Alpha.
 1.4  07-Aug-1999  thorpej Fix a typo.
 1.3  23-Feb-1999  dante Fixed AdvanSys Ultra Wide driver to work on Alpha.
 1.2  26-Sep-1998  dante Change sources to be KNF
 1.1  26-Sep-1998  dante Add support for AdvanSys Ultra Wide boards ABP-9xxUW
 1.5.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.16.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.20.2.4  08-Jan-2002  nathanw Catch up to -current.
 1.20.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.20.2.2  21-Sep-2001  nathanw Catch up to -current.
 1.20.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.21.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.21.2.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.25.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.25.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.25.2.4  04-Feb-2005  skrll Sync with HEAD.
 1.25.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.25.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.25.2.1  03-Aug-2004  skrll Sync with HEAD
 1.31.10.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.31.10.1  12-Feb-2005  yamt sync with head.
 1.31.8.1  29-Apr-2005  kent sync with -current
 1.34.2.3  27-Oct-2007  yamt sync with head.
 1.34.2.2  30-Dec-2006  yamt sync with head.
 1.34.2.1  21-Jun-2006  yamt sync with head.
 1.35.14.1  19-Jun-2006  chap Sync with head.
 1.35.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.35.8.2  03-Sep-2006  yamt sync with head.
 1.35.8.1  24-May-2006  yamt sync with head.
 1.35.6.1  01-Jun-2006  kardel Sync with head.
 1.35.4.1  09-Sep-2006  rpaulo sync with head
 1.37.32.1  25-Oct-2007  bouyer Sync with HEAD.
 1.37.28.1  06-Nov-2007  matt sync with HEAD
 1.37.26.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.37.12.1  23-Oct-2007  ad Sync with head.
 1.38.34.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.38.28.1  28-Apr-2009  skrll Sync with HEAD.
 1.38.20.1  04-May-2009  yamt sync with head.
 1.39.4.1  05-Mar-2011  rmind sync with head
 1.40.22.1  18-May-2014  rmind sync with head
 1.40.18.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.40.8.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.41.30.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.41.30.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.41.30.1  10-Jun-2019  christos Sync with HEAD
 1.42.4.1  18-Dec-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #570):

sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3
sys/dev/raidframe/rf_compat50.h: revision 1.6
sys/arch/emips/emips/bus_space.c: revision 1.3
sys/compat/net/if.h: revision 1.5
sys/arch/emips/stand/common/bootinfo.c: revision 1.2
sys/compat/common/sysv_msg_50.c: revision 1.5
sys/compat/common/kern_time_30.c: revision 1.8
sys/arch/emips/stand/common/bootinfo.h: revision 1.2
sys/arch/ia64/include/bus.h: revision 1.4
sys/arch/ia64/ia64/bus_space.c: revision 1.2
sys/compat/common/sysv_shm_50.c: revision 1.5
sys/dev/ic/adw.h: revision 1.15
sys/compat/common/uipc_syscalls_50.c: revision 1.10
sys/arch/emips/ebus/flash_ebus.c: revision 1.22
sys/dev/ic/adv.h: revision 1.15
sys/dev/ic/adwmcode.c: revision 1.18
sys/dev/ic/advlib.c: revision 1.29
sys/arch/hpcarm/include/kloader.h: revision 1.3
sys/dev/usb/uberry.c: revision 1.16
sys/compat/common/sysv_sem_50.c: revision 1.5
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43
sys/dev/ic/advlib.h: revision 1.21
sys/dev/ic/adv.c: revision 1.50
sys/compat/netinet6/in6_var.h: revision 1.5
sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2
sys/arch/emips/include/loadfile_machdep.h: revision 1.3
sys/arch/emips/stand/common/prom_iface.c: revision 1.7
sys/dev/ic/adw.c: revision 1.56
sys/dev/ic/adwmcode.h: revision 1.12
sys/dev/ic/advmcode.c: revision 1.10
sys/arch/emips/ebus/ace_ebus.c: revision 1.22
sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5
sys/dev/raidframe/rf_compat50.c: revision 1.13
sys/arch/x68k/dev/intiovar.h: revision 1.15
sys/dev/usb/uipad.c: revision 1.8
sys/arch/zaurus/include/kloader.h: revision 1.3
sys/arch/emips/stand/common/bootxx.c: revision 1.2
sys/dev/ic/adwlib.h: revision 1.23
sys/dev/ic/adwlib.c: revision 1.44
sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3
sys/arch/amigappc/include/intr.h: revision 1.27
sys/arch/x68k/dev/mfp.c: revision 1.27
sys/arch/arm/at91/at91dbgu.c: revision 1.17
sys/dev/ic/advmcode.h: revision 1.7
sys/compat/ultrix/ultrix_exec.h: revision 1.7
sys/compat/common/vfs_syscalls_50.c: revision 1.24
sys/arch/mips/cavium/octeon_dma.c: revision 1.3
sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2

Remove clause 3 and 4 from TNF licenses.
Ok'ed by martin@ in PR/54760.

Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.

RSS XML Feed