Commit Graph

26476 Commits

Author SHA1 Message Date
eeh
08af05f929 Fix 32-bit gcc scheduling problems. 1998-11-13 03:47:15 +00:00
thorpej
0e3a0a7f80 Once a fragmented IP packet has been reassembled, recompute the packet
length before passing it up the stack.  From FreeBSD.
1998-11-13 03:24:22 +00:00
mhitch
7b16048c5a Fix the Right-Shift on the LK501 keyboard in a different way. My previous
attempt results in the up and down arrows not repeating in the X server.
The keyboard division table is modified to place the Right-Shift keycode
into division 6 along with the Left-Shift and Control.  A corresponding
change to the X server lk201 keyboard handler is also required.
1998-11-13 01:59:51 +00:00
thorpej
de234f5dda Pseudo-device definition and files for RAIDframe, CMU PDL's RAID 0, 1, 4, 5,
6 implementation + simulator.

From Greg Oster <oster@netbsd.org>.
1998-11-13 01:16:19 +00:00
thorpej
17bfc42d6d Add DTYPE_RAID. 1998-11-13 01:05:51 +00:00
thorpej
d272bb0024 Handle the case where ccdbuffer() fails due to memory shortage. Build
a fifo of component buffers, and free them if ccdbuffer() fails.  Once
all component buffers are build, run through the fifo and fire off the
requests to the components.
1998-11-13 01:00:15 +00:00
thorpej
092c201932 Simplify calling of ccdbuffer() now that the mirroring code is nuked. 1998-11-13 00:35:57 +00:00
thorpej
ab27c3f89c Return EINVAL if invalid flags are passed. 1998-11-13 00:31:02 +00:00
thorpej
00172c10d5 Nuke the mirroring code. RAIDframe is about to go in, and is a much
better mirroring solution.

The ccd driver will stay, even in the presence of RAIDframe, for applications
where just RAID-0 is needed (much smaller code footprint).
1998-11-13 00:26:19 +00:00
thorpej
b6ac7c9b6b Must use PR_NOWAIT when allocating component buffers. 1998-11-12 22:39:57 +00:00
fvdl
fb1a849339 Use different names for the "nfscon" label to tsleep(), so that it can
be seen in which one a process is sleeping.
1998-11-12 22:31:02 +00:00
rvb
b148b1ea84 Oops, I didn't mean to let that last commit get out. Though
maybe Havard should look at the changes (to make INSTALL smaller)
and see if any are general/reasonable for everyone.
1998-11-12 21:51:02 +00:00
thorpej
05c4e40b41 defopt the APM options. 1998-11-12 21:32:16 +00:00
rvb
7f2a4a5331 Perry said I should ... enable pms0 for GENERIC 1998-11-12 21:12:34 +00:00
thorpej
1fcae7f1be defopt FFS_EI 1998-11-12 19:51:10 +00:00
christos
e78e086623 change the id arg of ftok from char to int. 1998-11-12 16:15:45 +00:00
christos
551ff5c2a0 use one define per static array instead of defining all three with DKTYPENAMES 1998-11-12 15:52:21 +00:00
bouyer
56107b8e10 Force PCI_COMMAND_MASTER_ENABLE if DMA has been setup properly. The BIOS is
supposed to do it but who knows ...
1998-11-12 15:05:29 +00:00
drochner
a16b0cc7db regen 1998-11-12 14:09:20 +00:00
drochner
0c0b302fba -add an NE2000 clone, info from PR kern/6430
-add comment for PCNET/isapnp (ID is vendor specific)
1998-11-12 14:06:34 +00:00
ws
99d394c267 Typo 1998-11-12 14:00:06 +00:00
mycroft
8146c925da If we get a TX interrupt with no packets buffered, ignore it. This can occur
if the chip is reset while transmitting.

