Commit Graph

289 Commits

Author SHA1 Message Date
itojun aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
jmc 43bf89bfc6 Fixes from PR#23177. Various lint/logic fixes:
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing

Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
keihan b8702f530b netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
wiz c0177219fe Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:52:33 +00:00
wiz 1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
ad db67878c50 Get the interrupt config from the correct register. 2003-05-03 14:57:38 +00:00
tsutsui 4762c81f53 - #ifdef DEBUG, #if DEBUG -> #ifdef AHC_DEBUG
- TAB/space cosmetics
2003-04-22 14:33:01 +00:00
fvdl da526ebf96 Initialize ahc->name. From Izumi Tsutsui.
Set ahc->parent_dmat correctly.
2003-04-20 16:50:13 +00:00
fvdl 4d6d3fb37b Call ahc_softc_init in attach function. 2003-04-20 15:48:25 +00:00
fvdl 0d9c871cee Adapt to newer backend. Needs testing. 2003-04-19 19:35:34 +00:00
jdolecek 36dc52ad95 regen - add 3Com TCM6790 entry 2003-03-22 14:31:28 +00:00
jdolecek eede41c54a add TCM6790 entry 2003-03-22 14:30:48 +00:00
jdolecek 9ea2d6b973 Don't do EISA reset on attach. This made the card reset to use default irq, rather
than to use the one configured by EISA, and perhaps had some other side
effects - according to Pavel Cahyna, NOT doing the reset improved receive
performance significantly.
This also resolves old thread on current-users regarding this EISA card.
2003-02-08 12:06:13 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
ad 59773dea2e Implement the DPT EATA ioctl() interface. 2002-12-07 19:48:30 +00:00
tsutsui 435b887237 Regen: Add SMC 9232DST Ether 10/100 Fast Ethernet EISA Adapter. 2002-11-16 10:04:19 +00:00
tsutsui 396a6a2863 Add SMC 9232DST Ether 10/100 Fast Ethernet EISA Adapter. 2002-11-16 10:03:32 +00:00
thorpej c9b3657ce9 Add trailing ; to CFATTACH_DECL. 2002-10-02 16:33:28 +00:00
thorpej 9d4a640785 Use CFATTACH_DECL(). 2002-09-30 21:04:24 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej 6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
ad e7ab6ca550 Nuke incorrect mailbox length defines and just use 13 everywhere. May help
with PR/14266.
2002-08-31 05:18:03 +00:00
ad fba11cbab8 Handle aincent firmware as found on EISA/MCA boards. Untested. 2002-08-26 15:27:12 +00:00
bouyer e5727031fb Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
ad 49849b4d3a - Always validate the return value read from the outbound FIFO.
- Copy access method info into the softc so we don't double dereference.
- Remove static on functions.
2002-01-25 16:10:35 +00:00
tsutsui ab04f9daae Call malloc(9) with M_ZERO flag instead of bzero() after malloc().
XXX It seems these attachments need to be rewritten for modern config(9)..
2002-01-14 13:39:14 +00:00
tsutsui b87a051ec8 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:17:05 +00:00
ad 6b7cc2a465 Couple more tweaks, probably still not working. 2001-12-18 13:38:48 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem b84f53efc5 add RCSID 2001-11-13 12:47:33 +00:00
martin 6f67510515 Give the cards a bit more time for initialization (closes PR 13947)
and add product IDs for two 3C509 TP variants (closes PR 13948).
Both changes from Christian Groessler.
2001-09-14 13:46:42 +00:00
martin ffd70ffedb Add product IDs for 3com 3C509 TP cards.
From Christian Groessler in PR 13948.
2001-09-14 13:41:29 +00:00
wiz c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
ad 8aad07ad6a Add missing printf(). 2001-05-10 09:41:19 +00:00
ad 3db21b039c We map in by MLX_EISA_SLOT_OFFSET, so remember that when accessing the
IOCONF registers. Pointed out by thorpej.
2001-05-06 20:34:41 +00:00
ad ae9cc4fa8a Add an (untested) EISA front-end for the `mlx' driver. 2001-05-06 19:54:59 +00:00
ad d4d6497c45 Regen. 2001-05-06 19:44:14 +00:00
ad 0c528fcfc0 Add some Mylex products. 2001-05-06 19:43:54 +00:00
ross e3f2f91bfb Split pci and eisa/isa attachment calls, plus misc cleanup. 2001-05-03 20:34:54 +00:00
bouyer 937a7a3ed9 Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
2001-04-25 17:53:04 +00:00
ad a7a9126e0e Regen. 2001-04-17 14:30:01 +00:00
ad 6a59be7d6b Add Bt760 Ethernet. 2001-04-17 14:29:47 +00:00
jdolecek 372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
lukem 3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
jdolecek 34c8ae80da constify 2001-01-18 20:28:15 +00:00
thorpej 275539f03c NBPG -> PAGE_SIZE 2000-11-14 18:21:00 +00:00
ad 16a062538b Nuke unused includes, sort decls. 2000-10-19 15:31:20 +00:00