Commit Graph

78472 Commits

Author SHA1 Message Date
he 6e11a90e46 Add an overlooked #if NBPFILTER > 0 / #endif. 2005-11-19 21:09:17 +00:00
skrll 541652ce7b Adapt to new net80211(9).
Thanks to dan@ and Kouichirou Hiratsuka for testing.
2005-11-19 08:06:03 +00:00
riz ba27c061d3 Move the (ALTQ-conditional) declaration of struct altq_pktattr pktattr
into ieee80211_deliver_data(), since the code which uses it has been
moved there.  Fixes build with options ALTQ.

reviewed by christos@
2005-11-19 01:06:21 +00:00
bouyer 44453e12b8 Regen: save offset at disconnect after a data phase without save data pointer. 2005-11-18 23:11:38 +00:00
bouyer 98fae666e4 Some drives disconnect after the last data phase without a save data pointer
message. In such case we would not update resid with the proper value
(eventually resid would not be updated at all if there was only one data
phase). To fix this, have the script save the offset in the data tables at
disconnect time if there was a transfer, and use this to compute the resid
if the current offset is 0.
Problem reported and patch tested by edwin, Roy Bixler and YAMAMOTO Takashi.
Fix kern/31990 by YAMAMOTO Takashi.
2005-11-18 23:10:32 +00:00
rpaulo 4d1d9eb828 regen 2005-11-18 21:58:20 +00:00
martin b274428efe Only call ieee80211_init() in kernels that include some wlan stuff. 2005-11-18 21:55:14 +00:00
rpaulo 7282bf0378 It's really PCI7x21/7x11 Cardbus Controller. 2005-11-18 21:55:13 +00:00
martin 7d5d371636 Only call ieee80211_init() in kernels that include some wlan stuff. 2005-11-18 21:55:13 +00:00
rpaulo a1c9602de5 regen 2005-11-18 21:46:11 +00:00
rpaulo 924d40ef97 Add a bunch of devices:
o Intel 82801FBM ICH6M LPC Interface Bridge
    o Intel 82801FB/FR PCI Express Port #2
    o TI PCIxx21/x515 Cardbus Controller
    o TI PCI7x21/7x11 IEEE 1394 Host Controller
    o TI PCIxx11/21 Integrated FlashMedia Controller
2005-11-18 21:40:14 +00:00
skrll bd636a6d23 Register these crypto modules. 2005-11-18 16:57:22 +00:00
skrll 302689559d Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
2005-11-18 16:53:56 +00:00
skrll dc2bd8a8cf Resolve conflicts. 2005-11-18 16:48:31 +00:00
skrll 38d4ca67e5 Resolve conflicts. Changelog to follow. 2005-11-18 16:42:22 +00:00
skrll 87515e34ff Resolve conflicts and adapt to NetBSD.
Thanks to dyoung@, scw@, and perry@ for help testing.

2005-08-30 15:27  avatar

Properly set ic_curchan before calling back to device driver to do channel
switching(ifconfig devX channel Y).  This fix should make channel changing
works again in monitor mode.

Submitted by:	sam
X-MFC-With:	other ic_curchan changes

2005-08-13 18:50  sam

revert 1.64: we cannot use the channel characteristics to decide when to
do 11g erp sta accounting because b/g channels show up as false positives
when operating in 11b.

Noticed by:	Michal Mertl

2005-08-13 18:31  sam

Extend acl support to pass ioctl requests through and use this to
add support for getting the current policy setting and collecting
the list of mac addresses in the acl table.

Submitted by:	Michal Mertl (original version)
MFC after:	2 weeks

2005-08-10 18:42  sam

Don't use ic_curmode to decide when to do 11g station accounting,
use the station channel properties.  Fixes assert failure/bogus
operation when an ap is operating in 11a and has associated stations
then switches to 11g.

Noticed by:	Michal Mertl
Reviewed by:	avatar
MFC after:	2 weeks

2005-08-10 17:22  sam

Clarify/fix handling of the current channel:
o add ic_curchan and use it uniformly for specifying the current
  channel instead of overloading ic->ic_bss->ni_chan (or in some
  drivers ic_ibss_chan)
o add ieee80211_scanparams structure to encapsulate scanning-related
  state captured for rx frames
o move rx beacon+probe response frame handling into separate routines
o change beacon+probe response handling to treat the scan table
  more like a scan cache--look for an existing entry before adding
  a new one; this combined with ic_curchan use corrects handling of
  stations that were previously found at a different channel
o move adhoc neighbor discovery by beacon+probe response frames to
  a new ieee80211_add_neighbor routine

Reviewed by:	avatar
Tested by:	avatar, Michal Mertl
MFC after:	2 weeks

2005-08-09 11:19  rwatson

Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and
IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to
ifnet.if_drv_flags.  Device drivers are now responsible for
synchronizing access to these flags, as they are in if_drv_flags.  This
helps prevent races between the network stack and device driver in
maintaining the interface flags field.

Many __FreeBSD__ and __FreeBSD_version checks maintained and continued;
some less so.

Reviewed by:	pjd, bz
MFC after:	7 days

2005-08-08 19:46  sam

Split crypto tx+rx key indices and add a key index -> node mapping table:

Crypto changes:
o change driver/net80211 key_alloc api to return tx+rx key indices; a
  driver can leave the rx key index set to IEEE80211_KEYIX_NONE or set
  it to be the same as the tx key index (the former disables use of
  the key index in building the keyix->node mapping table and is the
  default setup for naive drivers by null_key_alloc)
o add cs_max_keyid to crypto state to specify the max h/w key index a
  driver will return; this is used to allocate the key index mapping
  table and to bounds check table loookups
o while here introduce ieee80211_keyix (finally) for the type of a h/w
  key index
o change crypto notifiers for rx failures to pass the rx key index up
  as appropriate (michael failure, replay, etc.)