XXX
This occurs at boot time because the SIOCADDMULTI always resets the interface
when adding the `all hosts groups' -- usually while the ARP packet is being
transmitted.  All drivers should be fixed to not reset the interface when
changing the multicast filter, if possible.
1998-11-12 13:18:26 +00:00
mycroft
b8974fbf40 Fix yet another bogon in the multicast filter calculation. 1998-11-12 13:03:51 +00:00
thorpej
b29c33e2a0 Update for the new state of the world: pciide, wscons, and a slight
change in how PCI-Host bridges are matched.
1998-11-12 01:04:06 +00:00
tron
76a221aca5 Sync with "GENERIC". 1998-11-12 00:57:29 +00:00
thorpej
ad77ef01b4 Add kern/kern_kthread.c 1998-11-11 22:46:32 +00:00
thorpej
920a1ace5b fork_kthread() -> kthread_create(). Set P_NOCLDWAIT on kernel threads,
which will cause any of their children to be reparented to init(8) (which
is already prepared to wait out orphaned processes).
1998-11-11 22:45:32 +00:00
thorpej
a0fac8a7bc Move fork_kthread() to a new file, kern_kthread.c, and rename it to
kthread_create().  Implement kthread_exit() (causes a thrad to exit).
Set P_NOCLDWAIT on kernel threads, which will cause any of their children
to be reparented to init(8) (which is already prepared to wait out orphaned
processes).
1998-11-11 22:44:24 +00:00
thorpej
04dc9a8878 Remove some code accidentally readded when Christos implement P_NOCLDWAIT. 1998-11-11 22:37:13 +00:00
veego
17509cc037 Add the Ariadne II. 1998-11-11 22:28:32 +00:00
veego
1449b87b11 New driver for the Ariadne II. 1998-11-11 22:26:27 +00:00
is
6b1ed04840 Correct the calls (use AllocVec() and FreeVec()),
in case somebody ever needs free().
1998-11-11 21:43:18 +00:00
mjacob
c0782a3653 more printf cleanups 1998-11-11 21:40:38 +00:00
is
f02a3ccb3e Switch off the cache later.
Apparently, this avoids a problem on DraCos with HyperCom boards.
1998-11-11 20:57:33 +00:00
bouyer
1e71e76d6c - clearify the boot messages (features supported vs features used). Thanks to
Havard Eidnes for his complains about this :)
- fix some typo in comments
- hoppefully better detection of drives reporting bogus PIO modes.
1998-11-11 19:38:27 +00:00
rvb
b951d6c0cd Lookup now passes up an extra flag. But old veni will
be ok; new veni will check /dev/cfs0 to make sure that a new
kernel is running.
Also, a bug in vc_nb_close iff CODA_SIGNAL's were seen has been
fixed.
1998-11-11 19:22:08 +00:00
ws
18f9174133 Some BIOSs insist on patching the Bios Parameter Block for some drives
(e.g. LS-120).  Make room for this.
1998-11-11 16:46:38 +00:00
matt
3e6d4553d9 Make DHCP/BOOTP the default for VAX net booting 1998-11-11 15:49:02 +00:00
thorpej
cabecee13c Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:43:49 +00:00
thorpej
49c62c4336 Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:41:23 +00:00
thorpej
6956a57584 Initial version of API for creating kernel threads (likely to change somewhat
in the future):
- New function, fork_kthread(), takes entry point, argument for entry point,
  and comment for new proc.  May be called by any context, will fork the
  thread from proc0 (requires slight changes to cpu_fork()).
- cpu_set_kpc() now takes a third argument, a void *arg to pass to the
  thread entry point.  Thread entry point now takes void * instead of
  struct proc *.
- Create the pagedaemon and reaper kernel threads using fork_kthread().
1998-11-11 06:34:43 +00:00
nisimura
8ed3c420dc - Withdraw a duplicated file. This has never been a part of distribution. 1998-11-11 05:00:42 +00:00
eeh
f66c79c11e Turn off debugging. 1998-11-11 02:04:23 +00:00
eeh
bef3f7ec18 FCode bootblock and friends. 1998-11-11 01:57:32 +00:00
dbj
277322402c Sync'ed more files and routines with mvme port in prepartion for UVM.
Now use generic m68k cachops everywhere rather than defining them in locore.s
1998-11-10 22:45:44 +00:00
bouyer
5f9fa9aaaa Add and enable the pciide driver. 1998-11-10 14:09:15 +00:00
scottr
610fe40379 Only allow access to physical RAM. 1998-11-10 07:29:59 +00:00
thorpej
1a5d2ce537 File is obsolete. 1998-11-10 05:56:31 +00:00
mark
85d4fddd28 Use the footbridge pci bus space tags when attaching a vga console so
that the wscons code will recognise them later and correctly setup
cn_tab when the wsdisplay device is attached.
1998-11-10 04:34:05 +00:00
mark
c082b04018 Implement a separate function to set up the pci io and mem bus space
tags.
1998-11-10 04:32:03 +00:00
mark
e695fe5347 Implement bus_space_copy_region_2() for footbridge tags. 1998-11-10 04:29:21 +00:00
matt
1b8620b9fb Cleanup media set on Alpha. ring txpoll after setting proper tx
interrupt mask.
1998-11-09 23:41:14 +00:00
thorpej
a1b2be7e1d Const poisoning. 1998-11-09 23:12:48 +00:00
thorpej
9f20ff377a Make the device lookup table-driven, like if_ep_pci.c. 1998-11-09 23:12:18 +00:00
rvb
e7f0c5989f Change the way unmounting happens to guarantee that the
client programs are allowed to finish up (coda_call is
forced to complete) and release their locks.  Thus there
is a reasonable chance that the vflush implicit in the
unmount will not get hung on held locks.
1998-11-09 16:36:16 +00:00
frueauf
a894e3a493 Add braces to make egcs happy. 1998-11-09 15:53:51 +00:00
frueauf
b6576d4d72 fix typo: nativ_to_hpux_errno -> native_to_hpux_errno. 1998-11-09 15:35:16 +00:00
kleink
4aeff0488e Need <sys/featuretest.h> for previous commit's use of _POSIX_C_SOURCE to work
as expected.
1998-11-09 13:00:41 +00:00
bouyer
432a301fc6 Support for the CMD PCI064{3,6}. Tested on a 0646 with a
"wd0: PIO mode 4, DMA mode 2, UDMA mode 2" device.
1998-11-09 09:21:09 +00:00
msaitoh
21e1b057bc Sorry, I forgot to revert "#if 0". 1998-11-09 07:01:47 +00:00
mrg
9e2545068d compat_ultrix wants MSG_COMPAT/COMPAT_OLDSOCK: don't depend on COMPAT_43 1998-11-09 04:01:55 +00:00
nisimura
9d716ec821 - Fix many errors in cursor image manipulation. Hardware expect 2
bit/pixel format, not planer format.  Assign MSB for cursor mask and
LSB for cursor image, where 10 means mask color and 11 for image color.
Image bit order of Bt431 and Bt459 are opposite to MIPS/Alpha processors
while IMS G332 and DC503 (PCC) are indentical.
- Assume that cursor images are 32 pixel padded as ULTRIX/DU ws interface
do.  It's natural to X server.
- XXX Vast majority of codes are duplicated between mfb<->tfb and cfb<->sfb.
Code sharing might be achieved in the context of TGA/SFB+ merge.
1998-11-09 03:58:05 +00:00
mycroft
d4026f6eb5 GC the B_CACHE bit. 1998-11-09 01:18:34 +00:00
veego
2749e8b74a We don't need the pci headers here. 1998-11-08 22:02:25 +00:00
is
9916260262 - declare method arrays in bus.h
- add interleaved_wordaccess method array
1998-11-08 21:09:27 +00:00
mycroft
967a4693f2 Set the B_NOCACHE bit so that NFSv3 will not try to do async writes. 1998-11-08 19:45:17 +00:00
mycroft
7c037b7009 Clear B_NOCACHE when we're done with the buffer -- although this is probably
pointless.
1998-11-08 19:41:49 +00:00
mycroft
6422baa1c0 Set the B_NOCACHE bit so that NFSv3 will not try to do async writes. 1998-11-08 19:37:12 +00:00
mycroft
36918f312f Rework cluster_rbuild() to use buffers with the file system block size.
From Alasdair Baird.
1998-11-08 18:18:31 +00:00
mycroft
6957bd875c Do not permit the u area for nfsd or nfsiod to be swapped out. 1998-11-08 15:57:44 +00:00
fvdl
d878e9efc8 Rely on priority match to resolve conflict with the ex driver, not on
a define.
1998-11-07 23:06:26 +00:00
is
ba74edf69b Fix typo. 1998-11-07 22:50:25 +00:00
is
fd3b226223 We didn't really implement bus_space_{read,write}_stream_N, but
bus_space_{read,write}_region_stream_N. Correct the names.
1998-11-07 22:44:36 +00:00
ragge
f040374f11 Support for KA820 console RX50. From 4.4, ported to NetBSD by Sergey Svishchev. 1998-11-07 20:58:09 +00:00
drochner
1f23f4e047 add poll entry for (optional add-on) i4b raw device 1998-11-07 17:28:57 +00:00
ragge
b6158fa5e3 EGCS fixes. Implement htons as a C macro instead of asm; generates as
good code as the asm implementation _and_ can be optimized.
1998-11-07 17:22:58 +00:00
drochner
f213d2f96a use common code for extended capability (power management)
let "match" return 2 (> ep_pci)
1998-11-07 16:53:19 +00:00
drochner
bbe9d71415 add support for "extended capabilities" (new in PCI spec 2.2) 1998-11-07 16:47:22 +00:00
mrg
7c0d69c3ab minor KNF nits 1998-11-07 05:50:19 +00:00
jonathan
cdd3abe7a9 Pull MBR-scanning code and NetbSD-partition-finding into a separate
function, rathe than duplicating in readdisklabel() and writedisklabel().

XXX should really  make MBR code MI, and share with other MBR-using ports
(e.g., arc, arm32 MBR label-scanning code).
1998-11-07 04:39:03 +00:00
jonathan
a581370fce apply previous change to writedisklabel() as well as readdisklabel(). 1998-11-07 01:30:57 +00:00
jonathan
45aa097296 Change COMPAT_386BSD_MBRPART: don't break on match, so that if there's more
than one DOSTYP_386BSD partition, we pick the last one, not the first.
That's what our install tools do/did with multiple ID-165 partitions.
1998-11-07 01:08:00 +00:00
cgd
515148e0a3 cast arg to dbtob to u_quad_t; consisent, and fixed size unnecessary 1998-11-06 23:03:06 +00:00
cgd
af24dfc946 argument to dbtob needs to be cast to u_quad_t here to avoid shift lossage 1998-11-06 23:02:12 +00:00
tron
63b722221a Sync with "GENERIC". 1998-11-06 20:29:52 +00:00
is
23c04fa375 Add color debug code for DraCos. 1998-11-06 20:08:20 +00:00
mhitch
010e90e0ca Cursor position offsets need different values for an sfb board with an
alternate clock that does lower resolution.
1998-11-06 03:53:40 +00:00
mhitch
a7f70a5fbc Fix problem when using non-DEC CDROMS with blocksize other than 512 bytes.
This got lost when disk geometry processing was updated.

Also move the CDROM check from rzread() to rzwrite() - it doesn't make
much sense to report a read-only filesystem error when trying to read a
CDROM.
1998-11-06 01:59:25 +00:00
jonathan
fb020850a0 Increase compiled-in default bpf buffer size from 4096 to 8192.
(the libpcap API provides no way to resize the inkernel buffe,r and
4096 is too small to capture maximum-sized FDDI frames.)
1998-11-05 22:50:15 +00:00
kenh
e58cf6b359 Add definitions for the ATA power management commands 1998-11-05 22:49:09 +00:00
erh
bda913305b Make sure the interpreter string is long enough to check against. 1998-11-05 22:19:25 +00:00
ragge
fbed93d50d EGCS fixes. 1998-11-05 19:48:04 +00:00
ragge
bee167375f EGCS fixes + TU81 fix. 1998-11-05 19:47:20 +00:00
ragge
3467859667 EGCS fixes. 1998-11-05 19:46:18 +00:00
mellon
3cc58a69cc Fix a signed/unsigned thinko (this is cgd's fix) 1998-11-05 15:59:00 +00:00
frueauf
b1122614c3 Add braces to make egcs happy. 1998-11-05 14:13:59 +00:00
frueauf
03c64513e6 hpux_error.c got removed, add hpux_errno.c instead. 1998-11-05 12:42:46 +00:00
tsubai
1bf603b543 Sync to mac68k. 1998-11-05 11:46:07 +00:00
msaitoh
37bbf03777 fix pcic_chip_socket_enable() to works on more machines. 1998-11-05 07:55:48 +00:00
thorpej
2b695df1dc Common code for media-from-bmcr. 1998-11-05 04:08:01 +00:00