Commit Graph

73618 Commits

Author SHA1 Message Date
peter 8270ea3f59 Use ANSI function decls. 2004-10-25 23:37:58 +00:00
peter 7101691fa3 Remove two redundant conditionals. 2004-10-25 23:06:41 +00:00
peter 993460fbb1 Change the static array to a linked list, removes the limit of max 20 LKMs.
Mostly from OpenBSD.
Reviewed by several people on tech-kern.
2004-10-25 22:59:12 +00:00
enami 63a896d5a8 Fill some entry in fake wdc_ata_bustype since those are called even
if no wd(4) device is configured in a kernel.
2004-10-25 22:42:09 +00:00
hannken 12c30b8690 Add speedstep support for Dothan processors.
From Steven J. Dovich via PR#26342.

Tested on "Intel(R) Pentium(R) M processor 1.60GHz".
2004-10-25 15:42:24 +00:00
sketch 0d451812d5 Regen (Dell Port Replicator added). 2004-10-25 11:32:02 +00:00
sketch b06825e711 Add Dell Port Replicator. 2004-10-25 11:31:03 +00:00
martin 5c7441e83b No need to clear %o1 when returning a 64 bit integer from pseg_get if we
are compiling for a 64 bit kernel.
2004-10-25 10:42:48 +00:00
augustss e2916e01dd Preserve some bits in the overlay qTD. 2004-10-25 10:29:49 +00:00
augustss dd753df337 Add EHCI_QTD_SET_STATUS. 2004-10-25 08:53:38 +00:00
enami 5c26271a67 Back out part of previous. The card refered in PR/27255 needs to be
handled differently (at least the current code doesn't handle well).
2004-10-24 22:17:07 +00:00
augustss d3c902a013 Add a comment. 2004-10-24 22:13:52 +00:00
augustss 2dc3c5521f Follow the spec more closely when updating the overlay qTD in the QH. 2004-10-24 22:12:24 +00:00
augustss becc42a193 Only delay interrupt my 2 miucroframes instead of 8. This improves
Ethernet performance.
2004-10-24 22:11:05 +00:00
augustss f0c6875478 No need to generate an interrupt at the data part of a control transfer,
it's generated by the status transfer.
2004-10-24 22:09:15 +00:00
augustss 3d0622d94b Make sure to update the data toggle on short transfers.
This makes my Ethernet adapter much happier.
2004-10-24 22:07:04 +00:00
cube 85c68ec88d Add a check in DEV_USES_PARTITIONS macro in case dv->dv_cfdata is NULL,
as it is the case for md and raid. Raid case tested by Martin Husemann,
I could test the install floppies work again.
2004-10-24 17:06:24 +00:00
skrll 3780f859c7 Only create a KTR_USER record if it's one of the tracepoints.
OK'd by manu.
2004-10-24 14:42:10 +00:00
augustss d58af06710 Regen. 2004-10-24 13:01:17 +00:00
augustss 5e26cc8165 Add 2 devices. From OpenBSD. 2004-10-24 12:58:44 +00:00
augustss f8968198b1 Dont use lockmgr() from interrupt context. 2004-10-24 12:53:26 +00:00
augustss 122fe5d16e Whine about not being able to figure out default language if we are debugging. 2004-10-24 12:52:40 +00:00
augustss a71f7f822d Don't make activate static. It disagrees with prototype. 2004-10-24 12:50:54 +00:00
augustss b702a8af08 Don't allow open of low/full speed pipes types that will not work yet. 2004-10-24 08:52:26 +00:00
augustss 3f908f7bc3 Get rid of an oddly placed assert(). 2004-10-24 08:49:13 +00:00
augustss 5f05836624 Do hex conversion right. 2004-10-24 08:47:27 +00:00
skrll 22f25588af s/Id/NetBSD/ 2004-10-24 07:12:40 +00:00
skrll e0658593c2 Fix the argument to KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK. 2004-10-24 06:58:14 +00:00
christos cfe914cf35 Change the sc_name buffer size from 16 to 32, since we already oveflow 16
in if_tlp_pci.c... The name code really needs to be fixed so that it does
not have a buffer overflow again:

1. the cardbus and eisa code don't initialize sc_name; it probably should?
2. tlp_attach() seems to print the name and the ethernet address, but
   the pci front end seems to do the same.
3. some of the name determination code in the pci front-end does not guarantee
   nul terminated strings.

Really, all this name code is just bloat and another place for bugs to hide.
2004-10-24 00:35:08 +00:00
heinz eb3298f1fb Follow the change done for port prep, revision 1.50. This makes output from
the autoconfiguration visible again. (Ok'd by Chuck Silvers).
2004-10-24 00:17:20 +00:00
yamt 62905a1302 uvm_pageidlezero: grab kernel_lock before uvm.fpageqlock. PR/27259. 2004-10-23 21:29:27 +00:00
yamt c0ebe301d7 don't reference kernel_lock directly. 2004-10-23 21:27:33 +00:00
yamt d82d2638a7 __cpu_simple_lock: loop without locking cache or asserting LOCK#. 2004-10-23 21:25:22 +00:00
yamt fa29ea9740 to determine if an interrupt needs to grab the kernel lock or not,
check interrupt's own ipl rather than cpu's current ipl.
2004-10-23 21:24:05 +00:00
thorpej 40efd0eeef Check d_magic2 once, and not d_magic twice. Pointed out by tsarna. 2004-10-23 19:45:32 +00:00
christos fbbeedbe63 PR/27286: Tom Ivar Helbekkmo: Allow RTM_GET to work with RTA_IFA|RTA_IFP set.
Quiting Tom: The problem is the special case of an RTM_GET message
that wants interface information included in the response, and
therefore include the RTA_IFA or RTA_IFP (or both) flags in the
bitmask that says what addresses are supplied in the message.  For
the RTM_GET message, it doesn't make sense to supply addresses
other than the one you're asking about, so those two other bits
are, in that specific case, overloaded with this meaning.

There is code in sys/net/rtsock.c to handle the case, but at some
time, extra sanity checking of the received message was added, that
failed to take this possibility into account.

The patch, is needed for the Asterisk software PBX to work properly
when it has multiple interfaces active: it needs to ask the kernel
for the IP address of the interface that will be used to communicate
with a given host.
2004-10-23 19:13:22 +00:00
thorpej dfc3ead10a MBR partition table support for wedges, enabled by the DKWEDGE_METHOD_MBR
option.
2004-10-23 17:25:14 +00:00
thorpej f9403749b7 Use the new BTINFO_BOOTWEDGE bootinfo to discover the booted disk and
wedge.
2004-10-23 17:20:59 +00:00
thorpej 0798da74ba Add support for passing booted wedge information to the kernel. 2004-10-23 17:20:04 +00:00
thorpej d80e5712b6 - Adjust minor number usage for wedges; minor number directly maps to
unit now.  Don't pretend wedges have "partitions".
- Fix a buglet related to opening char and block devices of a wedge
  at the same time.
- Add dkwedge_set_bootwedge(), that MD code can call to set booted_device
  and booted_wedge appropriately when MD code knows the parent disk and
  the start/size of the wedge that was booted from.
2004-10-23 17:16:45 +00:00
thorpej a6be1570c7 - Centralize the declaration of booted_device and booted_partition.
- Add a booted_wedge variable that indicates the wedge that was booted
  from.  If this is NULL, booted_partition is consulted.
- Adjust setroot() and its support routines for root-on-wedges.  Could
  use some tidy-up, but this works for now.
2004-10-23 17:14:11 +00:00
thorpej dc2f2fbe74 Centralize the declaration of booted_device and booted_partition. 2004-10-23 17:07:37 +00:00
augustss 90d454c7f7 Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated.  Interrupt transfers do not work.
Warn when any low/full speed device is opened.
2004-10-23 16:17:56 +00:00
augustss e58f453183 Regen. 2004-10-23 14:21:19 +00:00
augustss f300e07550 Add another serial adapter. From Paul Shupak in PR kern/27197. 2004-10-23 14:20:50 +00:00
augustss ad40767c5b Regen. 2004-10-23 14:17:36 +00:00
augustss c24e0726df Add devices. From Paul Shupak in PR kern/25519. 2004-10-23 14:17:07 +00:00
augustss a187f5b112 Regen. 2004-10-23 14:08:05 +00:00
augustss bbdfe9d3b8 Add more devices. From OpenBSD. 2004-10-23 14:07:27 +00:00
augustss e1c26273a8 Alphabetize. 2004-10-23 14:01:41 +00:00
augustss 0c21c79cc5 s/uax/axe/ 2004-10-23 14:00:50 +00:00
augustss 6496ac653d s/uax/axe/ 2004-10-23 13:46:45 +00:00
augustss 00b535e7c0 Both FreeBSD and OpenBSD use Bill Paul axe driver instead of my uax
driver.  Maybe because it actually works on with hardware besides mine? :)
So we switch to axe too.
2004-10-23 13:38:26 +00:00
augustss d1ea5ecc77 Turn the printf about needing toggle update into a DPRINTF. Things
seem to work even when this message appears.
Why is it there, Charles?
2004-10-23 13:36:43 +00:00
augustss 4f104aa9c0 Try to get the Ethernet address of a CDC device in the prescribed way.
If that fails, just invent one (like before).
2004-10-23 13:29:18 +00:00
augustss 4430265c68 Use new functions for getting descriptors. 2004-10-23 13:28:26 +00:00
augustss 67f0f483bd Make an iterator abstraction for looping through all descriptors.
Move usb_get_string() and make it public.
2004-10-23 13:26:33 +00:00
augustss c1d4463c05 Add Ethernet descriptor. 2004-10-23 13:24:24 +00:00
scw 408aca554c Make artsata depend on sata. 2004-10-22 20:05:01 +00:00
kent 1b1a5c5dba assign AudioNlfe to UATO_SUBWOOFER
assign "phone" to telephony terimnal types.  The label "phone" is used
in ac97 though it is not defined as AudioN* macro.
2004-10-22 17:00:22 +00:00
kent 4f3a6c3aa2 style fixes
- consistent folding in function declarations
 - define a function as Static if the function is declared as Static
2004-10-22 16:01:49 +00:00
kent aaf8d890f0 enclose debug macros with do {...} while (0)
from OpenBSD
2004-10-22 15:36:30 +00:00
kent ed036bef2a fix wrong realloc() usage.
from OpenBSD
2004-10-22 15:34:04 +00:00
kent 89affe1894 fix typos in comments.
add open/close code of sync pipe (not enabled)
2004-10-22 15:25:56 +00:00
cube 49440f65c0 Add support for the 82801FB/FR (ICH6/6R) SATA controllers. 2004-10-22 15:09:22 +00:00
cube a5a705f674 Regen. 2004-10-22 15:01:32 +00:00
cube e6c3f8fb8d Add two Broadcom devices (575x chips), correct and add a few Intel entries. 2004-10-22 15:00:50 +00:00
augustss 1353a882ad Add cdce. 2004-10-22 13:11:12 +00:00
augustss c29a55f981 Add cdce(4). 2004-10-22 13:10:20 +00:00
augustss efe84c1097 Add a driver for Communication Data Class Ethernet devices. From the very
prolific Bill Paul for FreeBSD, via OpenBSD.
XXX Untested, since I don't have any such devices.
2004-10-22 13:08:23 +00:00
augustss 4eb781d843 Print information for high speed hubs about the number of TTs.
Print a message when low/full speed devices are ignored on high speed hubs.
2004-10-22 12:03:21 +00:00
augustss 2c051a4b85 Add interrupt transfers. From OpenBSD.
Having interrupt transfers enables some more device types to be used,
most notably USB2 hubs.  USB2 hubs still cannot handle anything but
USB2 devices, because there is node code to handle hub Transaction Translation
yet.
XXX This code doesn't do good bw scheduling, but it's certainly better than
nothing. :)
2004-10-22 10:38:17 +00:00
augustss 6f9df049df Insert from ifdefs for soft interrupt related stuff. From OpenBSD. 2004-10-22 09:58:00 +00:00
peter 5d3f22a6e3 Remove the confusing PAGESIZE macro and calculate the size by doing
size / 1024.

