Commit Graph

132450 Commits

Author SHA1 Message Date
ginsbach e736e1e0c5 Dead code clean up:
* The function speed(), imported from 4.4BSD-Lite2, has never been
  used by NetBSD.  Obtained from FreeBSD.
* Finish removing -L (litout) option.  This has not been supported
  since rev. 1.5 (NetBSD 1.0).  The option still appeared in the
  usage and man page.  Obtained from FreeBSD.
* In function doit(), dead code imported from 4.4BSD-Lite2, dealing
  with termios.  NetBSD cracked this nut differently long before this
  import.  Obtained from FreeBSD.
2004-12-21 02:39:00 +00:00
dyoung aecae5f227 Realtek sample sources are not consistent about the "Digital PHY"
bit in the SROM.  It seems as if it is set to 1 when the PHY is
*analog*, not *digital*.  Fix my sources.

In rtw_intr_rx, use units of 500kb/s instead of 100kb/s for rate,
to be consistent with net80211's expectations.  Polish up some
debugging ugly messages.  Dump raw 802.11 packets if IFF_DEBUG|IFF_LINK2
and RTW_DEBUG is defined.

Polish power-state (on/sleep/off) handling.  Especially improve
support for RFMD (totally untested) and Maxim.  For Philips, take
the Digital PHY property into account.

Call the net80211 watchdog function from rtw_watchdog, so that we
scan again if auth/assoc fails.

Be a little more cautious about writing register[RTW_TPPOLL], since
other drivers are....  Don't frob the high/low-priority queues
right now, since I don't use them.

Add rtw_join_bss which programs the card with the BSSID and other
properties of a BSS.  Use it on state transitions.  Factor out
rtw_set_nettype.

Make rtw_recv_beacon call ieee80211_recv_mgmt instead of dropping
beacons on the floor!  TBD IBSS merges.

