Commit Graph

77377 Commits

Author SHA1 Message Date
yamt d1f3bf1181 pmap_enter: fix an uninitialized variable bug which can cause
"TLB IPI rendezvous failed".
2005-08-12 10:04:24 +00:00
yamt 03661e8f33 include callout.h explicitly. 2005-08-12 10:02:31 +00:00
hubertf a72fe4e4bf Clarify comment that "the protocol specification dated September, 1981"
is really RFC 793.
2005-08-12 04:19:22 +00:00
junyoung b0c452fd1f Make microcode loading work on big endian machines.
Reported and patch supplied by yongari@freebsd a long time ago.
2005-08-12 01:07:16 +00:00
christos 5910d08b05 Don't process TCP options in SYN packets after the connection has
been established. (FreeBSD-SA-05:15.tcp)
2005-08-11 22:25:18 +00:00
cube 9f1eb3e30f Change all archs that did:
#define clockframe somethingelse

to:

struct clockframe {
	struct somethingelse cf_se;
};

and change access macros accordingly.

That means that, at least for that very issue, things will not go
ka-boomy if you don't have the actual definition of struct clockframe
before including systm.h.
2005-08-11 20:32:55 +00:00
yamt 3a2482b78f fr_check_wrapper6: handle M_CSUM_TCPv6|M_CSUM_UDPv6. 2005-08-11 13:01:38 +00:00
yamt bbfb2033ff pfil6_wrapper: handle M_CSUM_TCPv6|M_CSUM_UDPv6. 2005-08-11 13:01:24 +00:00
macallan b97218831c add uni_n, 2nd ki2c, iic, deq, hardware monitors. 2005-08-10 15:57:32 +00:00
macallan f869dc7da4 added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c 2005-08-10 14:39:25 +00:00
macallan d9f9caa094 - don't call ki2c private functions anymore, use iic_exec() to be a good i2c citizen
- use the deq driver to find the mixer device
- add controls for bass and treble
2005-08-10 14:32:08 +00:00
macallan 98735d6c6c dummy driver to represent the uni-n node in OF and attach its children 2005-08-10 14:30:15 +00:00
macallan f5c3157174 split from ki2c.c 2005-08-10 14:29:08 +00:00
macallan 19df969aa4 dummy driver to represent the deq node in OF, marks the equalizer/mixer chip used by snapper 2005-08-10 14:28:22 +00:00
macallan 40f380a1cb allow to attach a normal iic bus, implements only iic_exec() and locking functions so far. 2005-08-10 14:26:46 +00:00
macallan 9e54758862 glue to attach thermal monitor chips directly to ki2c 2005-08-10 14:20:44 +00:00
macallan d0c6868c13 added drivers for Analog Devices ADT7467 and ADM1030 thermal monitor / fan controller chips found in various Apple laptops and probably other machines. 2005-08-10 14:18:28 +00:00
bouyer 13f098d5de Not add PIIX are wired to compat mode these days. Problem reported and fix
tested by Havard Eidnes.
2005-08-10 13:23:38 +00:00
christos c3766be38e Allow setting the MAC address via wiconfig -m (Lord Isildur) 2005-08-10 13:20:42 +00:00
bouyer 55cbfde80a Add missing declaration/initialisation of wdc.
Pointed out by Rui Paulo.
2005-08-10 13:15:42 +00:00
yamt 0be9633956 re-implement ipv6 tx loopback checksum omission. 2005-08-10 13:08:11 +00:00
yamt b211b85ff4 wrap INET-only code by #if defined(INET). 2005-08-10 13:07:21 +00:00
yamt f02551ec2d move {tcp,udp}_do_loopback_cksum back to tcp/udp
so that they can be referenced by ipv6.
2005-08-10 13:06:49 +00:00
yamt 8220c378e6 device independent part of ipv6 rx checksum offloading. 2005-08-10 13:05:16 +00:00
yamt c4717bee9b add ipv6 tx checksum offloading support for wm driver.
reviewed by Jason Thorpe.
2005-08-10 12:59:43 +00:00
yamt 40a140d919 ipv6 tx checksum offloading. reviewed by Jason Thorpe. 2005-08-10 12:58:37 +00:00
bouyer 008b4bf1fc Revert previous, now that wdc.c properly initialize wdc->reset for wdcprobe(). 2005-08-10 11:19:31 +00:00
bouyer b1ce9b8a68 Also initialize wdc->reset in wdcprobe() if the bus back-end didn't provide
one. Prevent NULL pointer dereference when wdcprobe() is called.
2005-08-10 11:16:53 +00:00
yamt 5a3ce82137 exit_lwps: fix a race with eg. sa_setwoken.
ie. "exit_lwps: lwp_wait1 failed with error 11"
PR/30689.
2005-08-10 09:44:02 +00:00
yamt 98d4a17db9 exit_lwps: fix a race which causes a panic "setrunnable: lwp %p state was %d". 2005-08-10 09:42:03 +00:00
bouyer 4d7691a538 The ATA/ATAPI IDENTIFY data were designed to be converted on the fly to
host byte order (eventually the byte swapping could be wired in hardware, on
the 16 bit data bus). This was keept when wdc_exec_command() was created,
and as a result wdc_exec_command() is doing 16bit conversion to host byte
order. This is fine for IDENTIFY but doesn't work for other opaque data
structure, such as the ones for SMART.
So change wdc_exec_command() to do the conversion to host byte order only for
WDCC_IDENTIFY and ATAPI_IDENTIFY_DEVICE. This fixes atactl smart status
on big-endian hosts.