Node table changes:
o optionally allocate a h/w key index to node mapping table for the
  station table using the max key index setting supplied by drivers
  (note the scan table does not get a map)
o defer node table allocation to lateattach so the driver has a chance
  to set the max key id to size the key index map
o while here also defer the aid bitmap allocation
o add new ieee80211_find_rxnode_withkey api to find a sta/node entry
  on frame receive with an optional h/w key index to use in checking
  mapping table; also updates the map if it does a hash lookup and the
  found node has a rx key index set in the unicast key; note this work
  is separated from the old ieee80211_find_rxnode call so drivers do
  not need to be aware of the new mechanism
o move some node table manipulation under the node table lock to close
  a race on node delete
o add ieee80211_node_delucastkey to do the dirty work of deleting
  unicast key state for a node (deletes any key and handles key map
  references)

Ath driver:
o nuke private sc_keyixmap mechansim in favor of net80211 support
o update key alloc api

These changes close several race conditions for the ath driver operating
in ap mode.  Other drivers should see no change.  Station mode operation
for ath no longer uses the key index map but performance tests show no
noticeable change and this will be fixed when the scan table is eliminated
with the new scanning support.

Tested by:	Michal Mertl, avatar, others
Reviewed by:	avatar, others
MFC after:	2 weeks

2005-08-08 06:49  sam

use ieee80211_iterate_nodes to retrieve station data; the previous
code walked the list w/o locking

MFC after:	1 week

2005-08-08 04:30  sam

Cleanup beacon/listen interval handling:
o separate configured beacon interval from listen interval; this
  avoids potential use of one value for the other (e.g. setting
  powersavesleep to 0 clobbers the beacon interval used in hostap
  or ibss mode)
o bounds check the beacon interval received in probe response and
  beacon frames and drop frames with bogus settings; not clear
  if we should instead clamp the value as any alteration would
  result in mismatched sta+ap configuration and probably be more
  confusing (don't want to log to the console but perhaps ok with
  rate limiting)
o while here up max beacon interval to reflect WiFi standard

Noticed by:	Martin <nakal@nurfuerspam.de>
MFC after:	1 week

2005-08-06 05:57  sam

fix debug msg typo

MFC after:	3 days

2005-08-06 05:56  sam

Fix handling of frames sent prior to a station being authorized
when operating in ap mode.  Previously we allocated a node from the
station table, sent the frame (using the node), then released the
reference that "held the frame in the table".  But while the frame
was in flight the node might be reclaimed which could lead to
problems.  The solution is to add an ieee80211_tmp_node routine
that crafts a node that does exist in a table and so isn't ever
reclaimed; it exists only so long as the associated frame is in flight.

MFC after:	5 days

2005-07-31 07:12  sam

close a race between reclaiming a node when a station is inactive
and sending the null data frame used to probe inactive stations

MFC after:	5 days

2005-07-27 05:41  sam

when bridging internally bypass the bss node as traffic to it
must follow the normal input path

Submitted by:	Michal Mertl
MFC after:	5 days

2005-07-27 03:53  sam

bandaid ni_fails handling so ap's with association failures are
reconsidered after a bit; a proper fix involves more changes to
the scanning infrastructure

Reviewed by:	avatar, David Young
MFC after:	5 days

2005-07-23 01:16  sam

the AREF flag is only meaningful in ap mode; adhoc neighbors now
are timed out of the sta/neighbor table

2005-07-23 00:25  sam

o move inactivity-related debug msgs under IEEE80211_MSG_INACT
o probe inactive neighbors in adhoc mode (they don't have an
  association id so previously were being timed out)

MFC after:	3 days

2005-07-22 22:11  sam

split xmit of probe request frame out into a separate routine that
takes explicit parameters; this will be needed when scanning is
decoupled from the state machine to do bg scanning

MFC after:	3 days

2005-07-22 21:48  sam

split 802.11 frame xmit setup code into ieee80211_send_setup

MFC after:	3 days

2005-07-22 18:57  sam

simplify ic_newassoc callback

MFC after:	3 days

2005-07-22 18:54  sam

simplify ieee80211_ibss_merge api

MFC after:	3 days

2005-07-22 18:50  sam

add stats we know we'll need soon and some spare fields for future expansion

MFC after:	3 days

2005-07-22 18:45  sam

simplify tim callback api

MFC after:	3 days

2005-07-22 18:42  sam

don't include 802.3 header in min frame length calculation as it may
not be present for a frag; fixes problem with small (fragmented) frames
being dropped

Obtained from:	Atheros
MFC after:	3 days

2005-07-22 18:36  sam

simplify ieee80211_node_authorize and ieee80211_node_unauthorize api's

MFC after:	3 days

2005-07-22 18:31  sam

simplifiy ieee80211_send_nulldata api

MFC after:	3 days

2005-07-22 18:29  sam

simplify rate set api's by removing ic parameter (implicit in node reference)

MFC after:	3 days

2005-07-22 18:21  sam

reject association requests with a wpa/rsn ie when wpa/rsn is not
configured on the ap; previously we either ignored the ie or (possibly)
failed an assertion

Obtained from:	Atheros
MFC after:	3 days

2005-07-22 18:16  sam

missed one in last commit; add device name to discard msgs

2005-07-22 18:13  sam

include device name in discard msgs

2005-07-22 18:12  sam

add diag msgs for frames discarded because the direction field is wrong

2005-07-22 18:08  sam

split data frame delivery out to a new function ieee80211_deliver_data

2005-07-22 18:00  sam

o add IEEE80211_IOC_FRAGTHRESHOLD for getting+setting the
  tx fragmentation threshold
o fix bounds checking on IEEE80211_IOC_RTSTHRESHOLD

MFC after:	3 days

2005-07-22 17:55  sam

o add IEEE80211_FRAG_DEFAULT
o move default settings for RTS and frag thresholds to ieee80211_var.h

2005-07-22 17:50  sam

diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use
it instead of -1

2005-07-22 17:37  sam

add flags missed in last merge

