Commit Graph

132613 Commits

Author SHA1 Message Date
dyoung c3b84ef737 I like the tlp/atw-style names for software descriptors, txsoft,
better than txctl.  Change from rtw_txctl/rtw_rxctl to
rtw_txsoft/rtw_rxsoft.  Change the descriptor blocks' names to
match: rtw_txctl_blk becomes rtw_txsoft_blk.  Change the member-name
prefixes for both software and hardware descriptors.
2004-12-29 01:06:52 +00:00
nathanw fae5965c52 Implement pthread_attr_{set,get}schedpolicy() at the same level as the other
scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling
stuff, this is for the benefit of code that can't be bothered to test against
_POSIX_THREAD_PRIORITY_SCHEDULING.
2004-12-29 00:59:57 +00:00
thorpej 0c386f944e Back out previous, now that make is fixed. 2004-12-29 00:47:56 +00:00
christos 8415275dbd Dir_MTime did not search for a file using the correct parh; i.e. it was
ignoring suffix-specific path search. So if a node was marked .MADE,
then suffix rules would not be applied to it, and we would look for
the file only in the default path, not the suffix-specific path.

XXX: Now that we looked for the suffix, we can save it in the GNode,
but we don't do this yet.
2004-12-29 00:43:02 +00:00
dyoung d07caa7269 Consolidate variables related to the rx ring in sc_rxdesc_blk,
which is a struct rtw_rxdesc_blk.

Put a copy of the DMA tag and the DMA map into the rx- and tx-ring
blocks so that I don't have to pass them to subroutines all of the
time.
2004-12-29 00:21:37 +00:00
thorpej c735ea78ac Add PAM libraries, modules, and headers. 2004-12-29 00:12:00 +00:00
thorpej 05b129326d Descend into libpam. 2004-12-29 00:11:27 +00:00
thorpej 62953ecba5 Install modules into /usr/lib/security 2004-12-29 00:08:14 +00:00
thorpej 9c276b19a0 Add /usr/lib/security 2004-12-28 23:59:22 +00:00
thorpej 4e24c365b9 Work around a suffix search problem with .MADE. Work-around suggested
by Christos.
2004-12-28 23:37:50 +00:00
nathanw 96f80cede0 USB_DETACH(): Don't zero out sc->sc_pipe[i] after aborting the
pipe. This lets umass_disco() free the pipes and associated controller
state, rather than leaking 2-3 pipes per attach/detach cycle.
2004-12-28 23:35:21 +00:00
dyoung f1fa0e7819 Add bpf(4) packet taps to rtw(4). Now you can tap DLT_EN10MB
(Ethernet II), DLT_IEEE802_11 (802.11), and DLT_IEEE802_11_RADIO
(radiotap + 802.11).
2004-12-28 22:30:07 +00:00
dyoung 88f91a4188 If defined(RTW_DEBUG), provide a sysctl (hw.rtw.rxbufs_limit) for
limiting the number of rx buffers an rtw may allocate.  Use this
sysctl to test the code that copes with buffer exhaustion.

Allocate at most RTW_RXQLEN rx buffers, stopping at the sysctl
limit.  Record in sc_nrxdesc how many were allocated, and put the
end-of-ring indication on sc_rxdesc[sc_nrxdesc - 1].  In rtw_init,
if no rx buffers could be allocated, log a complaint, clear
IFF_RUNNING, and exit with an error.

Many changes to accomodate a short rx ring, mainly of the "add a
rx-ring length argument" variety.  XXX I really should consolidate
all of the rx ring variables in one struct and pass that to the
rx-ring subroutines.

Bug fix: after calling MCLGET, use the (m->m_flags & M_EXT) idiom
to check for success, instead of m != NULL.

Bug fix: at the top of rtw_start, if IFF_RUNNING is not set, or
IFF_OACTIVE is, get out.
2004-12-28 22:21:15 +00:00
dyoung 05372fb8f4 Group receiver-related variables together: move sc_rxctl nearer to
sc_rxnext.