While here change __wdccommand_intr() to only use wdc_data{in,out}_pio, there
is no gain in doing the 32bit data port stuff locally.
2005-08-09 22:08:16 +00:00
chris 3e566c2bde Remove changes to bitbang code for de devices to work as tlps on cats.
I need to investigate a proper fix that doesn't break other platforms, eg:
PR kern/30952
2005-08-09 19:26:24 +00:00
nonaka fc0aa884c0 fix "panic when "wdc at obio" is probed".
(It is caused by sys/dev/ic/wdc.c: 1.224 -> 1.225)
2005-08-09 16:42:05 +00:00
blymn c0065dc0df Don't include tape stats functions if no devices configured. 2005-08-08 12:12:30 +00:00
junyoung 99681a4318 - Fix typo in comment.
- Remove trailing spaces.
2005-08-08 05:54:07 +00:00
chris 855ec413d2 Following feedback from thorpej, remove the #ifdef cats block, and update
comment.

All platforms will now send a change in direction, then the 32 MDO bits
when synchronising with the phy.  Rather than sending the change in
direction with the first MDO bit.
2005-08-07 17:47:22 +00:00
blymn ae250fde27 Add in tape statistics gathering definitions, add tape.h as a file
to be installed.
2005-08-07 12:30:01 +00:00
blymn ad6c334dcd Add tape statistics gathering functions. 2005-08-07 12:28:34 +00:00
blymn 1742ba7763 Add tape statistics structure pointer. 2005-08-07 12:25:08 +00:00
blymn d943093426 Gather statistics for tape drives. 2005-08-07 12:24:30 +00:00
blymn 7279c2034d Add header containing structure definitions for tape instrumentation 2005-08-07 12:19:06 +00:00
bouyer 27d425f60f To disable a channel we need to clear bit 2 or 3, not all other bits but
bit 2 or 3. Thanks to Takeshi Nakayama for catching it.
(With this mistake the code was still working for the first channel, because
the reset of the second channel would disable/enable the first one).
2005-08-07 10:12:39 +00:00
manu ae124933ca introduce ipsec_policy_t to help user programs with the change of
ipsec_set_policy, ipsec_get_policylen and ipsec_dump_policy prototypes
(using void * instead of caddr_t)
2005-08-07 08:34:32 +00:00
yamt 8988782aa6 wm_rxintr: ignore h/w assisted checksum results if WRX_ST_IXSM is set. 2005-08-07 05:18:42 +00:00
yamt 7b11b076da fix a typo(?) in an unused macro. (WRX_ST_ISXM -> WRX_ST_IXSM) 2005-08-07 04:56:25 +00:00
yamt afdf806bac wrap some code with #if defined(NFS_BOOT_BOOTSTATIC). 2005-08-07 04:54:58 +00:00
yamt f37bf52fce sysctl_create: remove an unused variable. 2005-08-07 04:54:07 +00:00
chris 428f7b8491 Check in cats specific tweak to make older de cards work as tlp devices.
With this tweak I've completed a full install from NFS of 3.99.7, using a
card the previously didn't work as a tlp device.
2005-08-06 23:40:39 +00:00
bouyer 9c635d80b4 remove debug printf 2005-08-06 22:25:32 +00:00
bouyer d1278fcba8 Add an optionnal controller callback for channel reset. If the callback
is set to NULL, use the generic reset code.
Use this to work around a bug in some Acer IDE controllers (like the
one found in some sparc systems) where a controller disable/enable
is required after a reset to avoid data corruption when Ultra-DMA is
used. Workaround from opensolaris, thanks to Hiroki Sato for testing.
2005-08-06 22:07:24 +00:00
kiyohara bbebe4a265 Using DLT_APPLE_IP_OVER_IEEE1394. 2005-08-06 14:09:54 +00:00
yamt d6d72a6dc9 wrap INET only code by #if defined(INET). (in __NetBSD__ part) 2005-08-06 11:22:39 +00:00
jmmv db4c002235 Fix comment regarding sbp->f_favail (which was a duplicate due to a pasto). 2005-08-05 13:24:18 +00:00
jmmv 5aff10d277 Fix some typos in comments. 2005-08-05 13:22:23 +00:00
jmmv 060dc147c7 Fix wording in a comment. 2005-08-05 13:18:32 +00:00
junyoung fb1a9a3413 Use NULL where appropriate. 2005-08-05 11:14:32 +00:00
junyoung 28f7bf4885 Cosmetic changes. 2005-08-05 11:05:44 +00:00
junyoung 683f615a8f Move proc0 initialization from main() in init_main.c and proc0_insert() in
kern_proc.c into a new function proc0_init() in kern_proc.c, as suggested
on tech-kern@ days ago.
2005-08-05 11:03:18 +00:00
jmmv e062fbf94f Let this build when MSDOSFS_DEBUG is defined (v_id disappeared a long time
ago but it was still used here).
2005-08-05 11:00:31 +00:00
skrll 1293f7a748 Add (commented out) ucycom to various kernel configs. 2005-08-05 09:23:16 +00:00
elad 6439f2618f Add sysctls for IP, ICMP, TCP, and UDP statistics. 2005-08-05 09:21:25 +00:00
skrll 40f827d8b1 Don't make symlinks when doing obj, clean, or cleandir targets. 2005-08-05 09:16:54 +00:00
skrll a5707134df +#include <sys/device.h> 2005-08-05 07:27:47 +00:00
fvdl 95178de766 Missed commit from the linux compat changes dealing with setting fs and gs:
copy the PCB fs and gs on fork.
2005-08-04 19:31:53 +00:00
rpaulo 2fcfc4c276 Implemented the kernel part of BPF statistics and BPF peers, net.bpf.stats
and net.bpf.peers sysctls respectively.

