Commit Graph

128166 Commits

Author SHA1 Message Date
tron ecde30ce9a Define "_ISOC99_SOURCE" when building under NetBSD to get the prototypes
for strtoll() and strtoull(). This fixes PR toolchain/26021.
2004-06-23 11:08:01 +00:00
dyoung bb016ff89a Only drain the transmit queue if we are idling the transmit section. 2004-06-23 09:41:54 +00:00
dyoung ff69458fef After we wait for the MAC's transmit section to idle, drain the
transmit queue and cancel the watchdog timer.  This ends the annoying
"atw0: transmit timeout" messages that disrupted my WiFi tonight.
2004-06-23 09:27:59 +00:00
dyoung 60565a3dfb Fix a commit-o: handle all cases in the switch-statement. 2004-06-23 09:05:50 +00:00
dyoung 4e2ccd85f7 The ADM8211C uses a different BBP type-number for RFMD parts than
the original ADM8211.
2004-06-23 08:13:29 +00:00
dyoung 7d226b79b8 Don't skip the reset! atw was not getting reset at device attachment.
atw seems to work better now that it gets this right: for one thing,
the RSSI can be seen to change as I walk around the office with my
laptop.

Thanks to Todd C. Miller for pointing out my mistake.
2004-06-23 08:12:28 +00:00
dyoung 1a4ea7342a Fix typo: change ATW_RFTYPE_RFMD and family to ATW_BBPTYPE_RFMD.
This does not make any functional difference: each manufacturer's
RF type-number is the same as its BBP type-number.
2004-06-23 08:05:01 +00:00
mycroft b15cb82a2d Further cleanup of toggle handling. Now that we use EHCI_QH_DTC, we don't
need to fiddle with the TOGGLE bit in the overlay descriptor, so minimize
how much we fuss with it.
2004-06-23 06:45:56 +00:00
mycroft dbee7a2507 In the "seemed like a good idea until I found the fatal flaw" department...
Attempting to read a maximum-size string descriptor causes my kue device to go
completely apeshit.  So, go back to the original method, but allow the device
to return a shorter string than it claimed.
2004-06-23 06:27:54 +00:00
jmc 3eb2232819 PR#26016. Fix 3.0->2.0 for NetBSD version 2004-06-23 05:33:36 +00:00
mycroft 1bce39942b Whoops, use the correct value for the maximum string descriptor length. 2004-06-23 05:23:19 +00:00
itojun 8bc0b4b95d escape from old-ALTQ and new-ALTQ difference 2004-06-23 04:38:43 +00:00
mycroft ef77780b63 Yes, some devices return incorrect lengths in their string descriptors. Rather
than losing, do what Windows does: just request the maximum size, and allow a
shorter response.  Obsoletes the need for UQ_NO_STRINGS, and therefore these
"quirks" are removed.
2004-06-23 02:30:52 +00:00
itojun 9ec960c351 add ftp-proxy from PF OpenBSD 3.5. adjust setlists 2004-06-22 22:19:36 +00:00
itojun 625efb1994 PF from OpenBSD 3.5 2004-06-22 22:11:14 +00:00
mycroft a20e630437 Fix an error in a debug printf(). 2004-06-22 22:00:11 +00:00
mycroft d7027450cd Update copyright. 2004-06-22 19:20:56 +00:00
mycroft d1a1c698b0 Do not force ATA_SINGLE on devices that don't support READ/WRITE MULTI. We
just have to take an interrupt for each sector.
Tested with one laptop disk (which normally runs in DMA mode and was forced
to single-sector transfers) and 3 CF cards.  Increases the performance of
the CF cards substantially (760KB/s->1240KB/s in one case, 410KB/s->750KB/s
in the other two cases).
2004-06-22 19:20:14 +00:00
jwise b89fa9ed33 Remove added SUBDIR+= settings from a developer's (hi itojun!) machine which
point to directories which do not exist (and are not wanted) in our source tree.

While we're here, was `libexec/spamd' approved for import?  It conflicts with the
name of a tool in pkgsrc which a _lot_ of developers and users of NetBSD are using...
2004-06-22 19:10:48 +00:00
martin 149fa38cf4 Make it compile on non-IPv6 kernels. 2004-06-22 18:59:14 +00:00
martin be9dcae132 Fix formatting for 64 bit archs. This fixes PR port-sparc64/26010.
While there, make it compile for non-INET6 aware kernels.
2004-06-22 18:37:49 +00:00
abs cb52ff7f22 Fix some interesting disklabel lossage:
If the input to 'disklabel' (non -i) referenced a partition two or more
larger than that permitted by npartitions it would error out with 'bad
partition name' (and the option given to re-edit if -e). If a partition one
larger was used it would be dropped from the disklabel with a warning and the
label written anyway! The (off by one) check for a bad partition name was
against npartitions anyway, rather than MAXPARTITIONS. npartitions was just
read from the disklabel and could have been set to an arbitrary value.