2005-07-22 17:36  sam

Diff reduction against p4:
o add ic_flags_ext for eventual extention of ic_flags
o define/reserve flag+capabilities bits for superg,
  bg scan, and roaming support
o refactor debug msg macros

MFC after:	3 days

2005-07-22 06:17  sam

send a response when an auth request is denied due to an acl;
might be better to silently ignore the frame but this way we
give stations a chance of figuring out what's wrong

2005-07-22 06:15  sam

remove excess whitespace

2005-07-22 05:55  sam

use IF_HANDOFF when bridging frames internally so if_start gets
called; fixes communication between associated sta's

MFC after:	3 days

2005-07-11 04:06  sam

Handle encrypt of arbitarily fragmented mbuf chains: previously
we bailed if we couldn't collect the 16-bytes of data required
for an aes block cipher in 2 mbufs; now we deal with it.  While
here make space accounting signed so a sanity check does the
right thing for malformed mbuf chains.

Approved by:	re (scottl)

2005-07-11 04:00  sam

nuke assert that duplicates real check

Reviewed by:	avatar
Approved by:	re (scottl)
2005-11-18 16:40:08 +00:00
skrll 931fb40431 Import FreeBSD's net80211(9) of 1-nov-2005 2005-11-18 16:20:29 +00:00
hira 23426c5438 Regen. 2005-11-18 11:31:41 +00:00
hira b05e6b060b Correct entry of vendor ID 0x0d8c. It's C-Media, not ABC.
Confirmed by augustss@.
2005-11-18 11:29:47 +00:00
hira c9370bf9e5 Regen. 2005-11-17 18:12:59 +00:00
hira 8bc7a4c07b Correct product ID of Buffalo WLI-U2-KG54-AI. 2005-11-17 18:12:08 +00:00
christos c3ae1990ca Regen 2005-11-17 17:09:05 +00:00
christos 7faedc67d3 need the non-compat version of shm.h too. 2005-11-17 17:07:03 +00:00
tsutsui bb0b8d6f60 Define boolean_t if defined(_STANDALONE) so that some sources
can be shared between kernel and bootloaders.
2005-11-17 16:12:21 +00:00
bouyer 3506fa3a54 After a reset don't wait for drives to come ready if there's no drives.
Fix a 30s hang after resume. Problem reported and fix tested by Brian de Alwis.
2005-11-16 23:39:08 +00:00
uwe 8247051e62 ANSIify. Use uint<N>_t. Drop trailing whitespace.
Same binary code is generated.
2005-11-16 23:24:44 +00:00
jld 55b8d39e63 Correct minor precedence mistakes in updates to pm_stats.wired_count 2005-11-16 22:41:20 +00:00
uwe b9e94621c5 Use uint<N>_t. 2005-11-16 22:10:58 +00:00
uwe 6c31b67603 Use uint<N>_t. Drop trailing whitespace. 2005-11-16 21:42:50 +00:00
dsl d12c019f70 For some peverse reason the ISO code has to have the same template for
it's iso_pcbconnect() as the IP stack.
2005-11-16 20:44:19 +00:00
christos d1219303ac PR/31885: Stephane Witzmann: Force pci mode 1 on SIS 741. 2005-11-16 16:08:36 +00:00
tsutsui 1b00f38f4f Remove the following item:
>	-   if (ipending & INT_MASK_REAL_DEV) == 0,
>	    softnet() and softclock() are handled with all interrupt disabled.
>		-> overblocking, possibly causes missing hardclock()

XXX: It seems some other mips ports (algor, evbmips, pmax, sgimips)
XXX: also have the similar problem.
2005-11-16 14:25:15 +00:00
macallan 648f3c825b - ansify
- pick some KNF nits
- remove trailing whitespaces
- remove some useless commented out code
2005-11-16 04:25:28 +00:00
uwe 8fbe0d8575 Drop trailing whitespace. 2005-11-16 03:00:23 +00:00
uwe 1cb1ba5ffa Drop trailing whitespace. 2005-11-16 02:15:08 +00:00
uwe 1664ea4ae9 ANSIify function declarations/defintions. Use uint<N>_t.
Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
2005-11-16 02:13:18 +00:00
uwe ec05898db9 ANSIify. Use uint<N>_t. Drop unnecessary inlcudes.
Declare as static everything we don't need to export.
2005-11-16 02:10:31 +00:00
uwe bcb7ac1eae ANSIify. Declare as static everything we don't need to export. 2005-11-16 01:47:58 +00:00
uwe 901a66afbb ANSIify. 2005-11-16 01:46:44 +00:00
uwe 03fe068a2f ANSIify. Use uint<N>_t. Drop unnecessary includes.
Drop trailing whitespace.
2005-11-16 01:39:27 +00:00
uwe e6942192ef Duplicate open curlies in both #if and #else parts confuse
paren-matching in editors, drop them and add one after #endif.
2005-11-16 01:14:35 +00:00
uwe 3f1973ce02 Drop unnecessary includes and extern declarations.
Declare match/attach routines static.
2005-11-16 01:09:49 +00:00
uwe 60ed1ea4ce ANSIify function declarations/defintions. Use uint<N>_t.
Propagate "static" to function definitions.  Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
2005-11-16 00:49:02 +00:00
dsl c24781af04 Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.
2005-11-15 18:39:46 +00:00
matt 9b978162a2 Add MPC5200 SVR definition 2005-11-15 18:26:49 +00:00
tsutsui d9a0be54d3 Explicitly enable interrupts before softintr is handled as noted
in the TODO file. At least this fixes "sn0: receive buffers exhausted"
messages on my NEC-JC94.