Approved by mrg.
2004-10-22 09:49:18 +00:00
augustss 19ddd8a315 Add 3 devices. From OpenBSD. 2004-10-22 09:47:21 +00:00
augustss cb0eb4bacc Add a device. From OpenBSD. 2004-10-22 09:41:01 +00:00
augustss d7eeed3a45 Add 2 devices. From OpenBSD. 2004-10-22 09:39:06 +00:00
augustss 14186a69e1 Regen (previous commit was a mistake). 2004-10-22 09:35:55 +00:00
augustss 86d1561830 Merge a lot of devices from OpenBSD. 2004-10-22 09:34:55 +00:00
wrstuden 6f8b7762c6 Now that we have ofwboot load at 0xe00000, it doesn't make sense for
this kernel to load at 0x800000 - move back to the default and we
have around 13 MB of space for the kernel.
2004-10-21 21:53:58 +00:00
wrstuden df1f02ad54 Now that we have ofwboot load at 0xe00000, it doesn't make sense
for this kernel to load at 0x800000.
2004-10-21 21:52:51 +00:00
rjs 9003fc0a5c Regen. 2004-10-21 21:01:50 +00:00
rjs 89c80e4674 Add definitions for Dell X3 and X30 PDAs. 2004-10-21 21:00:31 +00:00
augustss 176f75ee37 A little portability stuff. 2004-10-21 18:14:40 +00:00
augustss e93cdd6905 Add a gross hack to route the ECHI interrupt on the Sharp MM20.
You can read the long and sad story about the BIOS in a comment.
2004-10-21 17:12:41 +00:00
fvdl 5febc5eef5 Fix thread context switching to take the stack ABI into account.
From Wolfgang Solfrank.
2004-10-21 16:49:47 +00:00
xtraeme d16bfcc7a2 Fix typo in comment: compolicated -> complicated. 2004-10-21 16:18:42 +00:00
kent ff827d1c72 make mixer names compatible with other audio devices
patch provided by Kazuhito HONDA in PR#15441
2004-10-21 12:41:07 +00:00
augustss ab7b7be2f8 Add suspend/resume support.
From OpenBSD.
2004-10-21 11:18:21 +00:00
augustss d9b55687d2 Use do .. while wrappers for debug print.
From OpenBSD.
2004-10-21 11:14:26 +00:00
augustss 00128db76d Match function names in debug messages with real name.
From OpenBSD.
2004-10-21 11:11:19 +00:00
augustss cc7b9783ea ANSIfy. 2004-10-21 11:05:39 +00:00
simonb 83cddbc21f Flesh out some comments in the incomplete "smart" version of
mips_user_cacheflush().
2004-10-21 03:15:13 +00:00
matt 2fefa174c9 Make panic messages print out what condition they though was panic-worthy
instead of a 1 word message.
2004-10-20 22:10:31 +00:00
xtraeme 4db3ca891c Add another case to match "PCI_PRODUCT_AMD_SC761_SC" (AMD761 System
Controller) in agp_amd_match().

