Commit Graph

5038 Commits

Author SHA1 Message Date
mrg 713d4e0462 KNF nits. 1999-04-20 06:48:58 +00:00
jonathan 055b827e11 Calling DELAY() during polling for command completion of the normal
per-packet discard of every received packet increases latency and
decrease throughput.  INstead, Spin on S_COMMAND_IN_PROGESS for enough
iterations as the expected time to completion.  Only do DELAY()/poll
loops (as suggested by Jason Thorpe) if spinning fails.
Take PCI as fastest case and compute worst-case estimate.

Shorten DELAY() in S_COMMAND_COMPLETE polling-loop up 10, loop-count
down.  to speed up epreset() completion (m/c filter change, ifup/ipdown, etc).
1999-04-20 04:40:24 +00:00
jonathan 07c7535688 * Make doubly sure that the ep shutdownhooks are run at splnet() or above.
* Clear the `enabled' bit in the softc so late hardware interrupts
  (e.g., just after the full reset) done as part of shutdown) are dropped.
* Eliminate loops that  poll forever on S_COMMAND_IN_PROGRESS to complete.
  Add inline function with bounded loopcount plus small delay, to avoid
  bugs in EISA hardware which never sets S_COMMAND_IN_PROGRESS.
  Use for both TX_RESET/RX_RESET/GLOBAL_RESET cmds, and polling for
  discard-Rx completion
1999-04-19 23:26:48 +00:00
ross 4b0326d939 Get rid of delay() in com_common_putc() because the Shark delay() is borked
and can't be called until after the timers are setup. (It should not use
a timer, or it should have a fallback algorithm.)
1999-04-19 19:27:31 +00:00
thorpej 552465011e Revert revision 1.159. The correct answer was not to re-break the
serial console support, but rather to fix the Shark delay().
1999-04-18 22:02:47 +00:00
ad fe72ae262f Rebuilt from 'isapnpdevs'. 1999-04-18 13:21:01 +00:00
ad 690bd69d3e Add Diamond Supra 336i to device list. 1999-04-18 00:35:30 +00:00
abs c28fffe947 Fix enet_vendor entries for Compex Linkport Enet B (PR 7238) 1999-04-16 22:35:49 +00:00
pk cd6eaa20b1 Print register contents before we modify it. 1999-04-16 13:35:41 +00:00
mjl 6224c1beda Correct wrong board IDs (used ID definition from FreeBSD) 1999-04-15 23:51:44 +00:00
bouyer b5f3e628a3 If setting to pio mode < 3 fails, try to set pio mode 3 before returning
EIO. The spec says ATAPI devices should support "PIO 3 or better".
They are supposed to support less as well. Setting the device to a highter
mode than the controller shoul'nt be a problem, and this is likely what
happens with legaty ISA controllers.
Solve problem reported by Ruey-Shyang Guo.
1999-04-15 16:21:27 +00:00
bouyer 94d00cdb29 Bump timeout to 10s only for ATAPI devices, 1s is fine for IDE drives once
they are ready.
1999-04-15 09:41:09 +00:00
ad c0735a01c5 Replace qvss8x15 with version from NetBSD/vax, which contains the full ISO
character set.
1999-04-14 23:06:26 +00:00
jonathan 380d12dfbd Complete bugfix in rev 1.3: increase read-parameter-block timeout to 10s
(as used for the hardware for which rev 1.3 was made.)
1999-04-14 22:23:15 +00:00
ad 9603b90966 Add missing RCONS_2BPP and RCONS_16BPP options for compatibility with code
that has not yet changed over to 'rasops'.
1999-04-14 18:43:24 +00:00
ad 619320f97d Remove courier11x18 due to licensing concerns. Fixup license on lucida16x29. 1999-04-14 18:25:47 +00:00
jonathan af729a150c initialize 'p' for lame gcc-2.7.2.2 flow analysis. 1999-04-14 03:26:34 +00:00
jonathan 0028097812 Fix ex_read_eeprom() for 3c57x. 1999-04-13 23:07:25 +00:00
jonathan 979a80207e Fix duplicate "3com" from attach, as noted in PR#7607. 1999-04-13 22:34:05 +00:00
augustss 4084111fca Make copyrights conform. 1999-04-13 20:37:21 +00:00
jonathan 2bf9a70e67 Endian-ness bugfix for elink3 on big-endian hosts.
Big-endian CPUs should use bus_space_{read,write}_multi_stream methods
  to PIO packet data to NIC in 16-bit or 32-bit chunks.
  Make it so.
  Since we don't have stream methods on all ports yet (esp. i386), use
  the bus_space_{read,write}_multi methods if the compile-time
  stream-method feature-test   macro is not set.
Originally from tsubai@netbsd.org, via HAYAKAWA koichi's cardbus patches.
1999-04-13 20:23:52 +00:00
ad 1c9990c901 Removed pending write of fully-functional MI driver. 1999-04-13 19:06:54 +00:00
ad ce7a13c654 Remove px driver pending write of fully-functional MI driver. 1999-04-13 19:06:53 +00:00
ad 8fe6730f9a Many enchancements to rcons to support ANSI color and all attributes
properly. All output now performed using a 'struct wsdisplay_emulops'.
1999-04-13 18:43:17 +00:00
ad a9ef1be75b iso8x16 font removed until such time as licensing can be clarified. 1999-04-13 18:34:13 +00:00
ad d8a02e8017 Code cleanup. Add ri_bswap member to 'struct rasops_info' to indicate that
framebuffer endianness differs from CPU (for 15,16,32-bit displays).
1999-04-13 03:02:40 +00:00
ad de43e7cc8d Fixed licensing due to a foobar on my behalf. 1999-04-13 00:40:07 +00:00
ad 7db08b6507 Initial import of wsfont, an in-kernel font table for wscons/rcons. 1999-04-13 00:24:05 +00:00
ad 14d2ed835e Initial import of 'rasops', the new raster operations set for wscons/rcons. 1999-04-13 00:17:57 +00:00
jonathan 9e87738e9d Add entries for TI, Ricoh, Toshiba PCI-to-cardbus bridge chips, so
we can identify them as cardbus chips supported by the cardbus patches.

Add entry for OPTI chipsets whose interrupts arent properly set up by
some BIOSes.

From cardbus patches<ftp://nandra.iri.co.jp/pub/NetBSD/CardBus by
HAYAKAWA Koichi <haya@tcad.ulsi.sony.co.jp>.
1999-04-12 23:18:16 +00:00
pk b13e5d1469 Quote "AS IS" as in the majority of Carnegy Mellon notices. 1999-04-12 20:38:17 +00:00
oster 4882ae464f Fix a couple of compiler warnings on the Alpha. Pointed out by Tim Rightnour. 1999-04-12 19:39:59 +00:00
mjl 4622761326 Enable workaround for isapnp assigning already used interrupts to pnp
cards by masking them out with a "options ISAPNP_ALLOC_INTR_MASK=..."
in kernel config.
1999-04-12 19:31:27 +00:00
cjs ecab881e98 PR 6852 from Chris Jones <cjones@hideo.nervana.montana.edu>.
This handles the interrupt structure of Compex boards.
1999-04-12 04:31:55 +00:00
bouyer 503de51fdd Fix probe code for IDE devices:
- Don't rely on ATA signature: some ide controllers seems to not transmit it
  properly (SIMIDE on arm32 machines). Instead, when we guess a drive is here
  after reset, just mark it as ATA and OLD is it's not ATAPI.
- at attach time, use IDENTIFY to eliminate ghost from the probe. If the
  drive had the old flag and IDENTIFY failed, issue a WDCC_RECAL command
  to detect a pre-ATA disk. If IDENTIFY succeded, remove the OLD flag,
  it's obviously not a pre-ATA disk.
- add a new controller flag, WDC_CAPABILITY_PREATA, used to shorcut parts
  of the probe (not necessary, but makes the probe/attach faster). This is
  only set by the ISA front-end, all other controllers supported can't have
  pre-ATA drives attached.
The mechanism used are more or less the same as before, they have just been
reordered. Should solve port-arm32/7324 (waiting for feedback).
1999-04-11 20:50:28 +00:00
drochner 2a614bc836 add support for 80x40 screens 1999-04-10 14:02:11 +00:00
abs 71c5a6babd Fix ethernet address location for Compex Linkport ENET-B. From PR 7238. 1999-04-09 23:19:27 +00:00
bad 57ba75e2fc Correct a misleading comment copied over from the PCIC version of this file. 1999-04-08 16:14:29 +00:00
bouyer e91bdf1c67 Add SCSI_IGNORE_NOT_READY to the flags for CDIOCCLOSE: some devices will
attempt to spin up, and report an error if there's no CD. Fixes port-i386/7345.
1999-04-08 16:12:31 +00:00
bouyer c2752835f7 Fix a long-standing bug with the ACAP_* flags:
- the cap field is a u_int8_t, so none of the defined flags would fit in.
  Looks like nobody had a drive using 16 bytes commands.
- the ACAP_DRQ_* flags are all wrong. Just remove them and use the definitions
  from ata/atareg.h, there's no need to duplicate theses. The effect of this
  was that we were always polling for the command phase, even for drives
  with interrupt DRQ. This didn't break until the code was changed to support
  shared interrupts.

Should fix the lookup problems or 'boot hangs' reported by some users, and
kern/7111.
1999-04-08 11:29:01 +00:00
oster 9f560505d4 Allow re-writing parity on a RAID 0 to trivially succeed, and to set the
clean bit.  This is somewhat bogus as RAID 0 does not have any parity,
but is a slightly cleaner than other solutions, and makes the handling
of clean bits for RAID 0 consistent with the handling of clean bits at
other RAID levels.
1999-04-07 14:17:10 +00:00
bouyer 29936d77d4 Now that we do real use of CDIOCCLOSE, we can have SSS_START|SSS_LOEJ
in scsipi_start(). Adjust test so that timeout will let enouth time to
the drive to spin up.
1999-04-07 12:47:27 +00:00
dbj 4397d4c1fd convert tabs to spaces in ascii art circuit diagram 1999-04-07 10:21:31 +00:00
christos 29ddb0a0af regen 1999-04-07 08:21:42 +00:00
christos 7fdc304a14 Add another USR modem 1999-04-07 08:21:25 +00:00
augustss cadb84965d Use complete sentences in the generated comments. 1999-04-06 23:03:44 +00:00
augustss 17c3351354 Regen. 1999-04-06 23:02:31 +00:00
augustss 31f94ae97e Add Leopard 56k PnP, from PR 7330. 1999-04-06 23:02:09 +00:00
pk c40eb1cd97 Fix a pasto in copyright text which has been procreating like rabbits.. 1999-04-06 20:09:18 +00:00
bouyer 2198b984e8 Kill an extra 'pciide0: ' in a printf 1999-04-06 17:49:14 +00:00