XXX: does anyone know what "Dont reenable" comment means, which was
XXX: there since initial import of pica (not arc).
2005-11-15 15:07:36 +00:00
tsutsui b7deaff52a Reflect MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV removal. 2005-11-15 15:00:15 +00:00
tsutsui 8a69f0ef96 Remove MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV macro and
use MIPS_INT_MASK_5 and MIPS3_HARD_INT_MASK directly.
They were not used since interrupt service function was
moved from MI mips/trap.c to MD part long ago.
2005-11-15 14:03:20 +00:00
tsutsui 45991188b7 Remove COPY_SIGCODE definition, which is not used anywhere. 2005-11-15 13:45:30 +00:00
tsutsui a452ef42e4 constify 2005-11-15 12:12:21 +00:00
tsutsui c6c355d343 Remove netisr handling from the list since arc has switched to
MI mips softintr.c (though it still uses splhigh()/splx() pair
and maybe it's better to use atomic insns).
2005-11-15 12:09:43 +00:00
jonathan de85711ee1 Correct a performance bug from Bill Paul's original FreeBSD bge(4) driver:
Each call to the FreeBSD bge_start() routine the transmit producer
pointer index from the chip mailbox register BGE_MBX_TX_HOST_PROD0_LO.
The local copy of that value is then updated by bge_encap() as
bge_encap() encapsulates packets in the Tx ring. If bge_encap()
succeds in encpuslating one or more packets, bge_start() tells the
chip to start sending the newly-encinitiates writes the new value back
to the chip mailbox register.

However, comparison of the Linux drivers (Broadcom-supplied and
open-source tg3.c) and to the OpenSolaris driver confirms that
register BGE_MBX_TX_HOST_PROD0_LO is write-only to software.
Thus, we can just keep a copy in the softc, and eliminate the
(expensive) PCI register write on each call to bge_start().

``Make it so''.
2005-11-15 06:05:44 +00:00
uwe 0ec5f35b6c ANSIify. Same code is generated.
While here, collect in one place prototypes that were scattered
throughout the file, apply static to prom_cn* consistently.
2005-11-14 22:48:34 +00:00
uwe ce96890569 Protect all places that refer to _redzone with
#if defined(DEBUG) && !defined(MULTIPROCESSOR)
Makes MULTIPROCESSOR + KGDB compilable.
2005-11-14 21:40:25 +00:00
uwe 76d829a926 Halfhearted attempt to make EXTREME_DEBUG code compile again.
It should probably be just g/c'ed.
2005-11-14 19:55:12 +00:00
uwe 79d0d56355 Make this compile with DEBUG. 2005-11-14 19:33:54 +00:00
uwe 7257cf947e ANSIify. Same binary code is produced for GENERIC.MP + KGDB + DDB. 2005-11-14 19:11:24 +00:00
gdt 9238c3b84d Add (empty) INSTALL.local, parallel to GENERIC.local.
Change INSTALL kernels to include INSTALL.local instead of GENERIC.local.

With this change, one can add IPSEC in GENERIC.local and still build a
release, rather than having install kernels not fit on floppies.

Remaining nit: the PS2 install kernel includes the regular version
config file, and hence GENERIC.local.

(Posted for review on tech-pkg, encouragement to commit by lukem@, no
objections.)
2005-11-14 17:03:05 +00:00
uwe e46d129e48 ANSIify one function I missed in previous. 2005-11-14 16:04:47 +00:00
augustss 88f620ab3d Make it possible to decide endianess dynamically. From port-evbmips/31912
by "Garrett D'Amore" <garrett_damore@tadpole.com>.
2005-11-14 13:40:23 +00:00
skrll 1f381351c3 Don't use DPRINTF for previous. Doh! 2005-11-14 12:07:33 +00:00
skrll 5349e12d67 Dump the error log if we get an IWI_INTR_FATAL_ERROR interrupt. 2005-11-14 11:58:52 +00:00
hamajima 201a955e8e delete unknown options.
change root device to "?".
2005-11-14 05:09:31 +00:00
uwe 684414e729 ANSIify. Same binary code is produced for GENERIC.MP + KGDB + DDB. 2005-11-14 03:30:49 +00:00
uwe 7e29958aa5 Catch up with changes to make this compile for MULTIPROCESSOR.
While here add some #endif comments.
2005-11-14 03:11:38 +00:00
uwe 68bf470949 Catch up with the signature change of obio_find_rom_map.
Add __UNVOLATILE when zc is passed as kgdb ioarg.
2005-11-14 02:52:16 +00:00
dsl c310ecd73c Pull the boot timeout for the boot_params header.
Allows it to be set to a very large number so the boot on Soekris systems
can be interrupted.
2005-11-13 22:23:30 +00:00
uwe 53ead9a757 G/c arch/sparc/sparc/sys_process.c that has been commented out since
revision 1.1 anyway.
2005-11-13 15:26:48 +00:00
simonb 56d948d99c Switch to the libkern C versions of _insque()/_remque().
Problems building -current and pointers to the libkern versions of
these functions from Izumi Tsutsui.
2005-11-13 12:41:30 +00:00
rpaulo 585daa639d Fix a long standing typo noticed by Alex Pivovarov on PR/32061.
When people use variables like 'flag' and 'flags' in the same function
(one local and one passed as a parameter) this is prone to happen..
2005-11-13 10:47:39 +00:00
hamajima 5c90fb9a2f Add initial support for the EP9315-based Atmark Techno Armadillo-9 board. 2005-11-13 06:33:05 +00:00
riz 5c2fb87e43 syscall_fancy() is only used if either KTRACE or SYSTRACE is defined,
so only compile it if one or the other is defined.  An amd64 INSTALL
kernel now compiles again.  :)

Approved by matt@ .
2005-11-13 00:14:57 +00:00
macallan 0ea32fbae1 Add hardware cursor support, needs testing. 2005-11-12 23:25:46 +00:00
yamt 89bc307830 genfs_getpages:
- add an assertion.
- call VOP_STRATEGY of underlying vnode directly, rather than
  through the filesystem vnode.