A new structure was added to describe the external (user viewable)
representation of a BPF file; a new entry was added to the bpf_d
structure to store the PID of the calling process; a simple_lock was added
to protect the insert/removal from the net.bpf.peers sysctl handler.

This idea came from FreeBSD (Christian S.J. Peron) but while it is
implemented with sysctl's it differs a bit.

Reviewed by: christos@ and atatat@ (who gave me the tip for the net.bpf.peers
sysctl helper function).
2005-08-04 19:30:47 +00:00
fvdl ff4290fdee In pmap_map(), do not do TLB shootdowns. It is only used for kernel dumps,
at which point other CPUs are likely halted, and the addresses mappped
are temporary anyway.
2005-08-04 19:29:26 +00:00
tron 72f9a2a842 Return correct error on all zero length codes. Fix from Gentoo bug 94584. 2005-08-04 14:36:42 +00:00
skrll 47e074fbcd Debug fixes. 2005-08-04 07:51:09 +00:00
skrll bb9f6f5786 Fix a typo. 2005-08-04 06:17:26 +00:00
augustss 055b084f88 Regen. 2005-08-03 23:08:19 +00:00
augustss 6bbb83730c There is no need to include the vendor name in the product description,
so remove some.
2005-08-03 23:08:08 +00:00
augustss 6bc981d36b Regen. 2005-08-03 23:07:23 +00:00
augustss 82cde0f6e0 Add a Dell keyboard. 2005-08-03 23:07:08 +00:00
uwe 6b95067c33 Support HP 620LX. On/off and brightness are the same as in 680.
Contrast control is different but similar enough, so refactor the code
to support both.  Tested by Christer Andersson.

