Commit Graph

133398 Commits

Author SHA1 Message Date
simonb d22ebd9247 White space nit. 2005-01-19 11:41:07 +00:00
cube daeec6c990 ethfoo(4) is no more. You'll find everything under sys/net/if_tap.[ch]
and sys/lkm/net/tap/if_tap_lkm.c.
2005-01-19 11:12:11 +00:00
cube fead024e60 LKM version of if_tap, derived from ethfoo code. 2005-01-19 11:09:05 +00:00
cube 755855a1f9 Make this LKM-friendly by using _KERNEL_OPT and having a prototype for the
sysctl setup function.
2005-01-19 10:18:40 +00:00
cube 6971b4d382 if_tap.c needs NBPFILTER flag. 2005-01-19 10:17:00 +00:00
dyoung a10b4b5f6b Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times.  If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
2005-01-19 06:00:22 +00:00
dyoung 7f9c7dad5a For a proper IBSS merge, we have to discard the old beacon packet,
create and queue a new one that carries the new BSSID.  I mined
net80211 in FreeBSD for the solution, which is to make an
IEEE80211_S_RUN->IEEE80211_S_RUN state transition---ath_newstate
discards the old beacon packet creates a new one by calling
ath_beacon_alloc.

I tested the merge as follows.  Starting at my desk on the second
floor of the building where I work:

soekris% ifconfig ath0 mediaopt adhoc ssid zzz chan 11 down

powerbook% ifconfig rtw0 mediaopt adhoc ssid zzz chan 11 up

soekris% sleep 25; ifconfig ath0 up

I raced to the elevator with my Powerbook, pressed the "Down"
button, got in, and pressed "Floor 1."  At the first floor:

powerbook% ifconfig rtw0 | grep bssid
        bssid 02:p:p:p:p:p chan 11

I waited 25 seconds.  I pressed "Floor 2."  At Floor 2, I returned to my desk.
I checked to make sure that the Soekris console read:

soekris% ath0: creating bss 02:s:s:s:s:s
ath0: bss merge 02:s:s:s:s:s -> 02:p:p:p:p:p

0:s:s:s:s:s is the Soekris' WLAN MAC.  0:p:p:p:p:p is the Powerbook's
WLAN MAC.  Each created an ad hoc-mode BSSID from its WLAN MAC by
OR'ing 0x2 with the first octet.

My Powerbook created a network while the Soekris radio was off.
The Soekris radio turned on while I was in the 802.11-impervious
elevator with my Powerbook.  When I returned to the second floor,
the Soekris "heard" beacons from my Powerbook as the elevator door
opened.  Since the Powerbook's network was approximately 25 seconds
older than the Soekris', and since it had the same SSID (zzz) as
the Soekris', the Soekris merged with the Powerbook's network (by
setting its BSSID) as it should.
2005-01-19 04:56:42 +00:00
chs 7cd6a571a5 when determining the rom address, use only the IODC model and revision info,
not the unit number (from jkunz).  add two more revisions that use the
pagezero info (one from openbsd, one from me).
2005-01-19 03:30:21 +00:00
uwe a1b87c0ac3 Shuffle persona_hpw200ec_keytrans[] to match recent change to
pfckbd_callout_hitachi().

Fix KEY_SPECIAL_OFF for both Persona machines.

From KIYOHARA Takashi.
2005-01-19 03:23:50 +00:00
chs ea145b7bd7 use a flag in the softc to indicate if an instance has been configured,
rather than a bit in 32-bit global variable indexed by unit number.
2005-01-19 02:13:02 +00:00
chs b9e81e5420 amiga no longer abuses cf_unit. 2005-01-19 02:08:55 +00:00
chs 8f2820b4a6 use a flag in the softc to indicate if an instance has been configured,
rather than a bit in 32-bit global variable indexed by unit number.
2005-01-19 02:08:40 +00:00
chs d42decb9db mac68k no longer abuses cf_unit. 2005-01-19 02:05:04 +00:00
chs e576d75b00 only one of the obio locators was actually used, so get rid of the others
and collapse the two variations of obio into one.  use the remaining locator
("addr") to differentiate the two possible esp and sbc devices (instead of
using the unit number).
2005-01-19 02:04:49 +00:00
chs a73e314137 de-__P, remove register, ansify. 2005-01-19 01:58:21 +00:00
mycroft ebfdf0c012 If TIOCPTMGET fails, close /dev/ptm. 2005-01-19 01:54:09 +00:00
mycroft debe1484b9 Set FD_CLOEXEC on the recovery mail file. 2005-01-19 01:20:24 +00:00
lukem 8fa2b6b361 Use
${MAKE} ${CRUNCHENV} ...
instead of
	${CRUNCHENV} ${MAKE} ...
so that CRUNCHENV overrides any user-provided command-line make(1) variables.