- no need to set b_dev here because VOP_STRATEGY will take care of it.
2005-11-12 22:29:53 +00:00
rpaulo 861d507d5b regen 2005-11-12 11:54:29 +00:00
rpaulo 645b6b622a Add ACPI Three-wire Device Bus. 2005-11-12 11:53:30 +00:00
dsl d2a54a3d28 No longer needed, use installboot -e -oconsole=com0 /tftproot/pxeboot_ia32.bin 2005-11-12 09:44:27 +00:00
dsl 46704be5a0 No need to build pxeboot_com0 any more 2005-11-12 09:42:51 +00:00
hamajima 3caa0d4092 delete dummy entries for vmstat. (unnecessary since May 2005) 2005-11-12 08:17:59 +00:00
hamajima 14dc884cf3 add #include <arm/ep93xx/epgpioreg.h>. 2005-11-12 05:34:28 +00:00
hamajima 7959c31a5f add new EP93xx device drivers.
epgpio: GPIO Interface (support gpio(4))
	epled:  LED on epgpio
	eppcic: PCMCIA Interface
	eprtc:  Realtime clock
	epwdog: Watchdog timer

changes
	ep93xx_intr: add dummy entries to keep vmstat happy.
	epclk:       I use Timer1 and generate 100Hz if set.
	epe:         attach epclk and epgpio first.
	             fetch the Ethernet address from property if set.
	             I use config flags and modify MDCDIV.
