Commit Graph

64888 Commits

Author SHA1 Message Date
tron 5bceffec2b Handle i865 and i875P chipsets like the i845. This works good enough to
make XFree86 work with agp(4) enabled on an i865PE motherboard.
2003-07-06 12:39:41 +00:00
simonb 91dc378d5c Hardwire physmem to 32MB if not called from CFE.
This should be a kernel config option, but for now is enough to get
a sbmips GENERIC kernel running under a simulator.
2003-07-06 12:14:50 +00:00
simonb be66d7b092 Regen: Add an entry for the Intel E7505 Chipset Memory Controller Hub. 2003-07-06 12:03:07 +00:00
simonb fd566882d9 Add an entry for the Intel E7505 Chipset Memory Controller Hub. 2003-07-06 12:02:07 +00:00
jdolecek 486593e9b9 actually do gather some randomness (if it's enabled)
modelled after what elink3.c does
2003-07-06 09:12:59 +00:00
dyoung 9311a1d632 Move the logic to find out what channel to transmit a packet on
into ieee80211_get_channel, rather than duplicate it in ieee80211_ioctl
and in the ADM8211 driver.
2003-07-06 08:39:59 +00:00
dyoung 868fc8b800 Bug fix: an ad-hoc node's SSID can change at any time, so record
a change of SSID (provided it changes to a non-empty SSID) regardless
of whether it comes in a probe response or a beacon.
2003-07-06 08:27:04 +00:00
dyoung 6f114d314a With the IEEE80211_HEADER_LEN macro, accomodate hardware whose
"native" 802.11 header is a 4-address header, not the 3-address
header.
2003-07-06 08:21:41 +00:00
dyoung 725bfbdab7 More 802.11 media-handling consolidation. ieee80211_media_status
and ieee80211_media_change are factorizations of the media
status/change functions for wi and awi. Inspired by Sam Leffler/FreeBSD.
2003-07-06 08:06:20 +00:00
dyoung 030634087a Prepare to consolidate 802.11 media handling (which is handled in
code duplicated by each driver, now) into the 802.11 framework.
2003-07-06 07:54:43 +00:00
dyoung 321cda0a59 In debug messages, tell on which channel we send a mgmt frame. 2003-07-06 07:33:57 +00:00
tron 896fd5c944 Add hardware random number generator support for Intel 865 and
875P chipsets.
2003-07-06 07:24:31 +00:00
tron c5b347e780 Regen. 2003-07-06 07:19:58 +00:00
tron b3b7e59311 Correct names and descriptions for i875 entries to be consistent with
other Intel chipsets.
2003-07-06 07:19:38 +00:00
dyoung a068a2bdcd In debug messages, use the right MAC address to report which client
turned off power-saving mode.
2003-07-06 07:18:38 +00:00
dyoung 2c1f7efe46 Improved RSSI->dBm conversion, especially for Lucent cards, for
which I borrowed some conversion constants from the Linux orinoco_cs
driver.
2003-07-06 07:15:55 +00:00
tron c819e82fbe Regen. 2003-07-06 07:13:39 +00:00
tron 6a0a69b723 Add entries for Intel 865PE chipset. 2003-07-06 07:13:17 +00:00
kochi 473dc8a475 make bootup messages prettier 2003-07-06 05:24:18 +00:00
kochi 9ab543513d o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
o delete usage of ENABLE_DEBUGGER

As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.
2003-07-06 04:03:21 +00:00
kochi 03c72d8b24 Fix typo. 2003-07-06 03:50:07 +00:00
tsutsui c42dcc7de8 More misc fixes for forthcoming hp300 MI SCSI support:
- Don't use SCMD_XFR command in message-in phase and status phase.
   It causes unexpected hangs on heavy load. Instead transfer data
   manually via TEMP register by SCMD_SET_ACK and SCMD_RST_ACK.
 - Don't set SCMD_ICPT_XFR in spc_dataout_pio() and spc_msgout().
 - Rewrite spc_datain_pio() to handle FIFO more properly.
2003-07-05 19:50:17 +00:00
tsutsui e30199e1ff Misc cleanup:
- disable debug code by default
 - use MI minphys()
 - add proper delay in spc_find()
 - initialize TMOD register in spc_reset()
 - wrap a sanity check with #ifdef DIAGNOSTIC (sync with aic6360.c)
 - no need to set LUN bits in SCSI command which should be done in mid-layer
 - set proper resid even in error case
 - fix/remove some bogus comments
2003-07-05 19:31:11 +00:00
tsutsui cfa57f87aa Use bus_space_{read,write}_multi_1() for PIO data transfers. 2003-07-05 19:04:48 +00:00
tsutsui 6615ddefa9 Rename some MI mb89352 functions for consistency:
spcintr() -> spc_intr()
 spcattach() -> spc_attach()
2003-07-05 19:00:16 +00:00
tsutsui 443eeab7de Some cosmetics:
- Remove useless macro.
 - Remove ^L characters.
 - KNF a comment.
2003-07-05 18:56:55 +00:00
tsutsui 3b48b7c661 Rename functions to avoid namespace conflicts:
spc_match() -> spc_mainbus_match()
 spc_attach() -> spc_mainbus_attach()
2003-07-05 18:43:11 +00:00
tsutsui ae2b6b31a0 Add some missing register prefixes. 2003-07-05 18:40:31 +00:00
tsutsui acc15558d0 Some cosmetics on bus_space_tag_t initialization. 2003-07-05 16:57:04 +00:00
simonb aa57e31a39 Make mptrap.o depend on assym.h; fixes GENERIC.MP -j N kernel build. 2003-07-05 16:56:10 +00:00
tsutsui f60951ffdb Initialize bus_space_tag in rtc_softc properly in rtcattch(). 2003-07-05 16:48:12 +00:00
simonb 27320ae2b1 Include <sys/stdint.h> if _STANDALONE (instead of <stdint.h>). 2003-07-05 16:33:38 +00:00
tsutsui 2dcba30bb6 cosmetics 2003-07-05 16:21:17 +00:00
dogcow ccd442eae3 gcc 3.2 complained about the missing __volatile and extra tokens after #endif. 2003-07-05 06:53:08 +00:00
wiz 8b9972b9b0 1.179 had the commit message "Use CFATTACH_DECL()." but actually
added a paragraph for the non-existent (or just not in-tree)
als driver -- remove that paragraph again to avoid confusion.
2003-07-04 18:56:30 +00:00
itojun cf9bc4aa5b prototypes must not have variable name 2003-07-04 07:42:04 +00:00
itojun 6ed23b68d5 prototypes must not have variable name. 2003-07-04 07:41:18 +00:00
simonb beadae28a9 Add some dependancies on assym.h; helps "make -j N" kernel builds. 2003-07-04 03:48:01 +00:00
enami 5b4483be52 Actually move the prototype of native_to_linux_sigaltstack here. 2003-07-04 03:04:11 +00:00
thorpej 1656a492ee Set the mac-addr property of the on-chip emac device. 2003-07-04 02:35:38 +00:00
thorpej d00b22d0e7 Consult the "mac-addr" property associated with the emac device in
the dev_propdb rather than referencing board_data.
2003-07-04 02:34:47 +00:00
thorpej d796e65ef5 Use device_register() to set the "frequency" property on the UART. 2003-07-04 02:21:50 +00:00
thorpej 5b7c5eadea Consult the "frequency" property associated with the device in the
dev_propdb, rather than using "board_info".
2003-07-04 02:21:02 +00:00
thorpej 1a4648d9ad Add device_register(). 2003-07-04 01:59:19 +00:00
thorpej d876aa082a Nuke the "alchemy_info" stuff, and just use the dev_propdb to set
the mac-addr property for the Au1x00 on-chip MACs.
2003-07-04 01:19:58 +00:00
itojun fc401b7586 fix missing check for taillen against pkthdr.len. markus@openbsd 2003-07-04 00:49:18 +00:00
thorpej 69d5b64f8a Do an splhigh() before doing splserial(), in the event that
serial isn't actually higher than high.
2003-07-04 00:37:23 +00:00
thorpej 483fad3a3b Use splserial() instead of splhigh() to block interrupt during
autoconfiguration.  XXX We really need an splextreme() for when
we really mean "block everything".
2003-07-04 00:34:48 +00:00
thorpej 5432dacfcb Provide a hook for board-specific code to register a device_register()
function.
2003-07-04 00:33:20 +00:00
thorpej 3ce3399c7b Add a dev_propdb to hold device properties. Properties are already being
used in an ad hoc way by a couple of eval board ports, so might as well
tidy it up a little and add some formality.  (And, yes, I need to use it
in another eval board port.)
2003-07-04 00:24:29 +00:00
christos 76da28320e use the real linux_rt_sigreturn. 2003-07-03 21:25:45 +00:00
christos 28f544c476 Regen. 2003-07-03 21:25:07 +00:00
christos c23e21bca5 Implement linux_rt_sigreturn for real. Add a hack for more plausible siginfo.
The java segv handler still segv's again inside the signal handler, but our
sample test program now works [gets the proper ucontext].
2003-07-03 21:24:27 +00:00
christos 72af603189 make the converter of sigaltstack public. 2003-07-03 21:22:32 +00:00
kochi 3c3271accf Cleanup usage of ENABLE_DEBUGGER/ACPI_DEBUGGER/DDB.
By this change, ACPI debugger/disassembler are only
compiled when both DDB and ACPI_DEBUG options are
specified.  This change also reduces the kernel size
a little when ACPI_DEBUG is not specified.
2003-07-03 14:37:34 +00:00
rjs 9c1d55b97c Fix uninitialized variable. 2003-07-03 13:19:30 +00:00
scw b8b2b1d895 Fix resident page accounting for the kernel pmap. 2003-07-03 13:18:42 +00:00
drochner 9897b6dfac maintain statistics counters 2003-07-03 11:36:18 +00:00
drochner 8c4f2074f2 avoid a gcc3 warning about a never-true comparision in the
mstohz() macro
2003-07-03 11:24:13 +00:00
drochner 71bedfd458 Avoid an obscure gcc3 complaint about
"dereferencing type-punned pointer" by a cast to "void *".
I don't completely understand the warning, but it helps.
2003-07-03 11:12:32 +00:00
drochner 29eaa7cc18 "(u_short > 0xffff)" is never true, as gcc3 found out 2003-07-03 10:59:12 +00:00
ragge 3e74a824b6 Make IFQ_MAXLEN possible to set as an config-file option. 2003-07-03 09:24:19 +00:00
ragge 9e2d68cb61 Make it possible to set TCP_INIT_WIN and TCP_INIT_WIN_LOCAL in the config
file as options.
2003-07-03 08:28:16 +00:00
itojun 022df20c75 minor KNF 2003-07-03 05:03:53 +00:00
enami 6ad9178b4e defparam SOMAXKVA. 2003-07-03 01:42:10 +00:00
ragge cb6b5a36c4 Make the fast-search stuff an option. There are still reports on
problem with it.
2003-07-02 21:43:49 +00:00
ragge ef18f28fe4 Make somaxkva modifyable via sysctl (and compile-time) instead of
hardcoding its size.
2003-07-02 20:07:45 +00:00
ragge c6308a0598 Fix previous bug. Thanks to Enami for spotting the (obvious) error, and
to other people with much help with bug reports etc.
While fixing, change some of the code I added last time to make it
cleaner and simpler.
2003-07-02 19:33:20 +00:00
dsl 48046920d6 Fix copyright - it got mangled earlier.
Added a mention of Wolfgang Solfrank - there are probably only comments left
from the much older mbr.S that he contributed.
(Wolfgang pointed out the mangled copyright, but doesn't object to the removal
of the Tools GmbH one.)
2003-07-02 14:35:51 +00:00
yamt 3f84a2d3a1 a comment. 2003-07-02 14:07:16 +00:00
ichiro c2cac1cbd8 add sdram configration register 2003-07-02 14:03:52 +00:00
itojun d8976f36ac typo. found by markus@openbsd 2003-07-02 13:55:13 +00:00
yamt eb4e09d59f use queue.h macros. 2003-07-02 13:43:02 +00:00
yamt 82659031f4 use VFSTOUFS macro. 2003-07-02 13:41:38 +00:00
yamt 102c8a6a74 - add a new functions, lfs_writer_enter/leave, and use them instead of
duplicated code fragments.
- add an assertion.
2003-07-02 13:40:51 +00:00
yamt f3506a9599 drain dirops before aqcuiring seglock. otherwise it might deadlocks.
PR/20676 (Karl Knutsson)
2003-07-02 13:39:03 +00:00
kanaoka 63ffb11606 - Cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination.
Patch from kochi.
2003-07-02 13:18:17 +00:00
kochi 7a37dbe54d cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination 2003-07-02 12:23:25 +00:00
kochi 735150f269 print ACPI CA version 2003-07-02 11:54:43 +00:00
kochi 68dae3c110 Implement AcpiOsDerivePciId 2003-07-02 11:45:08 +00:00
ichiro 38e0b1c5c5 use struct pmap_devmap 2003-07-02 11:02:28 +00:00
ichiro 25096a1afe backout to recent changes w/o lwp changes 2003-07-02 10:40:46 +00:00
simonb c9bc6f3a9a Allow the dmesg command to show the last N bytes of the kernel message
buffer.
2003-07-02 07:05:29 +00:00
oster 1121191d31 Actually toss the comment I said I was tossing in the last commit. 2003-07-01 23:53:48 +00:00
oster 556d051c14 - toss a comment that is no longer relevant.
- alist_mutex is a holdover from the simulator days, and it
wasn't even used back then.  Toss the variable and init/destroy calls.
2003-07-01 23:50:54 +00:00
oster 111c14e12c Minor cleanup. No functional changes. 2003-07-01 23:36:01 +00:00
msaitoh 74b3acef2e - last commit (rev. 1.36) add a entry to keep model number of the PHY in
mii_softc. There are some situations to want to check model number.
- add comment
2003-07-01 22:58:48 +00:00
msaitoh d8a4a08a24 - last commit (rev. 1.32) fixes icsphy_reset()'s problem. ICSphys don't
restart auto negotiation, so it kick.
- add comment in icsphy_reset()
2003-07-01 22:51:13 +00:00
msaitoh 5af1b6934b Add ICS1889 and 1892 2003-07-01 22:46:08 +00:00
oster ead7b02a99 Toss experimental versions of some functions that were already #if 0'ed. 2003-07-01 22:43:59 +00:00
oster 971e957065 UpdateNodeHdrPtr() isn't used anywhere. Turf. 2003-07-01 22:05:39 +00:00
kanaoka 88acff6621 - Remove unneed include file. 2003-07-01 20:24:46 +00:00
drochner f2d5c0b3e3 VERY quick and VERY dirty port of the OpenBSD "txp" driver for
3Com 3C(R)990 cards. No TCP/UDP nor IPSEC offloading for now.
The ifmedia part needs some work, but I only have a 100-FX card;
hopefully someone will clean this up.
2003-07-01 20:08:51 +00:00
manu 0229e10bf3 Added a IOFBSETCOLORCONVERTTABLE method in ioframebuffer driver.
Added sanity check for user provided offsets in messages.
2003-07-01 19:15:47 +00:00
kochi 862f80594c Bugfix from FreeBSD tree:
>Fix a bug in register access.  This should fix warning messages of:
>  ACPI-0340: *** Error: Could not release ACPI Global Lock, AE_BAD_PARAMETER

Thanks for jhb@freebsd to find out this problem.
2003-07-01 17:49:57 +00:00
simonb ad51219ae3 Make this work without a populated destdir:
machine and x86 symlinks.
 Include from right places.
 Don't depend on LIBCRT0,etc.

Also for the bootxx programs, keep the ELF object during the build
process.
2003-07-01 13:36:59 +00:00
uwe 66a03d56d3 Correct the macro name for SCP0DT bit.
Addresses port-sh3/22025 by FURUKAWA Masashi.
2003-07-01 11:49:37 +00:00
christos e63f4ac6ba add text for getargs. 2003-06-30 22:20:04 +00:00
dbj f4609c793f remove __MNT_UNUSED2 since it was used by christos for MNT_GETARGS. 2003-06-30 21:22:26 +00:00
thorpej 221d313d7c Allow SOURCES to be overridden. 2003-06-30 17:54:06 +00:00
thorpej 22c08fe417 PCI-X requires that that devices updated their PCIXSR on every
config write with the device number specified in AD[15:11].  If
we don't set this field when issuing a Type 0 cycle, each device
could end of thinking it is at device 0, which can cause a number
of problems.  Doing this unconditionally should be OK when only
PCI devices are present.
2003-06-30 15:27:12 +00:00
thorpej b4031f0a49 Go to splhigh() before doing autoconfiguration. 2003-06-30 15:17:11 +00:00
ragge c04e1a5756 Disable the code I checked in yesterday; reports that samba (!) are crashing
machines with it. Will do some more tests.
2003-06-30 14:51:06 +00:00
simonb 1534c8822e ANSIfy, KNF. 2003-06-30 13:39:36 +00:00
ragge b027f1fffd Set the send queue to max(BGE_TX_RING_CNT - 1, IFQ_MAXLEN); sometimes
IFQ_MAXLEN may be choosen to a larger value than number of descriptors.
Why this setting from the beginning???
2003-06-30 13:20:21 +00:00
martin 273141ddfc Regen (Sony USB Memory Stick Slot (MSC-U03) added) 2003-06-30 12:42:27 +00:00
martin 950ba36af5 Add Sony USB Memory Stick Slot (MSC-U03),
from Katsuhisa ABE in PR 22017.
2003-06-30 12:41:37 +00:00
itojun 7e53aaa8dd better ip_mrouter_detach(). by ono@kame 2003-06-30 10:34:53 +00:00
itojun 2317e81b85 avoid ICMPv6 redirect if the packet filter rewrite dst addr to an address
on the incoming interface.  cedric@openbsd
2003-06-30 08:00:59 +00:00
itojun 38d08be727 do not generate ICMP redirect when packet filter alters ip_dst to an
address that reside on the same link.  Cedric Berger convinced me that
it is necessary.
2003-06-30 07:54:28 +00:00
itojun 842d3bee32 KNF 2003-06-30 03:30:50 +00:00
itojun 1db5330c52 freebsd code somehow crept in 2003-06-30 02:08:28 +00:00
itojun 7ded9690f4 after pfil_run_hooks, need to fix hlen as well 2003-06-30 01:22:51 +00:00
itojun 868bbd9978 fix indent 2003-06-30 01:21:11 +00:00
itojun 725c585956 remove IPv4 hook if IPv6 hook fails (seems to be cut-and-paste error). 2003-06-30 00:15:12 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
bouyer 7a5f4f28d0 Don't use LBA48 if we don't have to (that is, if the request is inside the
first 128GB). Tested by Andreas Johansson.
2003-06-29 19:28:16 +00:00
ragge 679db94879 Add code to remember where in the send queue of mbufs the last packet was
sent from. This change avoid a linear search through all mbufs when using
large TCP windows, and therefore permit high-speed connections on long
distances.

Tested on a 1 Gigabit connection between Luleå and San Francisco, a distance
of about 15000km.  With TCP windows of just over 20 Mbytes it could keep up
with 950Mbit/s.

After discussions with Matt Thomas and Jason Thorpe.
2003-06-29 18:58:26 +00:00
thorpej d189d63466 Fix problems with the ktrace/lwp changes. 2003-06-29 18:53:52 +00:00
thorpej a06b275edc Undo part of the ktrace/lwp changes. In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.
2003-06-29 18:43:21 +00:00
aymeric baf9a7e65c Do not use RELOC() after the MMU is enabled.
Move the two assignments that were made after the MMU is on, before.

From Gunther Nikl on port-amiga@. Thanks!
2003-06-29 18:41:47 +00:00
martin f73e5a517d #ifdef _KERNEL_OPT police 2003-06-29 18:11:14 +00:00
chris e0c81274e0 Another proc->lwp change. 2003-06-29 17:18:48 +00:00
bouyer b55e87ab48 Remove unused WAITTIME definition. Pointed out by Andreas Johansson. 2003-06-29 17:03:47 +00:00
thorpej 9f722af1c9 Adapt to ktrace/lwp changes. 2003-06-29 16:10:48 +00:00
thorpej 38271de3f4 Regen: adapt to linux mmap2 changes. 2003-06-29 16:08:36 +00:00
thorpej 8ab744356a Adapt to linux mmap2 changes. 2003-06-29 16:07:58 +00:00
thorpej f4fff81d3a Adapt to ktrace/lwp changes. 2003-06-29 15:49:49 +00:00
thorpej e3165e7ebd Adapt to ktrace/lwp changes. 2003-06-29 15:27:59 +00:00
simonb b8aadd3696 Only one function is this file wasn't ANSIfied, convert it. 2003-06-29 15:17:40 +00:00
simonb 2bda3187f5 Fix 'struct lwp *' lossage. 2003-06-29 15:14:11 +00:00
thorpej 7da140a1a2 Fix problems with Darren's ktrace/lwp changes. 2003-06-29 15:11:48 +00:00
simonb 168c4e411f Fix 'struct lwp *' lossage. 2003-06-29 15:07:08 +00:00
jdolecek dc63267c8b properly FILE_USE/FILE_UNUSE descriptor in linux_sys_fcntl()
adresses PR kern/21628 by Wolfgang Solfrank
2003-06-29 14:51:28 +00:00
chris 6721e83cfc Fixes to get cats build going following proc to lwp changes. 2003-06-29 14:51:04 +00:00
jdolecek c46b3f8bf7 regen: allocate identifier for BusTek BT-640A adapter 2003-06-29 14:49:15 +00:00
jdolecek 95ab1275a4 allocate identifier for BusTek BT-640A adapter 2003-06-29 14:48:21 +00:00
jdolecek 83872500d3 cosmetic - make sc_supmedia of struct lance_softc const 2003-06-29 14:42:58 +00:00
jdolecek c78fda0bcb fix typo in comment 2003-06-29 14:41:11 +00:00
simonb 7aa3dc6d45 Restore parentheses around return value that were removed with the
previous commit.
2003-06-29 14:09:21 +00:00
martin 69cd0c4a54 struct proc * -> struct lwp * 2003-06-29 13:33:51 +00:00
simonb 9e8290fbee Use the com softc enabled/disable hooks instead of directly frobbing
Au1x00 registers in com_attach_subr().  Suggested by Jason Thorpe and
tested on both console and extra serial ports.
2003-06-29 13:18:24 +00:00
itojun 0778967b85 lwp change lossage 2003-06-29 12:36:35 +00:00
simonb 261417ff31 Fix 'struct lwp *' lossage. 2003-06-29 12:34:55 +00:00
simonb 33187ba9d0 Show current PC in an panic message. 2003-06-29 12:21:32 +00:00
simonb 6939feda9f KNF nit (parentheses around return value). 2003-06-29 12:20:19 +00:00
martin b13abb2046 Fix a few small glitches (struct proc -> struct lwp) 2003-06-29 12:17:21 +00:00
itojun 5dcb6d7469 fix lwp lossage 2003-06-29 12:16:19 +00:00
martin 6b2ac9f5b4 Fix small merge botch in previous. 2003-06-29 12:04:32 +00:00
martin 8908626c9a struct proc -> struct lwp 2003-06-29 12:01:34 +00:00