Ok'ed by christos@
2004-10-20 21:47:13 +00:00
kent 3f642d7b30 mixer item for a selctor should start with "sel" not "fea" 2004-10-20 13:48:32 +00:00
martti b0dbe06f9f Regen for DELL PERC 4e/Si 2004-10-20 10:50:12 +00:00
martti ef476ebd05 Added support for DELL PERC 4e/Si RAID controller 2004-10-20 10:48:47 +00:00
scw ea99c85462 Add dmoverio 2004-10-20 10:08:34 +00:00
thorpej 42b8fac3b8 Move boot device detection code from i386 and amd64 ports to x86_autoconf.c.
Rename i386_alldisks and x86_64_alldisks to x86_alldisks, adjust other
references to compensate.
2004-10-20 04:20:05 +00:00
lukem 58e9698928 enable ipw* (Intel PRO/Wireless 2100). (requested by hubertf) 2004-10-19 05:44:25 +00:00
uwe e9f575c48c First step towards bus_space - wrap register accesses into macros.
Same object code is generated.
2004-10-19 02:12:21 +00:00
uwe 4866d0ee50 KNF cosmetic. Same object code is generated.
Use continue for explicit empty loop body.
Use for (;;) instead of while (1).
Fix an indentation glitch.
2004-10-19 00:10:33 +00:00
itojun 75259d166c ip6_flow_seq is no longer available. 2004-10-18 01:43:43 +00:00
heas 4cec10fd22 Adjust/add a few comments and add defines for PCS (aka GEM_MII) FSM and
interrupt registers.
drop some trailing WS.