Add sc_nrxdesc, the number of receive descriptors that we are
actually able to use.  sc_nrxdesc will ordinarily equal RTW_RXQLEN.
If buffers are exhausted, sc_nrxdesc < RTW_RXQLEN.  My next commit
will change dev/ic/rtw.c to deal with buffer exhaustion.
2004-12-28 22:07:04 +00:00
thorpej 186e7464e2 Add /usr/include/security 2004-12-28 22:00:36 +00:00
wiz 5e2d40e955 Drop trailing whitespace. 2004-12-28 21:08:17 +00:00
christos 535dfbd778 Document synaptics support and the sysctls for it. 2004-12-28 20:59:32 +00:00
christos ef8015e649 - cleanup some debugging stuff.
- don't create the sysctl nodes if we don't have a synaptics pad.
2004-12-28 20:47:18 +00:00
wiz 454816d146 Bump date for previous. 2004-12-28 19:23:12 +00:00
yamt 41fc72dca2 update to match with the recent reality. PR/28793. 2004-12-28 18:36:45 +00:00
joff 68490c8820 Add TS7200 kernel for sysinst 2004-12-28 17:56:40 +00:00
joff 7d196d84c5 add TS7200 gzboot img 2004-12-28 16:52:24 +00:00
joff db2d37d14e Add TS7200 2004-12-28 16:51:15 +00:00
joff 3a8922c4d8 descend into TS7200_flash_0x60660000 2004-12-28 16:19:41 +00:00
snj bff6765312 Mark up author names with .An. 2004-12-28 10:28:37 +00:00
jmc a6be320e8b Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that
are too large w. binutils 2.15
2004-12-28 07:50:00 +00:00
atatat 4b9429a08d Attack of the whiteout police, including the "fix whitespace problems"
department followed by the "and fix the the ifdefs as well" brigade,
leading to a janitorial "just combine those two" strike team.
2004-12-28 05:11:07 +00:00
jdolecek 477f876cd6 size_t police
pointed out by Jesse Off on source-changes@
2004-12-28 01:12:26 +00:00
thorpej 8fca42fd9c More ELF_ST_BIND()/ELF_ST_TYPE() cleanup. 2004-12-28 00:08:08 +00:00
thorpej 65e20d49a9 Use uint32_t casts, rather than Elf_Byte, in ELF_ST_BIND() and ELF_ST_TYPE()
so we don't get screwed by promotion rules (and makes nlist_elf32.ln build
again).
2004-12-28 00:07:31 +00:00
christos fc969eb142 According to the ELF docs, ELF{32,64}_ST_{BIND,TYPE,INFO,VISIBILITY} are
parts of the public interface. Define them in terms of ELF_ST_*.
Add STN_UNDEF which is part of the public interface also.
2004-12-27 21:35:03 +00:00
thorpej fe14527c00 Use ELF_ST_BIND() and ELF_ST_TYPE(). 2004-12-27 20:07:09 +00:00
dyoung 075143dca9 Use a table to convert the hardware's bit rates (0, 1, 2, 3) to
net80211 bit rates (2, 4, 11, 22).

Count input errors (if_ierrors++) for "DMA error/FIFO overflow"
and unknown bit rate.
2004-12-27 20:04:45 +00:00
dyoung 0da2ab9a37 Simplify the reset we do on a transmit timeout. Really, this could
be as simple as rtw_stop(, 0), rtw_init().
2004-12-27 19:49:16 +00:00
jdolecek 52c7db3883 change wget_utf8() to not require NUL-terminated string as input,
and adjust callers appropriately. cn_nameptr isn't NUL-terminated
for non-leaf components, so it's incorrect to assume it is always
NUL-terminated.

This fixes previous utf8-ization changes to not panic for cases
like 'echo */*/*.ps' in case the intermediate path components
are not in cache (yet).
2004-12-27 18:47:16 +00:00
jdolecek 2ce9f4516f change wget_utf8() to not require NUL-terminated string as input (added
'size' parameter), and adjust callers appropriately
2004-12-27 18:14:36 +00:00
reinoud 4501e21ecb Update generated files from pcidevs (ENE update) 2004-12-27 17:21:46 +00:00
reinoud a76863e103 Addition of description for :
/* ENE Technology products */
product ENE MCR510      0x510   MCR510 PCI Memory Card Reader Controller
2004-12-27 17:20:32 +00:00
wiz b89cba769a Be consistent in the spelling of "busses". Sort sections. Add RCS Id. 2004-12-27 14:21:22 +00:00
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