XXX: platid_mask_MACH_HP_LX also matches 360LX.  It's not confirmed
whether touch panel in 360LX is connected in the same way.  We may
need to regroup platid masks.
2005-08-03 22:25:17 +00:00
augustss 97455524f1 Regen. 2005-08-03 21:18:07 +00:00
augustss 8a14d84884 Add a Targus mouse. 2005-08-03 21:17:50 +00:00
gdt e25f2a0d87 Restore to working order; this has apparently been nonworking since
the decapsulator dispatch changes in 2001.  Problems found and fixed
by Christine Jones of BBN.  Specifically:

Check for a packet's protocol to be ENCAP_PROTO, not AF_INET.

Remove one-back cache for last vif, because vif_encapcheck is called
for each vif, rather than being expected to find the appropriate vif.
The cache usage caused packets to be input on the wrong vif and hence
usually dropped.

In vif_encapcheck, verify the local source as well.  While mrouted
endeavors not to create multiple tunnels with a peer, a packet
arriving with the wrong local address is still wrong and should not be
accepted.  (This is a correctness nit, not a security issue.)  Order
checks to fail quickly for packets being checked to see if they match
a vif other than the one they belong on (essentially, check peer
source address in outer header first).

Claim 69 bits of match (32 each from outer src/dst and 5 from checking
that inner dst is within 224/5).  This should result in the vif having
a higher priority for multicast packets compared to a parallel gif(4)
tunnel, and that both seems appropriate if both are configured and
seems to match the semantics expected by the decapsulator dispatch
machinery.