no functional changes.
2004-10-17 21:49:08 +00:00
bouyer ccd16ca6dc Adjust some debug printfs after b_bcount was changed from long to int.
From Patrick Welche on current-users@
2004-10-17 17:49:04 +00:00
jdolecek f5254bdba7 ldioctl(): fix typo in check for lockmgr() return value introduced
with the wedge support, which caused premature return and left dk_openlock
locked, leading to lockmgr() panic on close; newfs of ld disk now works again
2004-10-17 17:02:48 +00:00
jdolecek fc0a76f17c fix comment - LK_NOWAIT, not LK_WAIT 2004-10-17 16:06:00 +00:00
jdolecek 065df3bb84 fix typo (missing &) 2004-10-17 11:24:42 +00:00
jdolecek 84e86b0dce use nointr allocator for shmmap_entry_pool - this is always accessed
from process context
2004-10-17 11:23:16 +00:00
kent 3b95460806 no need to restore AC97_REG_EXT_AUDIO_CTRL value on resuming
because ac97_codec_if_vtbl::restore_ports() does it.
2004-10-17 09:10:28 +00:00
kent bac58e9eff add support for suspending/resuming.
patch provided by Rhialto in PR#26432
2004-10-17 08:46:39 +00:00
kent 8e74ad23a5 make sure of readiness of an AC'97 codec by writing a value and
reading it.  There is a codec which is not operational just
after power states become ready.

PR#26457
2004-10-17 08:20:15 +00:00
christos ed27e77c16 Bring back ALLOW_MEMIO change that was lost between 1.38 and 1.39. This
change reportedly makes the driver work on macppc. There must be a better
way of doing this (based on the chip revision?).
2004-10-17 01:10:44 +00:00
christos 6a5f6766d4 Make a commented out print statement compile and avoid wrapped lines.
No functional change.
2004-10-16 22:52:37 +00:00
kent e61cc9d9a5 add code to recognize sync-pipe audio stream.
The code is not enabled yet.
2004-10-16 18:08:50 +00:00
bouyer 4c45710493 Add the dual-serial VScom PCI-200 adapter. Tested by Jukka Salmi. 2004-10-16 18:05:19 +00:00
heinz b804d8c240 Remove trailing argument list from #undef of divrnd macro to enable build
with gcc3 and -Werror.
2004-10-16 14:43:40 +00:00
jdolecek 3b6adcdea1 kill the indirection via struct shm_handle and store pointer to the uvm
object direct to _shm_private; the indirection doesn't serve any
useful purpose and just wastes memory and cpu cycles
2004-10-16 13:34:07 +00:00
dsl 43dde40d82 Put spaces either side of '|' for clarity ('|' looks too much like 'I' or 'l') 2004-10-16 11:11:04 +00:00
enami 740cc023cc Rewrite the loop without using useless SIMPLEQ_FOREACH macro. 2004-10-15 21:25:04 +00:00
he b0a1d8f11d Increase the pmax ramdisk size with 100KB, so that the contents
fits again.
2004-10-15 15:06:37 +00:00
skrll de13910b03 Revert previous. set_statvfs_info needs the struct proc * arg.
Problem noted by Tom Ivar Helbekkmo on current-users
2004-10-15 09:09:09 +00:00
thorpej 11103d1865 No longer need <sys/disk.h> 2004-10-15 07:22:02 +00:00
thorpej 99e5d764c1 - Eliminate the need to call disk_init().
- disk_count needs to be protected with disklist_slock, too.
2004-10-15 07:19:01 +00:00
thorpej f8335cf6c2 Don't initialize ttylist or tty_count in tty_init(). 2004-10-15 07:15:39 +00:00
thorpej fae7cbfa65 rf_find_raid_components():
- If DIOCGDINFO failed with ENOTTY, don't print an error message; wedges
  don't support that ioctl.  Clean up the error message.
- If DIOCGDINFO fails, don't proceed to examine an invalid disklabel
  structure.
2004-10-15 06:41:35 +00:00
thorpej 32ca684d72 match_harddisk(): Open RAW_PART, not the booted partition; we're
only performing the ioctl to fetch the disklabel.
2004-10-15 06:18:47 +00:00
thorpej 0b0e09815e Update config_attach_pseudo() example. 2004-10-15 04:51:48 +00:00
thorpej c7dc2875d8 Don't need to use config_makeroom() here. 2004-10-15 04:48:24 +00:00
thorpej ffb78793fc Use config_attach_pseudo() to create device instances in the device
tree for created wedges.  This is necessary for setroot().
2004-10-15 04:42:09 +00:00
thorpej 45bba4e135 Change config_attach_pseudo() to take a cfdata * that contains the
necessary information to create the pseudo-device instance.  Pseudo-device
device's will reference this cfdata, just as normal devices reference
their corresponding cfdata.