2005-11-12 05:33:23 +00:00
simonb 9e6cd07c80 Adjust the S variable (pointer to top of sys tree) so that it points to
the right place.  Fixes build problems in this directory if there's no
destdir available.
2005-11-12 04:34:54 +00:00
simonb 2dc62c2e27 Adjust the S variable (pointer to top of sys tree) so that it points to
the right place.  Fixes build problems in this directory.
2005-11-12 04:19:01 +00:00
chs 6c854a4076 disallow non-SA LWP syscalls for SA processes. they add no value
in this context, only headaches.
2005-11-12 02:28:31 +00:00
chs 0221acd545 in kpsignal2(), do not try to wake up a cached LWP for SA processes
in the case where we're sending SIGKILL but all LWPs are not signalable.
some LWP will wake up soon enough to process the signal, and there may
not be any LWPs in the cache to wake up anyway.  fixes PR 28886 and PR 26771.
also, add a missing "break" pointed out by yamt.
2005-11-12 02:27:48 +00:00
simonb 772f8208fc Copyright maintenance - only include the copyrights from the original
sys/*.h files that were in the files at the time the old structures
were present.
2005-11-12 00:39:22 +00:00
simonb a526291103 Switch to the MIPS generic soft interrupt code instead of using
port-specific code.
2005-11-11 23:45:55 +00:00
chs 001ec1422b include additional headers that are now needed. 2005-11-11 23:22:08 +00:00
jdolecek 95d0b66d28 undo the linux_sys_exit_group() change for now - complete CLONE_THREAD support
is necessary for this to work properly
2005-11-11 22:45:41 +00:00
dsl e70304f781 Make a baud rate of zero cause the baud rate divisor be read and converted
to the current baud rate.
That way we use the same baud rate as the system BIOS (or whatever).
Rather useful for pxeboot.
2005-11-11 22:25:09 +00:00
dsl 80d1184f76 Take the console (etc) parameters from the patchable header, instead of
hard-coded constants.
Now the updated installboot can be used to modify the console and baud rate.
2005-11-11 21:42:13 +00:00
christos e68103df2a move compat code out. 2005-11-11 17:11:40 +00:00
christos 88056ee1bd Move more compat stuff from sys. 2005-11-11 17:10:42 +00:00
yamt 6a17dd42f4 - ignore truncation for VCHR/VBLK/VFIFO as it used to be
before yamt-vop merge.  PR/32049 from Atsushi Onoe.
- reject setattr which attempts to change size of VLNK/VSOCK.
2005-11-11 15:50:57 +00:00
yamt 33a6ea7764 CIRCLEQ_FOREACH/CIRCLEQ_FOREACH_REVERSE: allow to iterate const circleq. 2005-11-11 15:04:04 +00:00
simonb 0fa775d643 Remove long unused file. 2005-11-11 12:26:15 +00:00
tron 19c262ce51 Include "sys/ipc.h" to get definition of "ipc_perm14" structure.
This fixes the build of "pecoff_exec" LKM.
2005-11-11 11:59:53 +00:00
simonb a21c456e2e Call nanotime() directly, instead of doing the
microtime()/TIMEVAL_TO_TIMESPEC() dance.
2005-11-11 07:07:42 +00:00
simonb 1375f32e58 Don't hide the panic if the CPU devices present can't be figured out
in sbobio_attach(). We really want to know if this is the case all
the time, and also fixes GCC warnings about possibly uninitialised
variables.
2005-11-11 06:27:09 +00:00
simonb 866c71d986 Build libkern as a .o if LKMs are enabled so that all libkern functions
are available to LKMs, not just those needed by the kernel at link time.

From PR port-mips/31857 from Takehiko NOZAKI.
2005-11-11 06:22:04 +00:00
kochi ec63345182 regen. 2005-11-11 02:11:07 +00:00
kochi 2d0bb278d1 add HPET timer PNP ID.
reported in PR32040 by  Nicolas Joly
2005-11-11 02:10:09 +00:00
martin a332f6615a Use mstohz() for timeout calculations.
Avoid local stack addresses as tsleep identifiers.
2005-11-10 21:25:35 +00:00
christos 82eba32c06 need compat/sys/shm.h 2005-11-10 18:47:53 +00:00
christos 306385b2a5 regen. 2005-11-10 18:47:31 +00:00
christos e2f2b17e31 add the new compat header. 2005-11-10 18:47:16 +00:00
christos 60305c1ba1 fix debugging. 2005-11-10 18:45:36 +00:00
christos 032305b8bd fix debugging; remove some defines that are now in the header file. 2005-11-10 18:45:20 +00:00
christos 75fdf989ea These two really don't need the new header. 2005-11-10 18:43:32 +00:00
christos 2a4a5534b4 Include new compat header. 2005-11-10 18:39:30 +00:00
christos 0b0496e3d5 move the compat code out of the sys file. 2005-11-10 18:36:20 +00:00
christos 4098e6b83d expose some more internal implementation constants and variables used by
emulations.
2005-11-10 18:35:15 +00:00
christos 65de380a95 More ipc support for linux; makes oracle work. From chuq and
jlrodriguez at terra dot es
2005-11-10 18:33:37 +00:00
peter a7ccc64926 Add an obviously missing break in a switch statement.
Adjusting brightness and contrast now works!
2005-11-10 15:53:05 +00:00
tsutsui 8fa905e040 Check possibility of virtual alias correctly in primaly_cache_is_2way case
(though I guess all those CPUs have L1 cache larger than 8KB).
2005-11-10 15:31:17 +00:00
christos 2fa7cb2348 Remove redundant assignment (from Liam Foy) 2005-11-10 13:40:38 +00:00
rpaulo 07c827131f regen 2005-11-10 13:31:03 +00:00
rpaulo 7928f127e6 Add NSC IrDA Fast Infrared Port. 2005-11-10 13:30:46 +00:00
rpaulo f5602021b6 regen 2005-11-10 13:26:34 +00:00
rpaulo 066abf15d0 Add Synaptics PS/2-style Touchpad. 2005-11-10 13:25:59 +00:00
augustss 65ee9092eb Abuse types a little less. 2005-11-10 12:05:01 +00:00
scw 92fa4843f1 Give THUMB_CODE its own 'struct undefined_handler' so we don't try to
install the same handler structure twice (for difference coprocs).

Spotted by dbj@ using QUEUEDEBUG.
2005-11-10 11:18:55 +00:00
tron f55fe966f7 Apply big endian fixes submitted by Garrett D'Amore in PR kern/32032. 2005-11-10 10:00:19 +00:00
dbj af56e26cc6 partially revert previous commit stripping arm mapping symbols
it broke ddb when DEBUG wasn't set to -g.
2005-11-10 09:42:42 +00:00
manu e75bcb9ebf Fix build problem 2005-11-09 21:56:11 +00:00
skrll 261d102fbb Typo in comment. 2005-11-09 17:54:12 +00:00
manu f98d5d856e Improve Linux exit_group emulation by sending a SIGKILL to all other
processes in the group instead of letting them live. It would be better
to properly terminate them.
2005-11-09 14:56:50 +00:00
manu f53c4d1d1e Prevent integer overflow in timout calculation.
changed DEBUG_LINUX to DEBUG_LINUX_FUTEX so that we have less debug
messages on the console
2005-11-09 14:52:18 +00:00
simonb 155c8bd666 Whitespace nit. 2005-11-09 12:47:39 +00:00
yamt 807ce4c6fc tmpfs_reg_resize: drop swap slots on truncation.
fix a problem pointed by jmmv@.
2005-11-08 23:04:03 +00:00
yamt 9df1f09b91 add a function to drop all swap slots in a given range. for tmpfs.
XXX maybe it's better to implement true truncation.
2005-11-08 23:02:22 +00:00
yamt 4868e1f967 add missing IPL_SOFTXENEVT.
pointed by Hisashi T Fujinaka on current-users@.
2005-11-08 22:57:30 +00:00
rpaulo 67a3f47423 Add a fake entry in pms_protocols array to avoid an out-of-bounds
access in do_enable() if PMS_SYNAPTICS_TOUCHPAD and PMSDEBUG are both
defined.
2005-11-08 22:12:16 +00:00
manu 26222780eb Correctly computes futex timeout. 2005-11-08 21:28:49 +00:00
tsutsui 96bd7a6fc4 Partially revert change in sys/arch/mips/mips/cache.c rev 1.27,
i.e. override mips_cache_alias_mask and mips_cache_prefer_mask
with values which match MIPS3_MAX_PCACHE_SIZE (32KB), rather than
leave them actual primary virtual indexed cache size (8KB or 16KB).
Also add comments about what the value means there.

I thought the VCE on R4000/R4400 occurred only if actual virtual alias
was detected because there was an article which mentioned that VCE
detection logic was different according to primary cache size and
it looked reasonable. But all other articles I can find later
(http://www.linux-mips.org/archives/linux-mips/1998-05/msg00084.html etc.)
claimes that VCE detection logic always verifies all 3 bits
between vaddr[14:12] and PIdx[2:0] regardless of primary cache size
(i.e. VCE could occur even if there is no actual virtual alias), and
in fact VCED still happens with the mask values adjusted for 16KB L1
but it doesn't with ones for MIPS3_MAX_PCACHE_SIZE on my R4400 news5000.
2005-11-08 15:31:10 +00:00
hannken 4dafa089d4 vput() -> vrele(). Vnode is already unlocked.
With much help from Pavel Cahyna.

Fixes PR 32005.
2005-11-08 11:35:51 +00:00
yamt 06cf1c7649 copy.S should belong to MD_SFILES, not MD_CFILES. 2005-11-08 01:02:39 +00:00
tsutsui fe35cfd50c Regen from pcmciadevs rev 1.213:
> Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
> If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
> never matches the device.
2005-11-07 16:39:16 +00:00
tsutsui cf09fb3893 Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
never matches the device.
2005-11-07 16:37:28 +00:00
manu d72135b371 Include linux_machdep.h so that LINUX_UNAME_ARCH ges defined (fixes
uname emulation)
2005-11-07 14:17:45 +00:00
yamt 443e88c5cf some assym cleanup.
- move copyin and friends from locore.S to their own file, copy.S.
  share it between i386 and xen.
- defparam KERNBASE and kill KERNBASE_LOCORE hack.
- add more symbols to assym.h and use it where appropriate.
2005-11-07 11:42:34 +00:00
yamt 83c44381ee Xsoftnet: remove an unnecessary assignment. 2005-11-07 08:52:07 +00:00
manu a5d2387dbb regen 2005-11-06 21:50:28 +00:00
dsl 80c644a6b9 Explicitly default the input baud rate (c_ispeed) to the output baud rate (c_ospeed)
instead of setting it to zero.  Otherwise nothing ever sets it unless some code
explicitly changes the baud rate.  For a serial console (in particular) we want
to use the baud rate set by the bios (or whatever) and used by theboot code.
This is the way it was before a 'new version of com driver' was added in 1997 (rev 1.99)
2005-11-06 21:34:37 +00:00
manu 7505cb92a6 Back out sched_{set|get}affinity addition because it breaks the
build again on i386 now it is fixed for other archs (Tom's fix and
mine got in colision)
2005-11-06 18:16:31 +00:00
chs 5332333501 in amap_cow_now(), handle the case where we have to sleep and some of the
already-copied pages are paged out.  anons that have already been copied
will have refcount == 1, whereas anons that still need to be copied will
have refcount > 1.  fixes PR 25392, PR 30257, PR 31924.
2005-11-06 15:57:32 +00:00
tron 0c24d80f02 Regen with correct RCS Ids. 2005-11-06 14:25:48 +00:00
tsutsui 7d2d9d6fe1 Bump MAXPHYS from 32K to 64K.
asc.c has now its own asc_minphys(), and both osiop and oosiop at jazzio
work fine with 64K MAXPHYS.
2005-11-06 11:15:40 +00:00
tsutsui 5c3034f5b3 - <machine/param.h> says:
"XXX Maxphys temporary changed to 32K while SCSI driver is fixed."
  I (and soda) don't know what the "SCSI driver" is, but add local
  asc_minphys() to limit max xfer size only for asc.c for now.
- According to old asc.c driver, DMA_START() is called before NCR_CMD_DMA
  command. I'm not sure which DMAC or ASC should be started first, but
  move DMA command from asc_dma_go() to asc_dma_setup().
- Disable NCR_F_DMASELECT (which allows DMA xfer for select command)
  since it caused some problem on PICA.

Now gxemul-0.3.6.2 reaches mountroot() sd0 (but can't exec /sbin/init yet).
2005-11-06 11:09:17 +00:00
tsutsui 0f4f57561c Add pcscp (aka DC-390) at pci, which is confirmed working. 2005-11-06 10:35:13 +00:00
tsutsui 830c0db95b NCRDMA_SETUP() should be called before NCR_SET_COUNT() and NCRCMD_DMA command
in ncr53c9x_select(). Tested with esp on SS1+ and sun3/80, and pcscp at pci.
2005-11-06 10:31:46 +00:00
rpaulo e15c104622 Add "Conexant CXT48". This should have a more meaningful name, but I
couldn't find it. So, I added this because it's better than printing
"unknown codec". When we find a more decent name later, we can change this.
2005-11-06 10:08:24 +00:00
manu 35f76b0ac2 ifdef out sched_{get|set}affinity for ports that don't use it yet. That
should fix build.
2005-11-05 23:44:25 +00:00
yamt df6c7b914b nfs_read: return EISDIR rather than EPERM for !VREG files. 2005-11-05 19:21:14 +00:00
tsutsui 85e05fc4a2 Remove unused and incorrect MIPS_KSEG2_TO_PHYS() and MIPS_PHYS_TO_KSEG2()
macro.
2005-11-05 18:17:36 +00:00
bouyer dfbaaaef48 ETHERCAP_VLAN_MTU is a flag for ec_capabilities, the size of the 802.1q
encaptulation header is ETHER_VLAN_ENCAP_LEN. Pointed out by der Mouse on
tech-kern.
2005-11-05 16:01:52 +00:00
martin 4daa98c618 Rename the wait channels (one was a copy&pasto, the other much too long) 2005-11-05 13:59:02 +00:00
tsutsui e3fd6c6a46 Make MIPS3_PG_SHIFT a variable and initialize it accordingly
in mips_vector_init() if options MIPS3_4100 is specified
so that kernels which have options MIPS3_4100 also work
on other MIPS3 CPUs.

XXX: now should we rename options MIPS3_4100 to options ENABLE_MIPS_R4100,
XXX: or just make MIPS3_PG_SHIFT always a variable?
2005-11-05 11:57:25 +00:00
tsutsui 67e4c0b956 Check MIPS_PRID_IMPL(cpu_id) for MIPS3_4100 CPUs at runtime to
initialize the MIPS_COP_0_TLB_PG_MASK register with their specific value.
2005-11-05 11:08:41 +00:00
tsutsui d9c04bf638 Most use of mips_paddr_to_tlbpfn() is inside if (MIPS_HAS_R4K_MMU) so
call mips[13]_paddr_to_tlbpfn() directly instead.
2005-11-05 10:57:49 +00:00
dogcow b3b0932a5d mirror manu's amd64 changes to implement linux sched_{seg,get}affinity;
the kernel and linux lkm now compile again.
2005-11-05 10:56:48 +00:00
tsutsui 6305a3d092 Remove #undef MIPS3_4100 from these files since mipsX_subr.S no longer has
#if defined(MIPS3_4100) statements.
2005-11-05 10:39:26 +00:00
tsutsui e54d906c60 Add empty <machine/wired_map.h> for the MI mips/wired_map.c. 2005-11-05 09:54:48 +00:00
tsutsui fdb3b14bb4 Adapt arc port to the new MI mips3 wired map functions.
Tested on NEC-RD94 with several PCI and jazzio devices.
2005-11-05 09:50:50 +00:00
tsutsui 74f4d162fb Add MI mips3 wired map functions based on patch in port-mips/31915
from Garrett D'Amore of Tadpole Computer Inc.
Please refer discussion filed in the PR for details.
2005-11-05 09:46:07 +00:00
manu 2ae48df4fc regen 2005-11-05 08:11:30 +00:00
manu 0cf4b35fe6 Implement more of Linux futex(2) 2005-11-05 08:07:44 +00:00
manu 41455b2ed0 Implement Linux sched_{set|get}affinity 2005-11-05 08:06:58 +00:00
manu 67fcd6abf5 Fix build when LINUX_NPTL is not defined 2005-11-05 07:26:45 +00:00
manu 2cac35470c Fix a messed up patch 2005-11-05 00:58:57 +00:00
manu 88a5eb33ed Instead of ifdef'ing __amd64__ all the Linux NPTL stuff, introduce an
ifdef LINUX_NPTL.
Also implement SETTLS flag to Linux clone()
2005-11-05 00:47:26 +00:00
christos fe1de4d6e3 PR/32003: Brian Buhrow: msdosfs doesn't properly zero out high cluster data
on non-FAT32 msdos filesystems.
2005-11-04 21:04:20 +00:00
yamt a0a8d930a4 nfs_bioread: push delayed truncation and tweak loop accordingly.
PR/31926 from Jed Davis.
2005-11-04 19:39:30 +00:00
chs df018c387b make this compile on m68k by including sys/device.h explicitly.
on other platforms it's apparently included implicitly, probably through cpu.h.
2005-11-04 17:00:43 +00:00
manu b72e0d5382 Fix machine name returned by uname on Linux 2005-11-04 16:58:14 +00:00
manu 78ad642708 regen 2005-11-04 16:57:03 +00:00
manu e7609e6478 Implement Linux futex ang gettid 2005-11-04 16:54:11 +00:00
manu 3b8100b96a register_t is not an int on amd64 2005-11-04 16:52:51 +00:00
manu e1c0c1c9dd Implement Linux futex and gettid system calls for amd64 2005-11-04 16:51:56 +00:00
manu 0a3dbc01d5 build fix 2005-11-04 16:49:55 +00:00
tsutsui 78422d0423 Check MIPS3_CONFIG_CS and adjust csizebase at runtime on MIPS_R4100 CPUs,
and remove "XXXCDC: THIS MIPS3_4100 SPECIAL CASE SHOULD GO AWAY" part
from cpuregs.h. Tested on gxemul.

BTW, cache.c doesn't have MIPS_RC32364 config which was added
in mips_machdep.c rev 1.101?
2005-11-04 16:19:31 +00:00
yamt 5936836bb1 physio:
- update uio_resid properly.
- don't miss i/o errors near the end of partition.
2005-11-04 08:39:33 +00:00
rpaulo 3de46f226c PR 31996: fix the comments for MPBIOS and MPACPI. By Damon Brodie. 2005-11-03 23:12:16 +00:00
chs ff50b97f19 fix the SYSV semop number of operations per request to be limited by
seminfo.semopm (which is tunable via the SEMOPM config variable)
rather than an arbitrary constant.
2005-11-03 16:57:03 +00:00
chs 72d7d84d98 regen 2005-11-03 16:49:09 +00:00
chs 59fddeceaa turn off DEBUG and DIAGNOSTIC in GENERIC kernels so that they
are compatible with the LKMs that are part of the release.
2005-11-03 16:48:29 +00:00
yamt 06085e8f52 - use sys/spl.h.
- add some IPL_ definitions.
2005-11-03 13:06:06 +00:00
yamt e9b064c703 a helper to implement splxxx() using splraiseipl(). 2005-11-03 12:31:32 +00:00
gdt 2de7c6cd0d Adjust signature of softdep_freefile (dummy stub which always panics
if called) to match ffs_extern.h so that kernels w/o softdep can compile.
2005-11-02 22:10:41 +00:00
yamt e81a08ca3f pool_printit: don't keep a lock when printing info.
we can't clean it up if ddb pager is quitted.
2005-11-02 14:32:54 +00:00
yamt 94809e83ec don't pass -t option to xargs unless MAKEVERBOSE is 2. 2005-11-02 14:29:52 +00:00
yamt 60df7649c9 bump to 3.99.11. yamt-vop merge. 2005-11-02 12:42:58 +00:00
yamt f3602c2466 regen. 2005-11-02 12:41:50 +00:00
yamt a748ea88dd merge yamt-vop branch. remove following VOPs.
VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE
2005-11-02 12:38:58 +00:00
dyoung ba91bb71cf Bug fix: correct the sense of an if-condition in tmpfs_spec_close:
because VOP_UPDATE() usually succeeded, spec_close() was not usually
called.  Only skip the spec_close() step if VOP_UPDATE() returns
an error result.  Now /dev/watchdog works as expected when /dev/
is a tmpfs; previously, it was impossible to disarm a user-tickled
watchdog.
2005-11-02 05:41:50 +00:00
dyoung b441f8100f Bug fix: change tmpfs_spec_bwrite from tmpfs_bwrite to vn_bwrite,
per yamt's suggestion.  Previously, if /dev/ was mounted on a tmpfs,
block device buffers were never flushed to disk.  Trying to unmount
a dirty filesystem (umount /dev/wd0e, say) caused an endless stream
of vflushbuf warnings, because tmpfs_bwrite was not flushing buffers.
The fix told to me by yamt solves the problem.
2005-11-02 05:39:16 +00:00
bjh21 24f32d9b06 Put the "cache chip bug" message back on a line of its own after the CPU type
is announced, which is where it was before 1997.  This finally stops the
CPU attachment message overflowing a line on an ELC.
2005-11-01 22:49:17 +00:00
abs 8380617e54 Regen after adding Radeon 9000 PCI (0x4966) 2005-11-01 22:01:44 +00:00
abs f643837128 Add Radeon 9000 PCI (0x4966) 2005-11-01 22:00:56 +00:00
christos 8481673c7a Don't decrement the ttl, until we are sure that we can forward this packet.
Before if there was no route, we would call icmp_error with a datagram
packet that has an incorrect checksum. (From Liam Foy)
2005-11-01 21:21:09 +00:00