Change some rtw_debug=2 printfs to rtw_debug=3 (RTW_DPRINTF3)
printfs so the console doesn't get spammed so badly at rtw_debug=2.
Change some debugging printfs to RTW_DPRINTFs.  E.g., print the
"RF programming method" only if debugging is enabled.
2004-12-20 23:05:41 +00:00
dyoung 9f2359d605 ifconfig -v prints 802.11 statistics. ifconfig -v prints and zeroes
802.11 statistics.
2004-12-20 23:04:55 +00:00
dyoung 8fff1555a5 Add SIOCG80211ZSTATS to atomically get/clear 802.11 statistics.
Protect SIOCG80211STATS with splnet()/splx() so that it takes a
"snapshot" of the 802.11 statistics, which is superfluous if
ieee80211_ioctl is always called at splnet()....
2004-12-20 23:03:39 +00:00
dyoung f7e41a32b4 Don't be so noisy at boot unless debugging is enabled. 2004-12-20 21:05:34 +00:00
jmc 2406596e11 Refactor the filesystem specific portions out of makefs.c/makefs.h completely.
Instead of extending fsinfo_t it now holds a void * to file system specific
data. This is then setup/cleaned up by the additional of 2 additional
callbacks. Makes adding new filesystems simpler as almost no code has
to be updated in the generic makefs code now.
2004-12-20 20:51:42 +00:00
christos f1a325d103 Unbreak setuserpath(); from Nick Hudson. 2004-12-20 18:42:03 +00:00
christos 28d516ffbc revert previous while discussion is still in progress 2004-12-20 18:33:53 +00:00
christos a355909543 revert previous change while discussion is in progress 2004-12-20 18:32:46 +00:00
christos da6f1ded1d revert previous change while discussion is in progress. 2004-12-20 18:30:26 +00:00
hubertf 0f0617751e Add comment that there are strings attached to the fish. Beware!
(Source: http://www.livejournal.com/community/unixhistory/1808.html)
2004-12-20 10:28:47 +00:00
dsainty 555352630f Correct typo in an error message: allocatior -> allocator 2004-12-20 08:20:50 +00:00
itojun 2fdfeb359f RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.
2004-12-20 03:50:04 +00:00
dbj 9b0bad335a use #if defined(_KERNEL_OPT) around opt includes
fix arg to pool_init() when _LKM is defined
2004-12-20 03:12:20 +00:00
dyoung b9ff79c840 Fix bug in last commit: use &sc->sc_regs, regs is not defined. 2004-12-20 01:28:24 +00:00
dyoung aa6694402c Add some bus barriers. Remark where they are needed, e.g.,
read_eeprom.

Change some printfs to RTW_DPRINTF2s to quiet rtw(4) when debugging
is disabled.
2004-12-20 01:13:45 +00:00
dyoung 263bfa8e84 Get rid of the silly char (*dvname)[IFNAMSIZ] pattern. Replace it
with const char *dvname.  I'm not sure what I was thinking.
2004-12-20 00:28:02 +00:00
dyoung 3c88b36364 Assert that I'm DMA-syncing a non-negative number of transmit
descriptors.

As I free dirty transmit buffers, move them to the free list, not
back to the dirty list!

Add a 5-second transmit timeout.
2004-12-20 00:16:21 +00:00
tsutsui 6ae65cb555 Move two entries about hp300 fixes which were pulled up to 2.0
from CHANGES to CHANGES.prev. (sorry for late fix)
2004-12-19 14:42:19 +00:00
yamt bc7b47989b a bug fix from OPENBSD_3_6.
> revision 1.2.2.1
> date: 2004/12/17 02:51:35;  author: brad;  state: Exp;  lines: +2 -2
> MFC:
> Fix by frantzen@
>
> &&/|| inversion would try to merge IP addresses with non-addresses into a
> single table causing a ruleset load error and eventually a double-free.
>
> ok deraadt@ mcbride@ henning@ frantzen@ dhartmei@
2004-12-19 10:27:46 +00:00
dyoung 38e3126fe5 Add the transmit section of rtw(4): build up and tear down transmit
descriptor rings, move packets from the transmit queues to the
transmit rings, handle transmission-completed interrupts.  My
Linksys WPC11 ver. 4 with Maxim RF, generates interrupts like it
is successfully transmitting packets.  Clearly there are bugs: my
G4 Powerbook locks up hard.  I will debug tomorrow.
2004-12-19 08:19:25 +00:00
dyoung 31815c9d7a Remove from atw(4) all of the 802.11 duration #defines that I just
moved to sys/net80211/ieee80211.h.
2004-12-19 08:09:23 +00:00
dyoung 81eefc6f1a Define for more bits in the Service field of the 802.11 PLCP Header.
For use by the subroutine ieee80211_compute_duration, add struct
ieee80211_duration, and #define a number of microsecond constants
used for the transmit timing of 802.11 packets.

Add the subroutine ieee80211_compute_duration, which computes for
any packet the appropriate 802.11 Duration field, the PLCP Length
field, as well as the Duration and Length fields for an RTS frame.

atw(4), rtw(4), future drivers, and possibly ath(4) will share
ieee80211_compute_duration.
2004-12-19 08:08:06 +00:00
christos 77e7bdb8aa yamt's changes seem to fix all the checksumming issues. Turn the loopback
checksums back off so we can make sure that everything works.
2004-12-19 06:42:24 +00:00
jmc 225a67ff79 Preface all the calls to move-if-change with $SHELL so it's not depending
on execute permissions on files from CVS
2004-12-18 17:49:22 +00:00
yamt ea04ddb694 udp6_input: correct loopback test. 2004-12-18 15:31:26 +00:00
xtraeme 5f19bd62b5 regen 2004-12-18 11:55:02 +00:00
xtraeme e4e6ec7dae + ATI Technologies Radeon 9600 XT 2004-12-18 11:54:03 +00:00
christos b30695cd1d Use the array of dtype names instead of hand-rolling our own. 2004-12-18 08:43:35 +00:00
christos a21d3f17b5 Add an array of dtype names. 2004-12-18 08:43:08 +00:00
yamt 6e353db6e4 tcp_input: add missing loopback checksum omission code for ipv6. 2004-12-18 07:30:17 +00:00
christos 7c9f4b5736 I don't think that the vgone() in vop_inactive is needed; in fact it might
be the source of my deadlocks.
2004-12-18 05:26:41 +00:00
christos bc38b3fdb0 Define debug-printing arrays next to their respective enums/bit definitions. 2004-12-18 03:08:48 +00:00
christos 91a90a7c68 - Move string array definitions and bitmap array definitions to the appropriate
header files, so that they don't become out of sync (again).
- Use bitmask_snprintf() instead of hand-rolled code.
- Always check array bounds before dereferencing print arrays.
- Order arguments in the vnode printing functions consistently.
2004-12-18 03:07:40 +00:00
sekiya d7a784e1a7 Recognize mec as a valid netboot device. Add IP12 to the wdsc comment. 2004-12-18 00:51:30 +00:00
sekiya 523a6664f4 Nuke MIPS64; we'll use MIPS3 to indicate the presence of MIPS3 instructions
and _LP64 to indicate that 64-bit is desired.

Pointed out by simonb@
2004-12-17 22:59:49 +00:00
christos 60fb5c0ece Turn checksumming on loopback back on until we fix the bugs in it.
Connect over tcp on the loopback is broken:

  4729 amq      0.000007 CALL  connect(4,0x804f2a0,0x1c)
  4729 amq      75.007420 RET   connect -1 errno 60 Connection timed out
2004-12-17 22:54:52 +00:00
shige cef61c32cd X1226 RTC is connected to IBM405GPr On-chip IIC(I2C).
These files were already moved to sys/dev/i2c.
We don't need these files.
2004-12-17 19:41:04 +00:00
shige eb555844f1 Substitute PPC405_ with PPC_IBM405_. 2004-12-17 16:23:57 +00:00
wiz 99a942347a Bump date for SMC2642W support. 2004-12-17 12:18:43 +00:00
cube 6717eabf3a ETHFOO_GOING had no chance to actually be useful if sc_flags is set to 0
in ethfoo_dev_close().
2004-12-17 12:17:09 +00:00
mycroft ac7236712a ELF32_ST_TYPE -> ELF_ST_TYPE 2004-12-17 10:53:27 +00:00
gson 6474041d15 Add the SMC EZ Connect 11M Wireless CF Card SMC2642W to the list of
supported cards.
2004-12-17 09:21:44 +00:00
briggs 38ffdc4f30 Back out part of previous. OF_open() works fine with /chaos/control, but
is a bit picky about interrupts.
2004-12-17 05:44:12 +00:00
briggs 78776b6678 - Avoid looking for lost interrupts when recalculating interrupt priorities.
- Use atomic_setbits_ulong() for softintr().  Thanks to Tim Kelly for
  reminding me about atomic_*.
2004-12-17 05:42:30 +00:00
atatat 2971543eb5 Pass dynamic buffer pointer to display_string(), not static buffer
pointer.  Causes...misfunction if the kernel says the buffer needs to
be too much larger.
2004-12-17 05:03:03 +00:00
yamt f4221aaaf6 revive spec vop_bwrite as it's needed for block devices.
PR/28684 from Jukka Salmi.
2004-12-17 03:31:20 +00:00
is 80dd3cea87 new world order 2004-12-16 21:51:04 +00:00
wiz c54f10d8b4 Use more markup. Sort sections. 2004-12-16 17:29:55 +00:00
tron bdfdbe0a88 Remove "tmpdir" in "cleandir" target. 2004-12-16 17:10:24 +00:00