(These changes were made in 2.99.15 and about a dozen nodes are
running them with many vifs.  ip_mroute.c has not changed
significantly since then (February 2005) and the changes applied
cleanly to current and compile cleanly.)
2005-08-03 18:20:11 +00:00
elad 5b5c5125f4 Change how we handle duplicates in the signatures file.
Just give collision information (filename, device, inode, old and new
entry type and algorithm, and note if the fingerprint is the same or not.
2005-08-03 18:05:16 +00:00
shige 9bc1bf15c8 Add md-kernel for installation: INSTALL_OPENBLOCKS266. 2005-08-03 14:55:37 +00:00
onoe 5c08c84474 Fix mbuf leak in nfssvc_nfsd(). 2005-08-03 06:25:11 +00:00
elad 6e4a854552 Support multiple entry types. Direct, indirect, and file can now be
combined in the signatures file using commas.
2005-08-02 16:14:10 +00:00
kent 969266b7d7 * azalia_mixer_init()
set AUDIO_MAX_GAIN/2 to all of volume items.
2005-08-02 13:20:50 +00:00
kent 98532e5e3e - handle widgets without `format override' or `amp param override'
- support for volume knob
2005-08-02 11:17:56 +00:00
macallan af63a6798e fix a stupid typo 2005-08-02 01:35:05 +00:00
macallan ddb036e135 disable mmap()ing the framebuffer at offset 0 on sparc64 because some ATI
firmware likes to put PCI memory resources into this range, notably a Rage
IIc which puts the 2nd register aperture to 0x2000.
This should allow a few graphics chips to work with XFree86 which previously
failed with something like this:
(WW) ATI:  PCI/AGP Mach64 in slot 2:5:0 could not be detected!
No devices to configure.  Configuration failed.

Thanks to Florian Stoehr for doing most of the work tracking this down.
2005-08-02 01:32:13 +00:00
skrll cbdc27bb6a - Match more product ids.
- Don't initialise ic_phytype twice and do initialise ic_state.
- announce available rates.
- mark interface down if firmware crashes for the radio transmitter
  gets turned off.
2005-08-01 15:14:54 +00:00
skrll 8f0372bc09 Debug code tidy up. 2005-08-01 15:00:24 +00:00
shige 2583f14538 Remove all IDE controllers except for hptide. 2005-08-01 13:02:00 +00:00
christos bce5269120 Move extern kernel variable declarations, into a _KERNEL protected session
so that the don't pollute userland's namespace.
2005-07-31 20:18:32 +00:00
kent b5db3a23de - make sure the power state of a node is D0
- ignore unsoliticited responses
2005-07-31 06:48:15 +00:00
yamt 97d20debb1 regen. 2005-07-31 04:05:25 +00:00
yamt 38ca5312d2 revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
nakayama 588f33c33a Get AC/battery state via config_hook_call if hooks are registered. 2005-07-30 22:51:42 +00:00
nakayama 8ff59f4fc0 Add LCD brightness control keymaps and correct some key assigns for
Sharp Telios series.
2005-07-30 22:45:13 +00:00
nakayama 2911078947 Add LCD and battery control support for Sharp Telios series. 2005-07-30 22:40:33 +00:00
christos 5fc171f88e Partially fix. Now it comes up, associates with wep, but something is wrong
with tcp since it crashes in wep encryption when I cvs update.
2005-07-30 21:15:51 +00:00
mhitch 7bf06e6ec1 The handler for the periodic ENQUIRY command was not unmapping the ccb
data buffer, which left stale flags which caused Alpha ES40 crashes.  Add
the mlx_ccb_unmap() call and the ES40 now runs with > 1GB memory.
2005-07-30 17:37:11 +00:00
mhitch 2e8c0b59d2 Check for stale flags in the DMA map. This was causing crashes on an ES40
with more than 1GB of memory due to a bug in one of the drivers.  From
Jason Thorpe.
2005-07-30 17:25:51 +00:00
chris 195158eb08 When the footbridge does a bus space mapping it should default to
making the mapping not cacheable, and only allow caching if the relevant
flag is passed in.

This doesn't seem to fix, or break anything, but it matches the expected
bus space API.
2005-07-30 15:14:29 +00:00
christos 2709ce754e Fix compilation with FD_DEBUG. 2005-07-30 14:49:35 +00:00
wiz ed1153a3aa Fix typo reported in PR 30872. 2005-07-30 11:11:46 +00:00
yamt 8609a4e161 regen. 2005-07-30 06:37:15 +00:00
yamt 558fded29a add "options VMSWAP" to non INSTALL kernels. 2005-07-30 06:35:34 +00:00
yamt 1d0891101c defflag VMSWAP. 2005-07-30 06:33:33 +00:00
skrll acd7c4c5ca Add a driver for Cypress microcontroller based USB serial adapters.
XXX hw flow control is not supported.
2005-07-30 06:14:49 +00:00
grant 7dab65d668 regen 2005-07-30 01:14:51 +00:00
grant d48996a15a use same form for secondary display as other ATI devices 2005-07-30 01:14:38 +00:00
grant 4201215f6f regen 2005-07-30 01:13:23 +00:00
grant c9944d0dc8 add some device ids for the ATI Radeon 9200 Pro. 2005-07-30 01:12:59 +00:00
elad f73e4c7b31 Simplify previous commit. 2005-07-29 22:57:34 +00:00
elad 3c0a7f641b Use real executed program in logs instead of the script that was executed.
For example, this used to give false logs of matching fingerprint for
foo.sh while foo.sh don't have an entry, and the program executed (and
matching the fingerprint) is the interpreter - /bin/sh.
2005-07-29 22:37:11 +00:00
kent a69b665329 make this compile with AZALIA_DEBUG.
thanks to cube@
2005-07-29 16:20:53 +00:00
elad 780e38584a VERIFIED_EXEC_DEUBG{,_VERBOSE} is obsolete.
XXX: Too bad we can't have some MI config file. :)
2005-07-29 14:57:30 +00:00
elad 753edff337 #ifdef VERIFIED_EXEC 2005-07-29 14:49:00 +00:00
cube ad858fce1a New Dell Day, continued: add support for the fxp(4) variant in the
802801G* family of SB.
2005-07-29 13:13:34 +00:00
cube c11bfdfb36 Regen. 2005-07-29 13:11:59 +00:00
cube 7edfbab2fc New Dell day: add missing device IDs, and order one correctly. 2005-07-29 13:11:09 +00:00
simonb ef92a73349 Fix a typo. 2005-07-29 12:25:51 +00:00
drochner 83ebaf0ea5 complete attachment if the temperature monotor was successfully awoken,
minor whitespace fixes
2005-07-29 11:25:13 +00:00
drochner 21275bf194 activate the temperature sensors if the device is in standby mode
on attach (as on Soekris boards), from Aaron Hodgen per PR kern/23598
2005-07-29 11:05:27 +00:00
macallan 5d5d363c01 Updated license 2005-07-28 21:36:48 +00:00
christos 292dcda123 Don't use a global variable to indicate that we are stge1023. Use an sc member.
Pointed out by thorpej.
2005-07-28 16:04:24 +00:00
christos 49b19c5f09 PR/30821: SUZUKI, Shinsuike: IPsec-AH is always calculated using the same
key in AES-XCBC-MAC
2005-07-28 14:19:56 +00:00
thorpej 8919f50566 - Change FPCPU_LOCK() such that the caller is responsible for blocking
IPIs in the MULTIPROCESSOR case.  Adjust all callers.
- In fpusave_cpu(), block IPIs for the entire duration (while we have
  CPUF_FPUSAVE set in ci_flags) to fix the deadlock that leads to
  "panic: fpsave ipi didn't", as described in PR port-alpha/26383.
  Many thanks to Michael Hitch for the analysis and initial patch which
  this one is derived from.
