Commit Graph

132574 Commits

Author SHA1 Message Date
tsutsui
b3090f536d Fix typo in comment. 2004-12-27 14:20:43 +00:00
christos
12fc8404b0 RTC_OFFSET is writable; sync with sysctl.8 2004-12-27 13:35:47 +00:00
dyoung
45d5300ab2 Cosmetic: remove some dead code. Join some lines. 2004-12-27 10:47:57 +00:00
mycroft
3b17804fc6 Use the last descriptor to count collisions and failed transmissions, too. 2004-12-27 10:17:38 +00:00
mycroft
cbcc1cc53f When checking if a split packet is completed, check the *last* segment, not
the first.  Otherwise we can overwrite parts of the TX ring that we shouldn't.

Kluge the basic rate setting for now.

Minor simplification to the dequeueing logic.
2004-12-27 09:40:18 +00:00
dyoung
07e67ea7d6 802.11 Control/multicast/broadcast packets are not acknowledged.
Set a shorter 802.11 Duration field, accordingly.

XXX We expect CTS/ACK at 1 Mb/s for 1 & 2 Mb/s stations; and CTS/ACK
at 2 Mb/s for 5.5 & 11 Mb/s stations.  We need to check with the
802.11 standard.  Rate negotiation may need to be overhauld for
standards compliance, too.
2004-12-27 09:25:05 +00:00
mycroft
8de0a60775 Fix the BRSR macros. 2004-12-27 08:59:16 +00:00
imp
8cc2724dbf sync to usbdevs 1.391 2004-12-27 07:05:32 +00:00
imp
76d1141e8d Very minor cleanup:
o Sort vendor PALM entry numerically
o For all vendors, separate the number from the name by a tab, not two
  spaces (this affects 5 entries).
2004-12-27 07:04:26 +00:00
dyoung
5ca7c3d3af Disconnect the "stop transmitter/receiver" function from the
"power-off NIC" function, by adding a 'disable' argument to ath_stop.
Pass disable=0 to ath_stop() at the top of ath_init, so that we
don't power-off the Cardbus slot before resetting the HAL.  Thanks
to Greg Troxel for his analysis of this bug.
2004-12-27 07:01:00 +00:00
dyoung
e336b06e3b Remove useless debug sysctls.
For AP scanning, change the channel dwell time from 1 second to
1/5 second.
2004-12-27 06:12:28 +00:00
mycroft
1989546a4c GC unused stuff. 2004-12-27 05:36:08 +00:00
mycroft
e3c9106a08 Simplify the duration calculations somewhat.
* Add an intermediate variable, ctsrate, which is currently derived directly
 from rate, but may be handled differently later (especially for 11g).
* Assume ACKs are sent at the same rate as the original data packet, as ath
  does, shortening the ACK reservation time substantially.
* Add a note that we need to deal with not adding the ACK time for some
  packets, though this is not implemented yet.

Questions:
* How do we affect the control rate used to send RTS/CTS packets?
* Is the PLCP header length actually controlled by the preamble length
  selection, or should this be based on the transmit rate?