Welcome to 2.99.10.
2004-10-15 04:38:36 +00:00
enami d5e42fa312 - Don't change the matching logic.
- Prepare to describe a card which has NULL CIS string.
- Factor out common code.
- Deal with malloc return value.
2004-10-15 00:48:53 +00:00
enami d10ffa8c6e Don't change the logic when simplifing code; a OR was changed to AND
and a test was removed but they shouldn't be changed.
2004-10-15 00:25:06 +00:00
bouyer 43d3408b53 In auxio_blink(), only toggle the AUXIO_LED_LED bit, don't clear the others.
It looks like bit 3 control the on-board le's link test, clearing it breaks
the interface (no link detected on the remote end). bit 3 is defined as
AUXIO4M_LTE (link-test enable) for sun4m systems (maybe all the AUXIO4M_*
bits are valid on the Ultra/1 too ?).
Tested on Ultra/1 and Ultra/5, approved by Martin Husemann and Matthew Green.
Should fix port-sparc64/25039 by Lubomir Sedlacik.
2004-10-14 17:58:06 +00:00
yamt 1c2a2dcad3 move i/o schedulers to their own files.
namely, from kern/subr_disk.c to kern/bufq_{fcfs,disksort,readprio,priocscan}.c.
2004-10-14 05:12:28 +00:00
mhitch 5760e71352 The gcc3 compiler optimized away writing character data to the Cirrus chip,
which results in a blank display - making it rather difficult to do an
install or upgrade when using a Cirrus-based display.  Change the pointer
used to write the character and attribute to volatile.  The console screen
now shows data and is usable.
2004-10-14 04:14:26 +00:00
enami 10f8fdf7dd Redo previous two commit a bit different way;
- Just read as much as we can.
- Handle some special tuples.
2004-10-14 03:24:00 +00:00
snj ce44fe4282 Fix some comment typos and a spelling error. 2004-10-14 01:45:54 +00:00
christos 2634ff1b14 PR/27255: Nikos Ntarmos: PCMCIA NIC with blank CIS tuples crashes the kernel
Simplify the code for readability.
2004-10-14 00:17:12 +00:00
gavan 0560d8b947 Initial import of iyonix port.
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.

* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.

With help from abs.
2004-10-13 23:28:34 +00:00
christos 7e7288c064 Bounds check signal number. 2004-10-13 23:21:41 +00:00
augustss 4989f19412 Regen. 2004-10-13 18:44:09 +00:00
augustss 89b66b9ce9 Add ALi M1563 bridge. 2004-10-13 18:42:17 +00:00
drochner f62496141b support ADDI-DATA APCI-7800 8-port serial adapter 2004-10-13 14:15:16 +00:00
drochner f71b9f7aa1 regen 2004-10-13 14:14:41 +00:00
drochner 0f77727191 recognize ADDI-DATA APCI-7800 8-port serial adapter 2004-10-13 14:14:19 +00:00
kent 44f6147e9d split outputs.tone to outputs.bass and outputs.treble
from OpenBSD
2004-10-12 14:34:41 +00:00
dbj 2bd0f63fd0 print absolute inode number in debug output when freeing free inode occurs.
previously, the number was relative to the cylinder group, which was confusing.
prefix debug message with "ifree:" so this can be differentiated in bug reports.
2004-10-11 17:15:36 +00:00
jmmv c6d18895ed Regen after addition of another vendor identifier for AIPTEK International
and the product identifier for AIPTEK International PenCam Mega 1.3.
2004-10-11 15:28:00 +00:00
jmmv e97dc76a93 Add another vendor identifier for AIPTEK International.
Add product identifier for AIPTEK International PenCam Mega 1.3.
2004-10-11 15:26:53 +00:00
jmmv 6876483b04 Regen after addition of ATI Technologies Radeon 9200SE Secondary identifier. 2004-10-11 13:05:39 +00:00
jmmv 76cc077b7f Add ATI Technologies Radeon 9200SE Secondary identifier. 2004-10-11 13:01:25 +00:00
christos e0e0bf3120 PR/27218: Kirk Russell: kernel incorrectly identifies a KA692 CPU as a
KA694 during boot
2004-10-11 01:00:10 +00:00
enami 327ace1ba7 Terminate the search loop when something is found rather than when
first iteration is done.
2004-10-10 22:26:34 +00:00
enami 9c893ee4c1 One more obvious test. 2004-10-10 22:10:06 +00:00
enami d7464d0873 Don't overrun when decoding tuples. 2004-10-10 22:00:36 +00:00
enami 6ad7a348b0 Cosmetic changes. 2004-10-10 21:58:46 +00:00
jdolecek 4cfd693b66 allocate major for alpq - PR port-cobalt/17675 2004-10-10 20:28:29 +00:00
augustss 8ada967637 Add auacer. 2004-10-10 16:39:36 +00:00
augustss ac9b8467a8 Add auacer, auich, and autri. 2004-10-10 16:37:40 +00:00
augustss 932f692851 Add a driver for the Acer Labs M5455 audio controller.
This controller is integrated in some ALi Southbridges.