2005-07-28 13:57:06 +00:00
thorpej fd526cad44 load_mbuf: Don't increase the segment index if we skipped a zero-length
mbuf.  From Michael Hitch.
2005-07-28 04:58:03 +00:00
christos c0ee8a4184 Fix systeminfo.
1. return length is the string length even if the string would not fit.
2. add SI_ISALIST
3. on 32 bit emulation, don't return sparc64 as the arch!
2005-07-28 03:50:52 +00:00
dyoung 810714086b Fix variable shadowing, sysctl attachment, ident(1) strings,
#includes so that the SampleRate rate-control algorithm will build
on NetBSD.
2005-07-28 02:08:04 +00:00
dyoung 89c0a98ceb Export ath_sysctl_instance for the SampleRate rate-control module
to use.

Also, add sysctl helper macro SYSCTL_PFX_INT (for SampleRate) that
prepends an arbitrary prefix to the sysctl name, instead of sc->sc_
like SYSCTL_INT.  Factor with SYSCTL_INT.
2005-07-28 02:05:20 +00:00
rpaulo 1c06ff56a9 Added a new AMASK bit (ALPHA_AMASK_PMI) and a new IMPLVER family ID:
ALPHA_IMPLVER_EV7.

ok christos@
2005-07-28 00:24:34 +00:00
dyoung 1b19913947 A few fixes affecting user control of the transmit/receive antenna,
and antenna diversity:

Check the hardware capabilities---transmit power control (TPC),
antenna diversity---before setting up the sysctls that control
those capabilities.  Previously, the TPC and ant. diversity sysctls
were not setup because ath_sysctlattach was called before sc_hastpc
and sc_hasdiversity were initialized, so users could not view/control
antenna diversity or TPC settings, even on hardware with those
capabilities.

Obey the user's transmit-antenna selection even when sending IBSS
beacons on hardware with VEOL capability; for all other hardware/modes,
only switch transmit antennas after every four beacons if the user
has not selected a transmit antenna---i.e., they chose antenna 1
or 2 instead of 0 ("auto").
2005-07-27 21:22:57 +00:00
dyoung b496bd99a0 Cosmetic: remove an out-dated "note to self." 2005-07-27 21:13:32 +00:00
dyoung 214312dad2 We don't really have FreeBSD 802.11 compatibility, and it will take
more work to get it right, so change the misleading COMPAT_FREEBSD
#ifdefs to #ifdef __FreeBSD__.
2005-07-27 20:31:24 +00:00
dyoung 9cb2b69eeb IEEE80211_IOC_BEACON_INTERVAL is not duplicated by SIOC[SG]80211POWER,
as I thought.  The latter actually sets the station listen interval.

We cannot get/set "drop-unencrypted" and "privacy" properties
independently with SIOCS80211NWKEY, so put back IEEE80211_IOC_PRIVACY
and IEEE80211_IOC_DROPUNENCRYPTED.

Thanks Sam Leffler for pointing out my mistakes.
2005-07-27 20:18:59 +00:00
simonb bdc552eaee KNF nit. 2005-07-27 12:41:09 +00:00
dyoung 9ec95e5520 NetBSD already has ioctls that get/set these parameters. Only
compile support for the duplicate ioctls from FreeBSD if it is a
COMPAT_FREEBSD kernel:

        IEEE80211_IOC_SSID
        IEEE80211_IOC_WEPTXKEY
        IEEE80211_IOC_CHANNEL
        IEEE80211_IOC_PRIVACY
        IEEE80211_IOC_DROPUNENCRYPTED
        IEEE80211_IOC_BSSID
        IEEE80211_IOC_BEACON_INTERVAL
        IEEE80211_IOC_WEPKEY