Of course short preamble is not actually implemented/working yet.
2004-12-27 05:35:33 +00:00
joff
60b9b5a6ef do things the todr(9) way 2004-12-27 02:46:22 +00:00
joff
3f09dcaa18 Add tsrtc to TS-7200 config 2004-12-27 02:44:38 +00:00
joff
bb0dbb71f1 Clean up autoconf stuff 2004-12-27 02:42:49 +00:00
joff
cff4f0088d Add support for TS-5620 daughter card RTC 2004-12-27 02:41:54 +00:00
mycroft
9fc969bfcb Update a comment. 2004-12-27 01:57:58 +00:00
mycroft
06e4fe7f62 Replace d_plcp_svc with d_residue. The latter is the number of whole
empty/unused octets to fill out the data time slot.  The value is constrained
by math to 0 for <= 5.5Mb, 0-1 for 11Mb, and 0-2 for 22Mb.  It is used to
signal to the MAC that there is residue.
2004-12-27 01:51:49 +00:00
mrg
c0abe52657 "@" is a comment char on arm. these tests have always failed to pass the
`@progbits' part to obj_elf_section()... but in 2.15 obj_elf_section()
gained a demand_empty_rest_of_line(), and the trailing ", " tripped this
up.  we can (and now do) use ``"progbits"'' instead of ``@progbits''.
2004-12-27 00:47:57 +00:00
mycroft
c6d0afc871 Remove ELFn_ST_{BIND,TYPE,INFO}(), and instead add a generic ELF_ST_*() that
works with an Elf_Byte.  Also add ELF_ST_VISIBILITY() and STV_* types.
2004-12-26 23:37:29 +00:00
dyoung
fd1b54b080 Make rtw(4) build w/o RTW_DEBUG. Thanks to Charles Hannum for
pointing out my oversight.
2004-12-26 22:59:41 +00:00
mycroft
1083cfb1dd Fix a compile error if no RTW_DEBUG. 2004-12-26 22:37:57 +00:00
joff
0ac1f404ba support watchdog timer on TS-7200 CPLD 2004-12-26 22:02:10 +00:00
dbj
0c5a27af69 remove opt_compat_netbsd.h, afaict it is no longer needed.
i think it was previously used to pull in COMPAT_09 for ffs_statfs
2004-12-26 17:34:39 +00:00
christos
4eb7659c2c PR/28782: OBATA Akio: Document that kern.rtc_offset is writable. 2004-12-26 16:57:09 +00:00
christos
31154055b9 PR/28781: OBATA Akio: gdb -write would core-dump if the executable did not
have a string table. Check if the string table has been passed to us before
we attempt writing it.
2004-12-26 16:55:00 +00:00
tsutsui
3cc9d26a8d Add man section numbers to some entries for significant changes page on www. 2004-12-26 13:07:41 +00:00
tsutsui
d68499a99e Add mec(4) for sgimips. 2004-12-26 12:37:03 +00:00
tsutsui
fee2c899c7 Add a simple man page for O2 MACE MEC-110 Ethernet driver. 2004-12-26 12:33:37 +00:00
imp
ee755844ef Sync to usbdevs 1.389 2004-12-26 07:39:50 +00:00
imp
71d471a43a Sort HAGIWARA entry (0x0693) numerically 2004-12-26 07:39:24 +00:00
kanaoka
9c2bc06a94 - Use ether_ioctl().
- Remove unnecessary re_init() in re_attach().
 - Remove notyet compile option.
2004-12-26 07:27:41 +00:00
imp
10065c5c65 Sync to usbdevs 1.388 2004-12-26 07:05:32 +00:00
imp
d30682d183 Sort LOGITEC (0x0789) entry numerically. 2004-12-26 07:03:29 +00:00
kanaoka
38f5c9155e - Sync if_re.c(rev=1.6).
When adding/deleting multicast addresses, only whack the address
    filter if the interface is marked RUNNING.

    Fixes kern/27678.
2004-12-26 06:48:13 +00:00
jonathan
92e2e6b4b0 Add a forgotten change to rtl81x9var.hfor split re(4) driver
(sys/dev/ic/rtl8169.c): add `sc_rev' to generic 81x9 struct rtk_softc.
2004-12-25 17:24:01 +00:00
dyoung
1b319bfabc The rx descriptor ring bug happens quite often, so printf'ing
occurrences is annoying.  Only printf about it when rtw_debug
contains RTW_DEBUG_BUG.
2004-12-25 07:45:53 +00:00
dyoung
763f8db1c3 IMPORTANT: set m->m_pkthdr.rcvif on rx'd packets. Illegal memory
references abound without this fix.

In rtw_intr_rx, skip to the next rx packet earlier if the rx packet
length is too short.

Also in rtw_intr_rx, if a packet is rx'd with unknown rate, printf
a warning, drop the packet, recycle the rx buffer, skip to next rx
packet.
2004-12-25 07:24:17 +00:00
dyoung
d2b4873c41 Change rtw_debug from a debug level to a debug mask. Add a lot of
debug flags.

From Linux: handle an RTL8180 bug.  Sometimes the NIC skips from
the middle of the ring to the 0th rx descriptor.  Now the driver
resynchronizes.

Handle a receive descriptor underrun or Rx FIFO overflow condition
in the way that the Linux driver does.  This kind of seems like
overkill, but whatever.

Protect rtw_ioctl with splnet().

Do not load a tx descriptor with a buffer shorter than 4 bytes.

Handle a transmit timeout less disruptively.
2004-12-25 06:58:37 +00:00
yamt
3954031773 enable debug code in pmap_emulate_reference. ok'ed by Jason Thorpe. 2004-12-25 06:35:30 +00:00
christos
81e1a623a6 PR/28774: Kentaro A. Kurahone: Add synaptics touchpad driver 2004-12-24 18:33:06 +00:00
christos
2c2559cb73 PR/28773: Takahiro Kambe: Support for newer cpu's in enhanced speedstep 2004-12-24 17:37:43 +00:00
joff
b6d96c3c3d Pad .sdata section to a 4-byte boundary so that the .image section
is always aligned.  This makes md_root_loadaddr always 4 byte aligned.
Without this, may get an un-aligned access trap before we even print
anything on the console which was a pain in the neck to debug since so
early in the bootstrap the CPU usually just halts on exceptions.
2004-12-24 16:17:27 +00:00
shige
d2306c8cf3 Add functions:
- com_opb_cnattach
	- com_opb_device_register
2004-12-24 14:55:50 +00:00
hannken
67cab6c14c Add file .../cat4/ahd.0 missing from last commit. 2004-12-24 11:59:15 +00:00
joff
093d31d23f Plug Technologic Systems TS-7200 SBC kernels into evbarm release build 2004-12-24 10:56:23 +00:00
joff
881290e4de add netbsd-wd0, netbsd-sd0, netbsd-epe0 configurations 2004-12-24 10:53:34 +00:00
joff
eadf291885 On-chip EP93xx UART support 2004-12-24 10:34:27 +00:00
joff
a1ed993cf1 generic TS-7200 gzboot support 2004-12-24 10:33:54 +00:00