XXX This driver is incomplete and slightly buggy, but it
works enough to enable me to listen to music on my Sharp MM20.
2004-10-10 16:37:07 +00:00
tron 86579fbd2a Make this actually compile. 2004-10-10 11:15:22 +00:00
yamt 56a653490c expose vm_page_zero_enable as vm.idlezero sysctl.
XXX assuming boolean_t == int.
2004-10-10 09:57:31 +00:00
yamt 6b5cc3859a pmap_pageidlezero: use sse2 non-temporal store insn if available
to avoid undesired cache pollution.
2004-10-10 09:55:24 +00:00
yamt 61c1570d03 pmap_pageidlezero: update a function name in a panic message. 2004-10-10 09:54:46 +00:00
yamt a0fe4d1b0a remove a stale comment. 2004-10-10 09:53:59 +00:00
yamt 8e520446c5 pmap_zero_page, pmap_copy_page, pmap_pageidlezero:
preset PG_M and PG_U where appropriate to eliminate pte writebacks.
from freebsd.
2004-10-10 09:53:23 +00:00
yamt 83d9ffa7e6 pmap_enter, pmap_clear_attrs: minor optimizations. 2004-10-10 09:52:29 +00:00
yamt c72c6f082e don't install cpu_data.h or cc_microtime.h.
they're not intended to be exposed to userland.
2004-10-10 08:57:30 +00:00
mrg 6428501b14 when truncating a spare disk, also log what its original size was. 2004-10-10 01:17:40 +00:00
mycroft fe8d4c2759 Fix printf() warnings. 2004-10-09 07:09:40 +00:00
dbj c45b4268dc remove diagnostic check for modified inactive inodes in ufs_reclaim
this condition can occur if ufs_inactive experiences failure attempting
to write the inode out.  Instead, have ufs_reclaim always call VOP_UPDATE
which will only write out the inode if there are unflushed changes
2004-10-08 18:43:50 +00:00
tron 8982fe0346 Backout last two revision:
1.) There is objection against this change by at least one developer.
2.) These changes cause repeatable system lockups and crashes for
    at least four people.
2004-10-07 20:06:58 +00:00
erh f747989e34 PR kern/27184: Have linux_sys_waitpid() call linux_sys_wait4() so the
supported options can't get out of sync.  This add support for the
  linux __WCLONE and __WALL options (NetBSD version: WALTSIG and WALLSIG)
Add a diagnostic check to see if the one unhandled option (__WNOTHREAD) is
  specified.
This should prevent linux processes from losing their children and creating
  tons of zombie processes.
2004-10-07 19:30:28 +00:00
yamt ffaa06d53c g/c stale declarations of page queues. 2004-10-07 10:56:26 +00:00
dsainty 6ba20401df Corrected a scattering of typos in comments 2004-10-07 10:42:26 +00:00
briggs 9f506888d3 Update sem_otime on successful call to semop(). 2004-10-07 05:34:09 +00:00
darrenr 8fe036145c * Prevent hang when attempting to flush state entries for ipv4 when ipv6
are present or vice versa
* Fix matching of IPv6 state entries when the initial packet is a
  sent to a multicast address.  This includes not updating the address as
  being fixed when a second (or further) such packet is seen before a reply.
* Disable code, for now, that limited how many ICMP packets could match a
  state entry based on the number of real packets seen.
2004-10-07 03:57:02 +00:00
jdolecek f2cf61aebd g/c unneeded/obsolete extern variable definitions 2004-10-06 15:39:19 +00:00
jdolecek 0924a3d070 g/c extern definitions for some variables which are actually static
in sysv_msg.c
2004-10-06 15:33:49 +00:00
darrenr 328bd73105 The change in 1.3 is incorrect - it checks for FI_OOW regardless of what
type of data is stored in the rule (only a valid check for FR_T_IPF rules.)
2004-10-06 15:06:29 +00:00
wiz 9876532d80 Fix some typos in comments and panic()s. 2004-10-06 12:12:42 +00:00
bad 2a256a96ac Interfaces that do checksum offloading indicate the checksum status of
received packets in csum_flags in the packet header.  Packets that are
forwarded over the bridge need to have csum_flags cleared before being
put on the output queue.  Do so in bridge_enqueue().

Discussed with Jason Thorpe.