2005-07-27 07:01:25 +00:00
dyoung d6d1366732 Restore ABI compatibility with SIOCG80211STATS, SIOCG80211ZSTATS
in NetBSD 2.0:

        * If 2.x compatibility is enabled (#ifdef COMPAT_20),
          compile support for OSIOCG80211STATS and OSIOCG80211ZSTATS,
          with the same ioctl numbers as SIOCG80211STATS and
          SIOCG80211ZSTATS in 2.x.  OSIOCG80211STATS and
          OSIOCG80211ZSTATS return an ieee80211_ostats struct,
          which has the same layout as ieee80211_stats in 2.x.

        * Add new ioctl numbers for SIOCG80211STATS and SIOCG80211ZSTATS.
          Both these ioctls will copy at most ifr_buflen bytes of
          the new ieee80211_stats to ifr_buf.
2005-07-27 06:52:27 +00:00
dyoung 1d1035405a Add members ifr_buf, ifr_buflen to ifreq for specifying the location
and size of a userland buffer.  The kernel shall not copyout more
than ifr_buflen bytes to ifr_buf.  For future ioctls that use
ifr_buf and ifr_buflen instead of ifr_data, the kernel can return
a larger struct in the future than when the ioctl is introduced,
without breaking ABI compatibility, provided that the size, order,
and semantics of the fields at the front of the struct does not
change.
2005-07-27 06:36:15 +00:00
dyoung 930c942c22 In ieee80211_refine_node_for_beacon, deal gracefully with a node
that belongs to no table: don't dereference the null ni_table
pointer and panic.
2005-07-26 23:07:53 +00:00
dyoung 9bfd14b600 Remove duplicate FreeBSD RCS ID. 2005-07-26 22:57:26 +00:00
dyoung 61fb42b78a Resolve conflicts. 2005-07-26 22:52:48 +00:00
dyoung 80b91eea2d Import changes in FreeBSD's net80211 between 2005-05-18 and 2005-07-11.
A summary of changes is forthcoming.
2005-07-26 22:52:47 +00:00
dyoung d2ba878019 Resolve conflicts. 2005-07-26 22:52:47 +00:00
christos afe9d603ec PR/30844: Gert Doering: Non-inet traffic is passed to bpf incorrectly (as inet) 2005-07-26 21:26:48 +00:00
peter 84fa01a154 pf_test() can set *mp to NULL, check for this before de-referencing it.
From Akihiro Sagawa in PR/30835.
2005-07-26 13:09:23 +00:00
yamt 946832fd33 revert VCHR part of ffs_vnops.c 1.71.
as VCHR uses the device pager, no point to call VOP_PUTPAGES here.
pointed by Chuck Silvers.
2005-07-26 12:14:46 +00:00
yamt 79ff185ac4 don't write-protect wired pages. pointed by Chuck Silvers.
for now, leave a vnode on the syncer's queue, as suggested by him.
2005-07-26 08:06:29 +00:00
thorpej bdfafa03cd 1. Disable the lazy allocation of lev1map in pmap_enter(), instead doing
it in pmap_create(), and freeing the lev1map in pmap_destroy().  This
   means that pm_lev1map is consistent for the life of the pmap.
2. pmap_extract() now uses vtophys() for the kernel pmap.  This avoids
   having to lock the kernel pmap, since kernel PT pages are never freed.
3. Because of (1), pmap_asn_alloc() no longer needs to operate on a locked
   pmap; pm_lev1map will never change over the life of the pmap, and all
   other access to the pmap is done in per-CPU fields or with atomic
   operations.
4. Because of (3), pmap_activate() no longer needs to lock the pmap
   to do its work, thus eliminating the deadlock with sched_lock described
   in PR port-alpha/25599.  This is safe because we are guaranteed that
   the pmap is still alive, since by definition an LWP that uses that it
   is about to run.

Thanks to Michael Hitch for the analysis, and Michael and Ragge for testing.
2005-07-26 04:11:53 +00:00
is 1906767db5 normalize capitalization. No functional change. 2005-07-25 19:27:42 +00:00
ross d4a5f77997 Fix compilation nits with WM_DEBUG. 2005-07-25 18:26:24 +00:00
christos 5d719b264e In the SIGIO case, only check that we are the controlling tty if we are a
session leader.
2005-07-25 17:32:03 +00:00