Commit Graph

74421 Commits

Author SHA1 Message Date
yamt
fc08656a20 implement inaccurate mtime/ctime detection.
namely, if mtime or ctime are same between pre_op_attr and post_op_attr
when we expected them to be changed, don't trust the server.
2005-01-19 16:22:19 +00:00
martin
5e83f0d7e8 Remove deleted interfaces from the instance list (inspired by an OpenBSD
change). While there, fix a comment.
2005-01-19 15:05:55 +00:00
cube
5c44c50b34 Default to using (well, assuming) bpf. 2005-01-19 14:59:08 +00:00
chs
40345beaa3 ibm4xx/pte.h is no more. 2005-01-19 14:46:26 +00:00
chs
cbbe63f8de make this build again without sun4/4c. 2005-01-19 12:01:52 +00:00
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
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
he
c05b6145f4 Remove extraneous parenthesis, so that this compiles again. 2005-01-18 23:04:40 +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
simonb
58b6dc006c We only need a 2MB md for install images, not an 8MB one. 2005-01-18 12:38:41 +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
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
chs
8b1c7b2e30 use a new "addr" locator for grf instead of the unit to match the instance
to the hardware.  use a new "grfaddr" locator to match ites to their grfs,
instead of requiring that their unit numbers be the same.
2005-01-18 07:27:20 +00:00
chs
d57ca0cff9 de-__P, remove register, ansify. 2005-01-18 07:12:15 +00:00
tsubai
fcad06a784 Regen. 2005-01-18 06:24:18 +00:00
tsubai
e5b7a48413 Add some Apple devices. 2005-01-18 06:23:01 +00:00
uwe
8fc1984171 Kill trailing whitespace. 2005-01-18 06:05:52 +00:00
uwe
80e190d19b Use uint<N>_t instead of u_int<N>_t. 2005-01-18 06:03:31 +00:00
dyoung
fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
uwe
5176524b6f Use uint<N>_t instead of u_int<N>_t. 2005-01-18 04:09:09 +00:00
uwe
a1e2e32edf Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does.  Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
2005-01-18 03:59:11 +00:00
oster
26187fa579 ForceReconReadDoneProc() needs a return after doing the first
rf_CauseReconEvent().
2005-01-18 03:29:51 +00:00
martin
ab7375f57f More changes from Michael Lorenz:
- fix a panic in mach64_alloc_screen()
 - some cleanup
 - restrict mach64_mmap() to addresses which belong to it
 - mach64_attach now prints bus addresses instead of kernel vm addresses
 - initial support for macppc
2005-01-17 22:52:46 +00:00
matt
98b6754e59 Fix problem with unclosed comments 2005-01-17 22:41:23 +00:00
dsl
02a6e19ef1 Fix comment, code is requesting CHS geometry, not max LBA sector 2005-01-17 21:28:51 +00:00