Commit Graph

54940 Commits

Author SHA1 Message Date
bouyer
52068f73ce Add support for the Promise Ultra/33 and /66 pci IDE controller. In addition to
chip-dependant code this required the following changes:
- Instead of attaching the device in a generic way with some chip-dependant
  routines, use a chip-dependant attach routine with some common code
  factored out. The code is marginally bigger, but this allows the CMD64x
  flag hack to go away.
- For chips that report per-channel 'irq triggered', test this before calling
  wdcintr() for the native-pci irq case (compat intr can't be shared),
  as wdcintr() has no good way to know if a irq was for it or not, and
  ends up with irq loss. XXX for chips that don't have this feature irq sharing
  will not work properly !
- add my copyrigth notice (could have been done some time ago I think :)

There are still some issues to be solved with the Promise controller and
ATAPI devices.
Many thanks to Paul Newhouse for shipping me 2 Ultra/33 boards for doing this
work.
1999-08-29 17:20:10 +00:00
bouyer
4819ee1cf1 Add definitions of the DMA mode control registers. They should be used
by pciide, but I have yet to find how to map them.
1999-08-29 17:06:43 +00:00
thorpej
c068ef8152 Add `umass'. 1999-08-29 16:55:48 +00:00
thorpej
246ab7936d One item off this list done! 1999-08-29 16:53:04 +00:00
sommerfeld
873713a5f7 Fix overzealous DIAGNOSTIC check in nfs_disconnect()
(fix pr8249, 8288)
1999-08-29 16:29:16 +00:00
lukem
f2adc5cef3 regen 1999-08-29 10:16:51 +00:00
tsubai
14b3666e9a Change md size to 2MB.
Don't use libhack temporarily.
1999-08-29 08:45:27 +00:00
dbj
45ec8742b1 minor rework of dma driver
now uses the DMACSR_READ bit and no longer keeps _nd_dmadir in softc
unified transfer cleanup code, now in routine next_dma_finish_xfer()
fixed bounds checking on registers after transfer.
removed checking for bus errors since the bit is always set on some nexts
(specifically, on mourning, a 25mhz 68040 mono slab)
fixed a couple of dma bugs involving chaining dma buffers.
1999-08-29 05:56:26 +00:00
dbj
ec9b8358dc made debugging printfs switchable at run time via the "xe_debug" variable. 1999-08-29 05:51:45 +00:00
christos
36dc48ce6e Amazing how this worked for so long. setenv(3) expects environ(7) to be
a malloc'ed pointer and it tries to realloc(3) it if it had to grow it
before. su(1) gave it a pointer from the stack which caused realloc to
core dump.
1999-08-29 04:21:55 +00:00
thorpej
cbb4401dfd Port the FreeBSD `umass' driver to NetBSD. This is still a work-in-progress
since a few things don't yet work properly:
- Sense data isn't reported properly (err, at all).
- It doesn't work with anything other than the Iomega USB Zip drive.
- Hot-unplug doesn't work yet.

...but this is enough to make my shiny new USB Zip drive go.
1999-08-29 00:30:08 +00:00
thorpej
c2ce79c0c9 In _pool_put(), panic if we're put'ing with nout == 0. This will help us
detect a little earlier if we've dup-put'd.  Otherwise, underflow occurs,
and subsequent allocations simply hang or fail (it thinks the hardlimit
has been reached).
1999-08-29 00:26:01 +00:00
thorpej
61f3c9356e If scsipi_make_xs() fails, make sure to flag the buffer as error'd,
if provided, and biodone() it.  Callers of scsipi_command() expect
this to be done.
1999-08-28 22:28:35 +00:00
augustss
036a9c6974 Change some 'struct device' to 'bdevice'. From FreeBSD. 1999-08-28 21:42:35 +00:00
tsubai
5d7288c24d Increase md size to 2MB. 1999-08-28 16:49:49 +00:00
augustss
1aa63c9fab Add some comments. 1999-08-28 10:04:01 +00:00
augustss
103e304a84 Add to the growing list. 1999-08-28 10:03:38 +00:00
augustss
2126f7df24 Change a type name. 1999-08-28 10:01:59 +00:00
augustss
598999e482 Fix from FreeBSD. 1999-08-28 10:01:42 +00:00
augustss
e470b13e28 Regen. 1999-08-28 10:01:19 +00:00
augustss
4b398d8f1b Fixes/updates from FreeBSD. 1999-08-28 10:00:56 +00:00
dbj
a47891200f fixed DMACSR_BITS definition to reflect DMACSR_READ bit renaming 1999-08-28 09:42:44 +00:00
augustss
64c7328230 Regen. 1999-08-28 09:22:58 +00:00
dbj
3c215084bc discovered the purpose of another bit in the dma control register.
DMACSR_READ is now a CSR status bit which can be used to know if current transfer is
from cpu to device.
the old DMACSR_READ bit is renamed DMACSR_SETREAD.  This is a control bit that tells
the dma transfer to be from cpu to device.
1999-08-28 09:19:04 +00:00
augustss
d0fbee34df Add a bunch of i810 devices. From Paul Shupak <paul@plectere.com>. 1999-08-28 09:18:08 +00:00
christos
4de82f14e2 check if vi recovery files are regular files before trying to e-mail them.
Stops a denial of service attack where the user can put a named pipe or
any other device that blocks i/o in /var/tmp/vi.recover/recover.*
[from dynamo@ime.net]
1999-08-28 03:39:59 +00:00
lukem
b6aa7d82bb shuffle some hats 1999-08-28 01:32:33 +00:00
thorpej
299c0b1d83 Regen. 1999-08-27 23:27:39 +00:00
thorpej
e1b0108ce6 Add Samsung Semiconductor KS8920 10/100 Ethernet. 1999-08-27 23:25:36 +00:00
perseant
fba239989f Added missing developers (some others may still be missing though) 1999-08-27 21:35:07 +00:00
mycroft
9a255f2ff2 Readd my change from fts.c rev 1.10, which was incorrectly removed in rev 1.19
(HI CHRISTOS!):
Avoid extra stat()s if a link count of 1 is returned for directories but the
d_type field is filled in.
1999-08-27 21:10:46 +00:00
ragge
a724cc71f4 Changes for 4000/90. 1999-08-27 20:05:08 +00:00
ragge
02470fb53a Support for 4000/90. 1999-08-27 20:04:32 +00:00
mycroft
4c9100d48f Adjust fts_pow2() for LP64 before Ross bricks me. 1999-08-27 20:02:14 +00:00
ragge
3c8bd07cd4 CPU support for 4000/90 (KA49). 1999-08-27 20:02:05 +00:00
ragge
c1eb799c3a Use interrupt stack for unexpected interrupts. 1999-08-27 20:00:24 +00:00
is
df8d07f87e Don't assume PHDS encoding for DIAGNOSE packets... we have to pass them
raw, if used at all.
1999-08-27 19:38:29 +00:00
is
d8c7407afe Factor out arc_storelladdr(), and use that instead of arc_ifattach() in
the bah_reset() function.
This makes the last change work without deconnecting all the other interfaces
from the interface list.
1999-08-27 19:23:19 +00:00
thorpej
456af6d558 Reduce the number of transmit fragments to 16. 1999-08-27 19:21:32 +00:00
thorpej
513feda9ab - Include the RXE (receive error) interrupt in the interrupt enable mask,
and consider it to be like an RCC (receive copy complete).  The RCC
  code path has always checked for bad received packets.
- Trim the CRC length off the recived packet length; the EPIC/100 always
  includes the CRC in the packet.
- Improve fatal error reporting.
1999-08-27 19:13:00 +00:00
mycroft
ea03e67f3c GC one line of unneeded code. 1999-08-27 18:33:29 +00:00
mycroft
6b91e1fa70 Fix the comment above fts_palloc().
Also, fail with ENOMEM if fts_pathlen would overflow, rather than silently truncating the
path.
1999-08-27 18:29:08 +00:00
mycroft
8db2a166f9 Avoid memory leaks when realloc() fails (by storing the return value in a temporary, and
testing it before assigning it; fts_close(3) will deallocate the old memory).
1999-08-27 18:26:34 +00:00
mycroft
b09ec9deb8 Fix multiple problems in the FTS_NOCHDIR case:
* There was an off-by-one error that caused the addition of a NUL or slash in fts_build() to
  overwrite other memory.
* After fts_palloc(), we need to reset `cp' so that it points to the new path name buffer;
  otherwise the addition of the file name before calling fts_stat() could lose.
Also, fix stupidity in the fts_palloc() interface.  We don't want N bytes more than the
current buffer size; we want N bytes more than the current length.  Just pass in the new
size, since we can't figure it out easily here.
1999-08-27 18:01:35 +00:00
ragge
1e07ecc873 Aupport these on 4000/90. 1999-08-27 17:50:42 +00:00
ragge
4fa4cc8160 Don't try to search for these devices on 4000/90. badaddr() should
be fixed for this arch also.
1999-08-27 17:49:41 +00:00
ragge
73dc3cea57 Rearrange the interrupt detection code to work on the (slightly
different) VAXstation 4000/90.
1999-08-27 17:45:57 +00:00
itojun
2cd3c05799 increment shlib minor for libwrap (0.0 -> 0.1). 1999-08-27 16:24:01 +00:00
itojun
5874d1fc54 conflict resolution after tcp_wrappers upgrade to 7.6. 1999-08-27 16:07:23 +00:00
itojun
b98c263379 resolve conflicts on upgrade (to 7.6). 1999-08-27 16:06:17 +00:00