Commit Graph

35486 Commits

Author SHA1 Message Date
fvdl
15c201069b Change ratecap to its presumably intended type of struct timeval. 2000-02-14 21:17:04 +00:00
augustss
b223c00cee Avoid linker error if no PHY is attached. 2000-02-14 20:29:54 +00:00
is
a90153e264 enlarge the initial kernel page table - needed for some 128 MB machine 2000-02-14 20:23:20 +00:00
thorpej
445e42d77a One small piece from UBC: create a pool for I/O buffers. One small piece
not from UBC: make physio use it instead of its own home-grown thing.
2000-02-14 20:12:02 +00:00
thorpej
144759ef2b Use ratecheck() for ICMP6 rate limiting. 2000-02-14 19:45:50 +00:00
thorpej
2649d26c0e Use ratecheck(). 2000-02-14 19:28:19 +00:00
pk
72252544f5 remove `flags' from sun4 zs declarations; the driver doesn't use it. 2000-02-14 18:08:38 +00:00
pk
5b285d9509 Just skip matching the slave' property against cf_unit'. 2000-02-14 18:07:37 +00:00
pk
1d373a94e2 Bump receive buffer size up to the maximum DMA burst boundary. 2000-02-14 17:14:28 +00:00
pk
a1b5434cec Make promiscuous mode go again. 2000-02-14 17:06:45 +00:00
tsubai
0b8b55beaf Add uninorth. Now iMac DV and Power Macintosh G4 should run NetBSD. 2000-02-14 14:57:52 +00:00
tsubai
2750c23cdd Add minimal support of openpic. 2000-02-14 12:45:52 +00:00
bouyer
085f44145c - Be more strict in status check before sending a command (make sure
DRQ is not asserted). Closes kern/9346.
- Change the "fake identify before the real one" by a delay(). The real cause
  of the problem is that the drive is unresponsive just after a reset.
  The real problem (and the solution) showed up after the first change.
2000-02-14 12:37:35 +00:00
scottr
042be92f6f Update for wscons. 2000-02-14 08:58:41 +00:00
scottr
2071e61796 Update for wscons. 2000-02-14 08:48:08 +00:00
jun
14af97fa26 add Sharp HC-1200 2000-02-14 07:22:19 +00:00
jun
2d09174cce regen. 2000-02-14 07:19:25 +00:00
scottr
8a00740789 Merge wscons work onto the main development branch. 2000-02-14 07:01:44 +00:00
jun
f009580118 add Sharp HC-1200 2000-02-14 06:55:36 +00:00
augustss
9558d7b27b Regen. 2000-02-13 23:10:22 +00:00
augustss
a39279da39 Add a bunch of devices. 2000-02-13 23:10:02 +00:00
tsubai
2aafd71ec7 Reduce NKMEMPAGES_MAX_DEFAULT. 2000-02-13 17:01:47 +00:00
ragge
520d8c032e Waked up from the dead 2000-02-13 13:01:14 +00:00
tsubai
90fe757934 Fix typo in comment. 2000-02-13 10:25:07 +00:00
itojun
99b18eac36 on attach, check if we've got meaningful mac address or not,
to detect io mapping problem.

on detach, handle resource deallocations more carefully.
2000-02-13 06:17:58 +00:00
tsutsui
2a3b53a229 Remove __BROKEN_CONFIG_UNIT_USAGE.
This has been fixed on news1200 merge.
2000-02-13 05:40:36 +00:00
mark
068fcab81e Enable rl ethernet device.
General tidy up.
2000-02-13 05:26:04 +00:00
mark
f43601877b Remove __BROKEN_CONFIG_UNIT_USAGE. 2000-02-13 05:20:45 +00:00
mark
d97d3dc6a5 Enable rl ethernet device and do some general cleaning up. 2000-02-13 05:19:40 +00:00
mark
7ef62e2b59 Remove unncessary cf_unit usage.
Make sure we only attach 1 of these devices.
2000-02-13 05:00:57 +00:00
mark
9316cea99d Remove unnecessary cf_unit usage. 2000-02-13 04:59:57 +00:00
oster
919df6690a Add support for / on RAID. A bit of a gross hack, but sufficient for now.
Note that this doesn't help you much until the RAID autoconfig code
in sys/dev/raidframe/rf_netbsdkintf.c is turned on.
2000-02-13 04:57:44 +00:00
oster
445591e874 Get recent changes into the tree:
- make component_label variables more consistent (==> clabel)
- re-work incorrect component configuration code
- re-work disk configuration code
- cleanup initial configuration of raidPtr info
- add auto-detection of components and RAID sets (Disabled, for now)
- allow / on RAID sets (Disabled, for now)
- rename "config_disk_queue" to "rf_ConfigureDiskQueue" and properly prototype
in rf_diskqueue.h
- protect some headers with #if _KERNEL  (XXX this needs to be fixed properly)
  and cleanup header formatting.
- expand the component labels (yes, they should be backward/forward compatible)
- other bits and pieces (some function names are still bogus, and will get
changed soon)
2000-02-13 04:53:57 +00:00
thorpej
9671588a30 Allocate the page buckets out of kernel_map, not kmem_map. Saves 16
or so kmem_map pages on a 32MB SPARCstation 2.
2000-02-13 03:34:40 +00:00
kristerw
952281e8fb Fixed a bug in the ATR parsing; If TA(i) was absent, then TA(i+1) was
used as TA(i) (and similary for TB(i) and TC(i))
2000-02-13 01:31:22 +00:00
augustss
0b2e81991d Avoid panic when a non-working hub is detached. 2000-02-12 23:44:16 +00:00
enami
84b6105bbe Check if device is active in wi_intr and wi_inquire. 2000-02-12 23:35:28 +00:00
kristerw
8ff64870d4 The T0 byte must not be included in the TCK calculation (ISO/IEC 7816-3
chapter 6.4.5)
2000-02-12 22:40:12 +00:00
ad
fc8ea8f0c5 Misplaced #endif. 2000-02-12 22:06:54 +00:00
augustss
d3fb7161d2 Regen. 2000-02-12 22:02:01 +00:00
augustss
b4fac8c7d0 Add Microsoft Internet Keyboard Pro. 2000-02-12 22:01:31 +00:00
ad
59748e7e55 Fix the unaligned accesses discovered by dbj. 2000-02-12 21:58:58 +00:00
thorpej
09943f0ffa G/c references to VM_KMEM_SIZE. 2000-02-12 20:57:12 +00:00
chopps
53e6733789 awi is an 8-bit only card, so set the 8bit flag. 2000-02-12 19:58:35 +00:00
thorpej
1268cc5d6c If we got an xfer from our backlog queue, don't allow sleeping; we're in
interrupt context.

XXX This is fixed properly in the thorpej_scsipi branch, but that won't
be ready for 1.5, I don't think.
2000-02-12 19:12:52 +00:00
thorpej
fc72b13d27 Const poison. 2000-02-12 19:05:55 +00:00
thorpej
fd4ed9b425 Typo (Thanks, Havard :-) 2000-02-12 18:00:00 +00:00
thorpej
46f7b67929 Small cosmetic change, and note a place where a statistic should be
gathered.
2000-02-12 17:45:44 +00:00
thorpej
312cb38ccb In the tcp_input() path:
- Filter out multicast destinations explicitly for every incoming packet,
  not just SYNs.  Previously, non-SYN multicast destination would be
  filtered out as a side effect of PCB lookup.  Remove now redundant
  similar checks in the dropwithreset case and in syn_cache_add().
- Defer the TCP checksum until we know that we want to process the
  packet (i.e. have a non-CLOSED connection or a listen socket).
2000-02-12 17:19:34 +00:00
ragge
8e114c7994 Nuke unused variable. 2000-02-12 16:09:33 +00:00
itojun
02bf7fcd13 add wi_detach and friends so that we can hot-swap wi card. 2000-02-12 16:08:04 +00:00
oster
edc931efea Make this compile without warnings on alphas.
(Problem noted by Aaron J. Grier)
2000-02-12 16:06:27 +00:00
ragge
918676c04f Remove __BROKEN_CONFIG_UNIT_USAGE. 2000-02-12 16:00:13 +00:00
ragge
539689da9d Remove another unneccessary reference to cf_unit. 2000-02-12 15:58:45 +00:00
ragge
c6471e4d9a Remove an unneccessary reference to cf_unit. 2000-02-12 15:48:34 +00:00
augustss
523d157a05 Regen. 2000-02-12 15:02:56 +00:00
augustss
a79d73d045 Add Corega FEther adapter. From PR 9394. 2000-02-12 15:02:21 +00:00
shin
e9c7fb4c36 change ramdisk size. 2000-02-12 13:48:46 +00:00
pk
19533212a5 Correct comments on KGDB_* entries. 2000-02-12 12:59:36 +00:00
pk
b518dc6dfc Eliminate much of the goo in setting up zs device addressing. 2000-02-12 12:51:03 +00:00
tsutsui
980ac3a9eb Fix typo. 2000-02-12 08:52:11 +00:00
enami
01868857df Add activate routine and check device active flag also in one second
tick handler.
2000-02-12 04:05:49 +00:00
enami
fbc47bda30 Cosmetic changes. 2000-02-12 03:55:49 +00:00
thorpej
5903e181fa Nuke NKMEMCLUSTERS. 2000-02-12 03:29:18 +00:00
shin
49ac0acd83 delete NKMEMCLUSTERS from configuration files. 2000-02-12 03:21:06 +00:00
mjacob
1b188ee2ff A lot of cleanup and shrinkage. Some items moved to isp_tpublic.h. 2000-02-12 02:33:34 +00:00
mjacob
55a78c1ee4 Add in 12160 (Ultra3) support. Turn back on fast posting for the new
generateion parallel SCSI cards (1240/1080/1280/12160). Split up nvram
reading routines to be more readable. Fix topology reporting- 2200 has
connected topology in mailbox 6 when you're done getting your loop id
(supported: Private Loop (NL Port), N-Port, F-Port, FL-Port). The 2100
doens't report this, but we can synthesize it to be either NL-Port or
FL-Port. Add in some connection mode async events.
2000-02-12 02:32:21 +00:00
mjacob
56e16448ad add in 12160 (Ultra3) related definitions 2000-02-12 02:29:00 +00:00
mjacob
9f63fdeefb add in 12160 (Ultra3) NVRAM definitions 2000-02-12 02:28:32 +00:00
mjacob
87355d841f add some Qlogic 2200 point-to-point and extended ICBOPT definitions 2000-02-12 02:26:26 +00:00
mjacob
50f2620822 add 80 MHz case 2000-02-12 02:25:28 +00:00
mjacob
3f96822c3b some minor cleanups 2000-02-12 02:24:20 +00:00
mjacob
63c56a9de6 add a more public shared i/f to target mode 2000-02-12 02:23:13 +00:00
mjacob
6eba47aa8f add (untested in NetBSD yet) Qlogic 12160 (Ultra3) suppot 2000-02-12 02:22:37 +00:00
mjacob
29f08cd82d add 12160 (Ultra3) microcode 2000-02-12 02:07:49 +00:00
kleink
3a09830119 printf format mismatch in DEBUG code (related to already fixed PR hp300/9388). 2000-02-11 23:00:47 +00:00
leo
d10190a70c Move the ite_default_* variables to ite.c. They are generic ite. 2000-02-11 21:42:52 +00:00
leo
39a8093c78 Remove redundant test. 2000-02-11 21:36:38 +00:00
leo
107405406d Oops! Both grfcc and grfet need the generic grfabs layer. 2000-02-11 21:35:42 +00:00
thorpej
dded044fc2 Update for the NKMEMPAGES changes. 2000-02-11 19:25:12 +00:00
thorpej
eb9cbbe294 Add some very simple code to auto-size the kmem_map. We take the
amount of physical memory, divide it by 4, and then allow machine
dependent code to place upper and lower bounds on the size.  Export
the computed value to userspace via the new "vm.nkmempages" sysctl.

NKMEMCLUSTERS is now deprecated and will generate an error if you
attempt to use it.  The new option, should you choose to use it,
is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and
NKMEMPAGES_MAX allow the user to configure the bounds in the kernel
config file.
2000-02-11 19:22:52 +00:00
is
9bf09631c6 Only output message on really special DEBUG kernels. 2000-02-11 19:09:56 +00:00
tsubai
d696094217 Change ICU_LEN to 64. 2000-02-11 13:15:43 +00:00
itojun
82b005364c don't increase both "no port on broadcast packet" and "no port" stat.
increasing both of them will result in negative number on udp
"delivered" stat on netstat(8), since netstat computes number of delivered
packet by subtracting them from number of inbound packets.
2000-02-11 10:43:36 +00:00
thorpej
dc80cc068b Move KERNBASE to 0xc0000000, giving the kernel a more-or-less full 1G
of virtual address space, leaving userland with 3G, and update comments
to match the new reality.

We knew we were going to have to bite this bullet eventually, and there
are a couple of outstanding PRs related to this issue (9389 and 9313).
Complete solution to those PRs is going to involve some sort of run-time
decision on how large kmem_map should be, as well as changing some data
structure allocation strategies in UVM.  However, this change will at
least allow the PR submitter to simply throw resources at the problem.
2000-02-11 07:00:11 +00:00
itojun
5d257be455 make assumption in rt_msg1 (len <= MHLEN + MLEN) explicit.
panic if not satisfied.
2000-02-11 06:11:03 +00:00
itojun
46dfa55555 fix in-kernel packet forwarding loop (till TTL becomes 0) when:
- a packet is delivered to an address X,
- and the address X is configured on my !IFF_UP interface
- and ipforwarding=1

NetBSD PR: 9387
From: nrt@iij.ad.jp
2000-02-11 05:57:58 +00:00
takemura
160bf15b09 Add com0's power control ID. 2000-02-11 03:20:17 +00:00
simonb
2db5581a4c Declare the mcclock_pad32_busfns variable as extern. 2000-02-11 02:36:16 +00:00
oster
255608f126 Add support for a "RAID" partition type. 2000-02-11 02:04:42 +00:00
thorpej
29ae6dbe05 We're given a K1SEG address already. 2000-02-11 01:32:42 +00:00
thorpej
5f9e257c5a Fix a couple of printf format botches. port-hp300/9388, Steve Peurifoy. 2000-02-10 23:02:16 +00:00
aymeric
dc0ce1249b fix interrupt handling
I still get lost interrupts on the A1200, but the problem is certainly
elsewhere (not in wdc_amiga).
2000-02-10 15:51:59 +00:00
itojun
ff0fe5df65 fix ip4 protosw.
gif interface and gre interface should be able to coexist.
2000-02-10 14:44:28 +00:00
tsubai
1dc2d9d399 Don't display "NetBSD disklabel". This message appears too many times
if more than two or three disks exist.
2000-02-10 12:33:45 +00:00
chopps
d8595b9af3 map common memory 8 bit for cis scan when following longlinks. 2000-02-10 09:01:52 +00:00
chopps
44b423d73b always map attr memory 8 bit, since its defined that way. 2000-02-10 09:00:19 +00:00
sato
18452e3667 - add GPIO related comments.
- add IBM WorkPad z50 buttons.
2000-02-10 08:45:44 +00:00
sato
709f6f50a2 show edge/level infomation in attach message. 2000-02-10 08:37:07 +00:00
sato
e19b30ff0a delete \n in cpu_model. 2000-02-10 08:34:08 +00:00
mjacob
9621e6be50 Reset maxstray count if we get a good interrupt for a level. 2000-02-10 07:45:43 +00:00
mjacob
13e13336b2 Allow (re)setting of maxstrays after establishment of a shared interrupt.
This allows sporadic stray interrupt counts to be reset by an acknowledgement
of the same interrupt.
2000-02-10 07:45:02 +00:00
mjacob
4821b5ae2f Guard against trying to disable an interrupt where we'd dereference a
bad pointer.
2000-02-10 04:31:36 +00:00
sato
1dd1e143a9 add machine model name to cpu_model. 2000-02-10 02:15:01 +00:00
sato
549e292ae4 update MINYEAR. 2000-02-10 02:06:16 +00:00
sommerfeld
d129ec5214 Fix typo in error message 2000-02-09 23:25:15 +00:00
aymeric
a10113c83a fix a couple of things to (hopefully) make this work on the A1200 2000-02-09 22:27:20 +00:00
joda
d40e2b51ee add detach code 2000-02-09 22:15:57 +00:00
sommerfeld
39db0e9c7e Three MULTIPROCESSOR + LOCKDEBUG fixes:
1) fix typo preventing compilation (missing comma).
2) in SLOCK_WHERE, display cpu number in the MP case.
3) the folowing race condition was observed in _simple_lock:
	cpu 1 releases lock,
	cpu 0 grabs lock
 	cpu 1 sees it's already locked.
	cpu 1 sees that lock_holder== "cpu 1"
	cpu 1 assumes that it already holds it and barfs.
	cpu 0 sets lock_holder == "cpu 0"
Fix: set lock_holder to LK_NOCPU in _simple_unlock().
2000-02-09 16:46:09 +00:00
enami
e00270524e ASIX AX88190 support (Planex FNW-3700-T and Melco LPC3-TX) from FreeBSD/PAO3. 2000-02-09 15:40:23 +00:00
enami
67bc20747a Support Xircom CompactCard Ethernet CFE-10. 2000-02-09 14:54:53 +00:00
enami
99f529f0b3 - Since all resources are mandatory, no need to manage individually.
- KNF some code.
- Factor out some code into function.
- Disestablish an interrupt handler when failed to enable card power.
2000-02-09 14:42:33 +00:00
takemura
968822bd48 The pwctl writes ZERO as on if active=0. 2000-02-09 14:39:06 +00:00
enami
dc87f2899f - No need to keep track enable/disable state here. The smc91cxx.c also
manages it.
- Disestablish an interrupt when failed to enable card.
- Don't say I'm enabled if failed to enable card.
2000-02-09 13:40:42 +00:00
enami
94a6dd9169 Regen. 2000-02-09 13:33:22 +00:00
enami
947c0fee74 Add an entry for Planex FNW-3700-T. 2000-02-09 13:32:23 +00:00
enami
e729d284ad Add an entry for Melco LPC3-TX. 2000-02-09 13:20:55 +00:00
tsubai
502ad73200 Add wsfont options. 2000-02-09 13:10:15 +00:00
tsubai
dcb9f03bd3 Use dev/rasops instead of dev/rcons. 2000-02-09 13:08:35 +00:00
enami
e92b285eaf Add an entry for Xircom CompactCard Ethernet CFE-10. 2000-02-09 13:07:45 +00:00
takemura
0694de05ed Fix Work Pad z50's entry. 2000-02-09 13:03:31 +00:00
tsubai
0867c09dad Change va_arg definition when __lint__ is defined. 2000-02-09 12:54:47 +00:00
itojun
19e9558eaf sync with extended scoped address syntax change. 2000-02-09 12:27:03 +00:00
sato
ad591b78f4 CLOCK_RATE: 256-> 128.
reduce timer interrupts because hpcmips machines are lower cpu power.
2000-02-09 10:41:18 +00:00
nisimura
9fb475bc29 Missing commit to reflect ioasicreg.h merge. 2000-02-09 08:37:43 +00:00
nisimura
43917001c7 - Add missing "opt_ddb.h" to dc.c and dtop.c (oh, boy)
- Nuke irrelevant "dcvar.h" and "tc.h" inclusion from dc.c
- Put '#if NRASTERCONSOLE > 0' around scc_lk201_cnattach().
2000-02-09 08:29:40 +00:00
itohy
0a1d6b1357 Make it compile with options DEBUG.
Reported by Kawamoto Yosihisa (PR #9379).
2000-02-09 07:57:52 +00:00
shin
7f5a7c00ac fix include file.
<netinet6/ip6.h>	->	<netinet/ip6.h>
2000-02-09 05:48:26 +00:00
itojun
53e333c935 honor ifa reference counting. 2000-02-09 03:34:01 +00:00
itojun
541b446bfa for more strict rfc2367 conformance, move netkey/keyv2.h into net/pfkeyv2.h
(net/pfkeyv2.h used to just include netkey/keyv2.h).

netkey/keyv2.h includes #error only for several days, to inform
of file path change.  after that I plan to nuke the file.
2000-02-09 03:27:29 +00:00
thorpej
f9e531f1e4 Don't force BWX on Pyxis by default; it's just not reliable enough. 2000-02-09 01:39:20 +00:00
itojun
59d74f3d21 to improve RFC2553/2292 compliance, and promote use of
RFC2553/2292-compliant header file path, now the following headers are
forbidden:
	netinet6/ip6.h
	netinet6/icmp6.h
	netinet6/in6.h

if you want netinet6/{ip6,icmp6}.h, use netinet/{ip6,icmp6}.h.

if you want netinet6/in6.h, you just need to include netinet/in.h.
it pulls it in.
(we may need to integrate them into netinet/in.h, but for cross-BSD code
sharing i'd like to keep it like this for now)
2000-02-09 00:54:55 +00:00
itojun
4f53db2499 optimize mbuf allocation for ip/tcp/tcpopt part. 2000-02-09 00:50:40 +00:00
thorpej
ec02ebc8a0 Adjust for IOASIC register changes. 2000-02-09 00:33:03 +00:00
tsubai
a62753d0b7 Make OF-2.x can also find root device. 2000-02-08 20:02:13 +00:00
augustss
76c14cd322 Don't stall the control pipe on error. 2000-02-08 18:46:03 +00:00
augustss
e922214fb2 Use NULL instead of 0. 2000-02-08 18:45:27 +00:00
thorpej
3bc7ce8d31 Cast bus_size_t to u_long for printing. 2000-02-08 18:40:51 +00:00
tron
73286f8d56 Fix printf() format string. 2000-02-08 18:31:02 +00:00
mycroft
2a2d421881 Forgotten part of chopps\'s i82365_isasubr.c commit. 2000-02-08 17:56:58 +00:00
mycroft
ac0db48a13 In light of the previous change, whack the clearing of CSC_INTR
again.
2000-02-08 17:53:48 +00:00
mycroft
eb071839ea The final read of the CSC register does not appear to be needed any
more.
2000-02-08 17:48:39 +00:00
chopps
d12c4012f1 deal with loops that we get stuck in due to unhandled interrupts. 2000-02-08 17:14:29 +00:00
mycroft
5abb516b1e Be more careful with the CSC_INTR register while probing.
Make some output more specific.
2000-02-08 16:59:52 +00:00
bouyer
f522d6f1ee Supports "USR 3CP5609 PCI 16550 Modem", from Kent Polk. 2000-02-08 16:26:23 +00:00
bouyer
b3cffb232f regen 2000-02-08 16:24:00 +00:00
bouyer
b614c6a569 Add US Robotics vendor ID, and USR 3CP5609 PCI 16550 Modem product ID.
From Kent Polk.
2000-02-08 16:22:37 +00:00
jdolecek
e20ce57cd6 Store also attribute identifier in the filehandle structure, so that
proper file attribute (a.k.a. "resource fork") is picked up when
the filehandle is mapped back to filesystem object.

This should make attributes working on NFS-exported NTFS filesystems
or other layered filesystems using filehandles.
2000-02-08 16:17:58 +00:00
tsutsui
6968a454bd Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
2000-02-08 16:17:28 +00:00
tsubai
b933f19ea2 Flush cache before rebooting to preserve msgbuf. 2000-02-08 12:57:11 +00:00