Fixes PR kern/27007 and the first part of PR kern/21831.
2004-10-06 10:01:00 +00:00
scw ca40f65ce1 Apply patch provided by Hiroki Nakano in PR kern/27159 to fix
compilation with DEBUG_DMA defined.
2004-10-06 08:59:40 +00:00
skrll d42dfb7727 Correct arg name in comment. 2004-10-06 08:55:27 +00:00
thorpej 402ff2cf29 Slight simplification to IFA_STATS handling. 2004-10-06 05:42:24 +00:00
thorpej 57024fd924 Define a WM_MAXTXDMA constant to represent the largest Tx DMA any given
packet will require.
2004-10-06 05:29:51 +00:00
thorpej 7ee6d38e39 Sync the Tx DMA map after offload stuff has been dealt with, since the
offload set-up digs into the packet.
2004-10-06 05:23:05 +00:00
lukem db0bfa2161 improve description of struct statvfs members 2004-10-06 04:30:04 +00:00
itojun 6c66b599bb use ifunit() 2004-10-06 03:49:03 +00:00
itojun dd505f6f10 call dom_ifattach[] at consistent state. before this commit, dom_ifattach[]
was called after interface attach is completely done for non-cloning interface,
and from within if_attach() for cloning interface (which was wrong).
2004-10-06 02:44:32 +00:00
darrenr 0543239818 Add a comment to document what setting "srcrt" is really on about in ipintr() 2004-10-06 01:34:11 +00:00
thorpej eeee37654e Restructure the loop in wm_start() that passes over the DMA map segments
slightly to make it easier to drop in errata work-arounds that require
adding extra descriptors onto the end of the packet.
2004-10-06 00:04:01 +00:00
heas 3e34026e61 Add TWE_PARAM_PROC_PERCENT; completion percentage per-sub-unit (2 bytes/ea) for
initialize/verify/rebuild processes.
2004-10-05 23:49:15 +00:00
heas f931eb70ff Add TWE_OP_PROBEUNIT (0x7), which probes a drive (not associated with a unit
from the controller's POV) for unit information.  It's arguments mirror that
of TWE_OP_PROBE.
2004-10-05 23:31:32 +00:00
thorpej 09421fe870 Largest Tx descriptor buffer size is actually 4K. 2004-10-05 21:29:56 +00:00
thorpej 29a0a6f5d1 Enable the SmartSpeed work-around code for the IGP phy, with some
minor adjustments.
2004-10-05 20:20:00 +00:00
thorpej d1c33ede84 Work around another problem (that causes horrible performance) on the 82547:
- Change the Tx:Rx on-chip RAM allocation ratio based on MTU:
  => 82547: > 8192 18K:22K, else 10K:30K
  => others: > 8192 24K:40K, else 16K:48K
  Values derived from Linux driver.
- On the 82547, keep track of how much of the Tx FIFO has been used.
  When in half-duplex mode, don't let packets wrap around the FIFO ring
  buffer, because that causes the chip to croak.  Detect this, stall the
  Tx queue, use a timer to wait for the packets to drain from the Tx FIFO,
  reset the internal FIFO pointers, and restart the Tx queue.  Basic
  algorithm (and some magic numbers) derived from FreeBSD and Linux drivers.
2004-10-05 20:14:52 +00:00
is b5016b1bb3 Some code likes to mix MT_HEADER and MT_DATA. Revert this assertion until
the usage of MT_HEADER vs. MT_DATA is better defined and implemented.
2004-10-05 12:19:29 +00:00
augustss 30c119625c Regen. 2004-10-05 11:58:17 +00:00
augustss 48f76da065 Add some ALI devices. 2004-10-05 11:57:22 +00:00
jdolecek 6513aa8291 regen: generate struct linux_sys_shmget_args for linux_sys_shmget(2) 2004-10-05 06:02:36 +00:00
jdolecek 361bf102b8 mark linux_sys_shmget() STD, so that appropriate struct linux_sys_shmget_args
would be defined for use by alpha linux_sysent.c
2004-10-05 06:01:20 +00:00
yamt 2c46ccce37 move netinet/ip_lookup.h -> dist/ipf/netinet/ip_lookup.h. 2004-10-05 04:56:41 +00:00
yamt 8484dd9eed move ipf headers and add a comment. 2004-10-05 04:55:48 +00:00
christos 557877d024 Only enable BRIDGE_IPF code if PFIL_HOOKS is enabled. 2004-10-05 03:36:45 +00:00
thorpej 0fdf8295f4 - Add some useful constants related to the Packet Buffer Allocation
register.
- Add the Receive and Transmit Data FIFO registers.
2004-10-05 02:17:21 +00:00
he 32dfb50ca9 Track the change of int -> paddr_t for the arguments to the ARCBIOS
routines.
2004-10-04 19:59:51 +00:00
fvdl 6a68a8b6c5 Don't use sizeof on a pointer when you mean the whole structure. 2004-10-04 11:23:39 +00:00
yamt 4a85dda9fc fix debug printf formats to match with the recent sys/buf.h.
a patch provided by Ryo HAYASAKA.  PR/27138.
2004-10-04 11:12:09 +00:00
fvdl 5d83432e24 No need to print out sense data just because it happened to arrive in
a pkt. Wrap that in AHD_DEBUG.
2004-10-04 11:08:47 +00:00
yamt 364ea008bb procfs_readdir:
- return correct cookie when buffer size is small.
- simplify logic.
2004-10-04 08:40:18 +00:00
yamt ef763f0a42 procfs_readdir: remove a redundant assignment. 2004-10-04 08:37:06 +00:00
dyoung 49cfbd0442 Drivers are not expected to call ieee80211_find_node_for_beacon,
so don't increase the reference count on a node before returning
it.
2004-10-04 07:35:48 +00:00
dyoung b01c9a3223 Bug fix: in ieee80211_find_txnode, we used to call ieee80211_ref_node(ni)
if ni == NULL and the operating mode was not "ad hoc" or "ad hoc
demo."  That crashed the kernel.  Now, if the operating mode is
not "ad hoc (demo)," and ni == NULL, return NULL right away.

Also, if ieee80211_dup_bss returns NULL, return NULL right away.
This doesn't fix a bug, but it makes clear how this works.
2004-10-04 07:17:41 +00:00
enami 7d020061b6 Unbalanced bracket in comment. 2004-10-04 03:20:50 +00:00
enami 4fa5fd9ed6 - Testing low memory condition to see if we should alloc or not doesn't make
sense, since 1) the condition is quite normal condition and 2) there is
  pool between us and uvm.
- Make the step of allocation possibility a bit seamless by moving the origin
  of curve from 0 to lowater mark.
Simon told that this helps for interactive performance when there is heavy
disk activity in PR#27057.
2004-10-04 01:24:18 +00:00
thorpej 563a66a36f Add a parsing module for 4.4BSD/NetBSD disklabels. This module supports
disklabels nested inside an MBR "NetBSD" or "386BSD" partition (first
one found is considered authoritative for the disk), or in one of several
known locations for various NetBSD platforms.  It can read native or other-
endian disklabels (code is there, but not tested).