Given 'disklabel -i' sets npartitions automatically, make the normal case
check partition names against MAXPARTITIONS, and if necessary increase
npartitions to the size needed to hold the last partition used.

While here remove two 'write only' uses of a 'part' variable.
2004-06-22 18:32:45 +00:00
mycroft 7c3a6504d0 Adjust a couple of comments to make it clear WTF is going on. 2004-06-22 18:27:46 +00:00
itojun 3c9aef7cc5 additional files for pf 2004-06-22 18:24:06 +00:00
itojun 2a49c3efe7 install pf related files to /etc 2004-06-22 18:21:55 +00:00
christos b7c0da429e Make the previous diff match exactly the following commit from binutils head:
2003-08-23  Alan Modra  <amodra@bigpond.net.au>

        * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.

Thanks Ian for providing the diff!
2004-06-22 18:09:12 +00:00
mycroft 60208395fd Update comment. 2004-06-22 18:05:18 +00:00
christos 6ecf0e2cbe add a pfdetach() method to be used by lkm's 2004-06-22 18:04:32 +00:00
christos e287801e16 make this compile and fix error handling (does not load yet). 2004-06-22 18:04:05 +00:00
christos ab5ca5c5d6 Include ioctl's that don't have IO in their names [lkm ones eg.] 2004-06-22 17:30:52 +00:00
christos d6bf74cb9e Add a check for a non-null owner before dereferencing it. Fixes ld core-dumps
related to lkms.
2004-06-22 16:35:49 +00:00
mrg b83f6fa528 Add re; Realtek GbE. 2004-06-22 16:28:28 +00:00
itojun f7c9d7b3eb make spamd compile on netbsd 2004-06-22 16:04:40 +00:00
itojun c2d7a8642b spamd-setup, comes with PF for openbsd 3.5 2004-06-22 15:53:17 +00:00
itojun bf0f75e934 PF from openbsd 3.5 2004-06-22 15:46:46 +00:00
itojun 10c71795a1 build and install spamd(8) 2004-06-22 15:41:54 +00:00
itojun bd5c29bee3 add $NetBSD$ 2004-06-22 15:35:38 +00:00
itojun 779d0ec295 PF from openbsd 3.5 2004-06-22 15:34:26 +00:00
toshii 792bff8d3c Add re; Realtek GbE. 2004-06-22 15:31:38 +00:00
toshii a9b9fd4313 Add re; Realtek GbE. 2004-06-22 15:18:33 +00:00
itojun ad399b67b8 PF from openbsd 3.5
massage pfctl to compile/run on netbsd.  put reachover makefile for pfctl
into src/sbin.
reviewed by matt, perry, christos
2004-06-22 15:16:29 +00:00
toshii ef8af66f53 re(4) appeared in NetBSD 2.0. 2004-06-22 15:10:16 +00:00
itojun 9e6c9caf46 PF from openbsd 3.5 2004-06-22 15:06:49 +00:00
itojun 7ebcee1564 add pf manpage for installation 2004-06-22 14:58:41 +00:00
itojun 4a887d96a0 add $NetBSD$ 2004-06-22 14:34:58 +00:00
itojun d70f07f00c PF from OpenBSD 3.5 2004-06-22 14:33:10 +00:00
itojun ffe2ca6827 fix "includes" for pfvar.h 2004-06-22 14:29:45 +00:00
itojun 7ef0131ac7 PF LKM - not working (ld dumps core) because of the lack of my LKM knowledge.
committed to ask help from LKM guru.
reviewed by matt, christos, perry
2004-06-22 14:18:58 +00:00
itojun bfcdaa5766 PF from openbsd 3.5. missing features:
- pfsync (due to protocol # assignment issues)
- carp (not really a PF portion, but thought important to mention)
- PF and ALTQ are mutually-exclusive.  this will be sorted out when
  kjc@csl.sony.co.jp updates ALTQ and PF (and API inbetween)

reviewed by matt, christos, perry

torture-test is very welcomed.
2004-06-22 14:17:07 +00:00
itojun 596aec9a47 have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
2004-06-22 14:09:49 +00:00