This fixes /rescue build problems for people who pass settings such
as MKKERBEROS=yes in via the make(1) command-line.
2005-01-19 01:18:59 +00:00
mycroft c860ec870a Use FD_CLOEXEC (for -exec). 2005-01-19 01:03:16 +00:00
mycroft e638979d5c Use FD_CLOEXEC. 2005-01-19 00:59:48 +00:00
mycroft ffa0d5e7ac Also set FD_CLOEXEC in the union re-open case. 2005-01-19 00:53:33 +00:00
mycroft ffcb3c5a45 Use FD_CLOEXEC. 2005-01-19 00:52:37 +00:00
simonb a8164658f1 A more accurate microtime() implementation. Avoids precision
errors when the clock frequency doesn't divide nicely in to 10^9.
2005-01-19 00:26:54 +00:00
mycroft b7e6351cc4 hash already uses FD_CLOEXEC -- pay attention to the return value and make it
a hard failure.

Also make btree and recno uses FD_CLOEXEC.
2005-01-19 00:23:44 +00:00
lukem ac1f1eff7d reorder lines so bsd.own.mk will be included before USE_INET6 is tested 2005-01-19 00:16:17 +00:00
he c05b6145f4 Remove extraneous parenthesis, so that this compiles again. 2005-01-18 23:04:40 +00:00
manu 0d884d9738 Remove unneeded \ at the end of line, style 2005-01-18 21:39:11 +00:00
peter 3833bb8f30 Minor cleanup and tweaks, be consistent with the other system admin scripts. 2005-01-18 18:12:55 +00:00
peter 3fafe1c29d Support -current with binary packages installation. 2005-01-18 18:08:30 +00:00
peter 94124fb58c * fix strdup() with conditional nlines++
* no need to call strdup() in the return pointer of ftp_base
* simplify release version fixup and add support for -current

Reviewed by garbled.
2005-01-18 18:07:21 +00:00
shige 85cbab4d61 Add modules. 2005-01-18 17:57:41 +00:00
shige 2e5adfe8b7 - Copy evbppc/obs405/machdep.c to evbppc/obs405/md_machdep.c.
(prevent machdep.o from conflict)
- Rename function: cpu_startup -> obs405_cpu_startup.
- Set md-func-ptr: md_cpu_startup = obs405_cpu_startup.
2005-01-18 17:55:16 +00:00
shige 95b240720a Arrange some machine-dependent code.
- ibm40x_machdep.c: ibm40x specific
	. ibm40x_memsize_init
	. mem_regions
	. other functions are moved to machdep.c or ibm4xx_machdep.c.
  - ibm4xx_machdep.c: ibm4xx specific
	. ibm4xx_init (moved from ibm40x_machdep.c)
	. ibm4xx_install_extint (moved from ibm40x_machdep.c)
	. ibm4xx_cpu_startup (moved from ibm40x_machdep.c:ibm4xx_startup)
	. ibm4xx_dumpsys
2005-01-18 17:11:25 +00:00
shige 48188681e8 Add ibm4xx family common module.
- machine-dependent global variables
  - cpu_startup glue
  - softnet/softserial (copy from ibm40x_machdep.c)
2005-01-18 16:56:24 +00:00
briggs e50bfa0ddc Formatting.
Add a couple of DIAGNOSTIC checks to look for NULL interrupt handlers.
2005-01-18 15:20:23 +00:00
kent 130eb59b39 add more words for audio filter pipeline 2005-01-18 14:34:34 +00:00
wiz 795ae0e928 New sentence, new line. 2005-01-18 13:42:37 +00:00
lukem 3be06e9652 Only use ping6 and rtsol if ${USE_INET6} != "no".
Part of PR 28994.
2005-01-18 12:38:45 +00:00
simonb 58b6dc006c We only need a 2MB md for install images, not an 8MB one. 2005-01-18 12:38:41 +00:00
lukem 46123551a0 Only support SMALLPROG_INET6 if ${USE_INET6} != "no".
Part of PR 28994.
2005-01-18 12:30:21 +00:00
yamt 28bcd01d16 - add rcsid.
- restore Bill Paul's copyright notice.
2005-01-18 11:11:58 +00:00
hannken 5b0fdd5c72 Protect calls to `ffs_*_swap' with `#ifdef FFS_EI'. 2005-01-18 10:40:21 +00:00
scw 4db6edf008 Add "options PMS_SYNAPTICS_TOUCHPAD", commented out by default. 2005-01-18 10:30:11 +00:00
scw 9a196509a4 Add "options PMS_SYNAPTICS_TOUCHPAD", commented out in all but GENERIC_LAPTOP. 2005-01-18 10:28:00 +00:00
scw f75456d232 Document options PMS_SYNAPTICS_TOUCHPAD. 2005-01-18 10:23:35 +00:00
scw 2d0fc26c46 Address PR kern/28990 by making Synaptics Touchpad support contingent
on "options PMS_SYNAPTICS_TOUCHPAD" in the kernel config file. See
the PR for details on why this is necessary.

While here, defflag PMS_DISABLE_POWERHOOK.
2005-01-18 10:22:51 +00:00
chs a69406e59e sun2 no longer abuses cf_unit. 2005-01-18 07:34:09 +00:00
chs 348f7d206d sh3 no longer abuses cf_unit. 2005-01-18 07:30:49 +00:00
chs 14956c87b7 x68k no longer abuses cf_unit. 2005-01-18 07:30:27 +00:00
chs 05bac5b187 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that x68ks can have more than 1 com
(which they might actually have, but the driver doesn't currently allow it).
determine which instance is the console by comparing the iobase rather than
the unit number (which is silly given the above, but whatever).
2005-01-18 07:28:46 +00:00