If you want to play with this, exercise caution; you can't currently
mountroot on a wedge (setroot() needs some work).  Enabled by the
DKWEDGE_METHOD_BSDLABEL kernel option.
2004-10-04 01:16:39 +00:00
thorpej 40f14b0328 Remove something mistakenly committed in last. 2004-10-04 01:07:57 +00:00
thorpej 3cb291f243 Move wedge code to a subdirectory, as suggested by Christos. 2004-10-04 01:07:25 +00:00
enami 51718e92ee Factor out code to set watermark and ensure high > low. 2004-10-04 00:46:05 +00:00
enami d3482ced60 Backout previous; seeing many busy page on the pageq is normal. 2004-10-04 00:28:30 +00:00
hubertf fa3cdcf564 Add & document WSKBD_USONLY: In order to strip down the space usage of wscons,
all keymaps except the US english one can be removed from the kernel
with this option, which results in a space gain of about 10kB.

XXX it would be nice if we could strip down more kernel facilities
2004-10-04 00:20:23 +00:00
yamt d0094e323b proclist_foreach_call: tweak an assertion to deal with the case that
spinlockmgr is no-op.  PR/27125 from Andreas Wrede.
2004-10-03 22:26:35 +00:00
bouyer 14068e2ca9 Add missing return, fix handling of Ignore Wide Residue messages. 2004-10-03 14:52:53 +00:00
jdolecek 20d2b45d7d fix bug introduced in rev 1.70 - in the "keep state" & "oow" flag check,
ensure a pointer to a state structure is non-NULL before dereferencing

Fixes PR kern/26927 by me and PR kern/26947 by Brett Lymn
2004-10-03 12:21:13 +00:00
jdolecek a9bc4a2fda frrequest(): move some variable initializations for clarity
no functional change
2004-10-03 12:16:32 +00:00
yamt 94223b8ff0 nfs_enterdircache: initialize dc_flags of a newly allocated dircache entry.
provided by Greg Oster.
2004-10-03 10:51:28 +00:00
yamt 31c025d90c nfs_readdirrpc, nfs_readdirplusrpc:
don't expose kernel garbage data to userland.
2004-10-03 10:17:33 +00:00
toshii a7d72b4250 Make this compile on arches without __BUS_SPACE_HAS_STREAM_METHODS. 2004-10-03 09:36:49 +00:00
enami 682c3c9443 - Don't let pagedaemon sleep while draining buf.
- Estimate amount of memory to free at a time.
Address PR#27057 (and similar hangs I saw several months ago).
2004-10-03 08:47:48 +00:00
enami ba25820566 x > 15 is always false if x is 0 .. 15.
# XXX: testing free memory here is quite doubtful.  also, I guess lowater
# XXX: is better than 0 as origin.
2004-10-03 08:30:09 +00:00
enami 778d21de43 Cheap test first. 2004-10-03 08:17:54 +00:00
enami b6d06fab27 So that not to leave pages busy unnecessarily, bound to specified region
when building cluster if we aren't pagedaemon and clean entire cluster
if we are pagedaemon.
2004-10-03 08:14:25 +00:00
enami a55995c148 Count obj pages freed by pagedaemon. 2004-10-03 07:59:02 +00:00
kent 913cd88b5e add source selector support. The patch was provided by Kazuhito HONDA.
PR#26538
2004-10-03 06:01:09 +00:00
toshii 5b66414bae Add a socket_settype function to match with recent pcmcia code change. 2004-10-02 23:42:57 +00:00
wiz 1486617536 Fix typo reported by Alexander Yurchenko in private mail. 2004-10-02 21:20:12 +00:00
kent fe459b3125 - add some debug prints
- no parameter names in prototypes
- use const pointers if dereferenced object should not be modified
2004-10-02 19:14:54 +00:00
sekiya 5a0e6a845d uint32_t -> unsigned long, per the differences between 32- and 64-bit ARCS. 2004-10-02 09:53:27 +00:00
sekiya 2ea60ebc6b s,uint32_t,paddr_t,g. Noticed by tsutsui@ 2004-10-02 08:53:09 +00:00
jdolecek 46134b3da6 move ip_htable.h from sys/netinet/ to sys/dist/ipf/netinet/, it's ipfilter file 2004-10-02 07:59:14 +00:00
christos d0905be2d3 moved from sys/netinet. 2004-10-02 07:51:53 +00:00
christos 722688d056 These are ipfilter files, although they don't have the same copyright.
Thanks jaromir.
2004-10-02 07:51:11 +00:00
yamt d79c3679ea procfs_getattr: correct size of /proc/self. 2004-10-02 04:28:57 +00:00
sekiya 53ad2f0aab Use the mips3 bus functions on IP30. Recognize the IP30 as a supported* SGI
platform.

* For extremely small values of "supported".  arch/mips/* needs a lot of work
  yet for MIPS64.
2004-10-02 03:19:00 +00:00
sekiya 288adc68db ARCS on 64-bit platforms uses 64-bit pointers. This now works on my Octane. 2004-10-02 03:11:14 +00:00
yamt 269a1761b2 procfs_readdir:
- fix a locking problem, using proclist_foreach_call.  PR/27098.
- correct snprintf size argument.
2004-10-01 16:32:16 +00:00
yamt 0994e6acb8 introduce a function, proclist_foreach_call, to iterate all procs on
a proclist and call the specified function for each of them.
primarily to fix a procfs locking problem, but i think that it's useful for
others as well.

while i'm here, introduce PROCLIST_FOREACH macro, which is similar to
LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
2004-10-01 16:30:52 +00:00