Commit Graph

88451 Commits

Author SHA1 Message Date
bouyer 7135c1aad2 Start with all sensors in ENVSYS_SINVALID state, and switch to ENVSYS_SVALID
(or other, depending on result) once the sensor has been read.
This way envstat(8) won't show sensors which have not yet their correct value.
2007-07-04 17:36:17 +00:00
xtraeme edbf497407 mfi_sensor_gtredata:
- There's no need to set edata->units again, it was set already before.
- Remove the last ENVSYS_SVALID assignment that overrides previous
  assignments (found by mhitch@).
2007-07-04 17:07:04 +00:00
xtraeme 68bb919d1f Fix the old ENVSYS_GTREDATA ioctl if there are sensors with invalid
state. Enable all sensors by default as valid and current valid data and
if there is one that is in invalid state, mark current data as not valid.

This matches the behaviour with the old API. Also, this fixes the problem
with ipmi(4) reporting bogus values with sensors in invalid state using
the old envstat(8).

Note that this only happened when using the old envstat(8).
2007-07-04 16:30:18 +00:00
tls f3c35fd211 After looking at FreeBSD 6 again -- we were also failing to copy the
send and receive timeouts.  Fix this.
2007-07-04 07:17:11 +00:00
tls d11e46a459 Copy SNDLOWAT and RCVLOWAT socket options to accepted socket, so applications
can rely on all socket options being propagated from the listen socket as
the manual page says (and as everything but Linux has always done).  FreeBSD 6
fixes this the same way, but this bug appears elsewhere and is...Old.
2007-07-04 07:13:13 +00:00
xtraeme 6aec6c2829 s/cur_tre/edata/ => should fix the build error reported by rjs@. 2007-07-04 00:32:35 +00:00
xtraeme d3cbee92fb ipmi_sensor_status: if state is ok return ENVSYS_SVALID and not
ENVSYS_WARN_OK, the latter is deprecated on envsys2.
2007-07-03 23:13:12 +00:00
briggs fd02762f07 Add (commented-out) support for IPMI on amd64--pretty much copied straight
from i386.
2007-07-03 23:05:26 +00:00
briggs c42d6c37ad Use PRIx64 for a 64-bit quantity instead of llx in a debug print. 2007-07-03 22:58:07 +00:00
xtraeme ccae4b9276 Erm, fix previous: 6min != 5min... 2007-07-03 22:38:20 +00:00
xtraeme be7048ebd1 Make the refresh value of the callout function (that monitors the sensors)
configurable via sysctl. By default it uses 10 seconds, but it can be changed
between 1 second and 5 minutes.

$ sysctl -d kern.envsys
kern.envsys.refresh_value: wait time in seconds to refresh sensors being monitored
$
2007-07-03 22:33:36 +00:00
christos 2d14013f2c Support for VIA Esther (From FreeBSD) 2007-07-03 17:07:54 +00:00
tsutsui b3b62c0dff Don't clear BSS even if ksyms(4) is not configured. 2007-07-03 10:31:57 +00:00
tsutsui de6d77dffd Use C99 initializers. 2007-07-03 10:11:49 +00:00
tsutsui 23e3926bbd No need to clear BSS if running kernel is loaded by the native bootloader. 2007-07-03 10:07:27 +00:00
tsutsui c6f6d9c3c9 Print NEWS model name right after copyright and version
as other mips ports.
2007-07-03 09:55:30 +00:00
xtraeme 50094295cc ug_gtredata: add another break in the default case. Just for consistency
with other code.
2007-07-03 09:40:28 +00:00
xtraeme 93edd2a3c9 ug2_gtredata: add missing break in default case. 2007-07-03 09:32:05 +00:00
xtraeme 937ef5eeb2 Rather than using two AcpiInstallNotifyHandler() with ACPI_DEVICE_NOTIFY
and ACPI_SYSTEM_NOTIFY, use ACPI_ALL_NOTIFY and remove a redundant
call.
2007-07-03 07:44:05 +00:00
pooka 84684ff767 check for invalid vtype 2007-07-02 21:14:00 +00:00
pooka ea1108ce11 support turning REQUIREDIR off and extra consume in lookup 2007-07-02 18:25:36 +00:00
pooka dbeb9a3eeb I'm all for redundant and failsafe computing, but ...
vap->va_atime = vap->va_mtime = vap->va_ctime;
        vap->va_atime = vap->va_mtime = vap->va_ctime;

... is missing the point.
2007-07-02 17:55:33 +00:00
xtraeme f77ec0c18c Winbond W83627EHF-A support, from OpenBSD. 2007-07-02 17:49:47 +00:00
xtraeme dcbea1b1dc - On Intrusion sensors, if something is not ok return a critical event.
- On Power Supply sensors:
	* if power supply is not installed, return a critical event.
	* if power supply is installed but not powered on, return a
	  warnover event.
2007-07-02 15:29:47 +00:00
xtraeme 6a9b572563 Add PENVSYS_TYPE_INDICATOR to handle events on Indicator sensors.
ipmi(4) uses this for the Intrussion and Power Supply sensors.
2007-07-02 15:18:30 +00:00
xtraeme 9f49f1431d sme_event_drvadd:
- Check the error returned by sme_event_add() and print details if
  returned value is not EEXIST.
- If sme_event_add() returned an error, don't add the monitoring-* object
  into the dictionary.
2007-07-02 11:05:52 +00:00
xtraeme 02974d235e pic16lc_update: use the edata pointer rather than using softc's array
index.
2007-07-02 10:36:47 +00:00
xtraeme ecb89ffa1a aiboost_refresh_sensors: initialize j before using it, to make this
build with AIBOOST_DEBUG.
2007-07-02 10:27:12 +00:00
xtraeme 7c07c6cee5 adt74673_refresh_{fan,temp,volt}: use the edata pointer rather than
using softc's edata array index.
2007-07-02 10:25:54 +00:00
pooka df6f052d2f Get rid of the "int *refs" parameter to inactive: the same can be
accomplished now with puffs_setbacks.
2007-07-02 10:24:17 +00:00
xtraeme d0f8b29da6 aiboost_refresh_sensors:
- use the edata pointer rather than using the softc's edata array.
- if aiboost_get_value() couldn't get a proper value, invalidate the sensor.
2007-07-02 10:06:58 +00:00
jld 855403caf7 Correct regression in xen3 wall-time reading accidentally committed in r1.35.
(Discussed on port-xen.)
2007-07-02 06:26:35 +00:00
pooka 25285a0f9c loosen KASSERT: we can also fail due to ENOMEM 2007-07-01 23:30:42 +00:00
pooka d410664985 Give the file server to ability to request the entire pathname buffer
under lookup by using PUFFS_KFLAG_LOOKUP_FULLPNBUF instead just the
current component.
2007-07-01 22:54:16 +00:00
xtraeme f50072a162 In the gtredata function, use the edata pointer rather than using
directly the edata array index in the softc.
2007-07-01 22:20:34 +00:00
xtraeme a5d1788b65 ug*_gtredata: use the edata pointer rather than using the edata array
index.
2007-07-01 21:28:34 +00:00
xtraeme 20ba8844f6 aiboost_refresh_sensors: when refreshing a fan sensor, use the sum
of aitemp->num + aivolt->num sensors as index.

Closes PR kern/36589.
2007-07-01 20:45:10 +00:00
dsl 8d3eb2476f Comment out the code that uses the stackgap to issue the WSDISPLAYIO_PUTCMAP
ioctl in order to change the display colours.
Changing the code to not need the stackgap is rather pervasive, and it isn't
at all clear this is useful effort given the suspected bitrottedness
of compat darwin.
2007-07-01 20:14:17 +00:00
xtraeme 41fe337f40 Add support for the VIA C7-M and Eden processors in the
Enhanced Speedstep driver.

Tested by Heron Gallegos <gallegos at csxxi dot net dot mx>
2007-07-01 20:12:35 +00:00
xtraeme 19b01fa46a Use PSWITCH_EVENT_{PRESSED,RELEASED} for consistency with other drivers
using the sysmon_power framework.
2007-07-01 20:01:44 +00:00
dsl 813e1c7584 Fix long-term breakage in the definition of 'control' data for linux.
cmsg->cmsg_len is 'size_t' not 'socklen_t' - so it is 8 bytes on 64bit
platforms instead of 4.  There is also never padding after the header.
Redo linux sendmsg() so that it stands a chance of getting it right.
Redo linux recvmsg() so that it process control data directly from the mbuf
  list.  Allowing it to hack the data without using the stackgap.
2007-07-01 18:45:36 +00:00
dsl fe8b7ca10a Check for SOL_SOCKET when checking for SCM_RIGHTS. 2007-07-01 18:38:11 +00:00
pooka ffe0a01441 Instead of supplying a plain pid, supply an abstract struct puffs_cid *,
which can currently be used to query the pid and lwpid.
2007-07-01 17:22:13 +00:00
toshii df9ef2605f Quick and dirty fix for hpcarm build failure, using hpcarm specific
softintr code for now.
2007-07-01 16:04:57 +00:00
pooka 438f52d212 make puffs_cred an opaque type 2007-07-01 15:30:15 +00:00
xtraeme 4a7e371eab There's no need to use another envsys_data_t pointer that points to
the sensor specified in the softc, use edata passed in by the gtredata
function. Also remove a line of code that is not needed anymore with
envsys2.
2007-07-01 11:46:54 +00:00
xtraeme 4510a124e4 There's no need to set ENVSYS_FMONNOTSUPP in sensor's flags anymore,
userland limits for this type of sensor is disabled by sysmon_envsys(9).
2007-07-01 11:35:31 +00:00
xtraeme 4ae780df6b Move gcscide(4) to INSTALL_LARGE. 2007-07-01 11:29:22 +00:00
xtraeme 777c61efe0 There's no need to use another envsys_data_t pointer that points to
sme->sme_sensor_data again, just use the edata pointer passed in
the gtredata function.
2007-07-01 11:28:14 +00:00
xtraeme 2efc038f73 Enable gcscide(4). 2007-07-01 11:15:14 +00:00
dsl bf215415ab Fix LINUX_HDIO_GET_IDENTITY so that it returns the entire 512 byte buffer.
Rely on the code in dev/ata/wd.c doing a relay for the short read needed
for LINUX_HDIO_OBSOLETE_IDENTITY.
2007-07-01 09:54:16 +00:00
dsl 80f6eff58d Allow callers of the ATAIOCCOMMAND ioctl to request the WDCC_IDENTIFY to
specify a buffer that is less than 512 bytes.
2007-07-01 09:48:37 +00:00
dsl 5f7e78696b Remove 'else' after 'return' for clarity 2007-07-01 09:47:19 +00:00
xtraeme bb8e671373 Imported envsys 2, a brief description of the new features:
(Part 2: drivers)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 08:29:48 +00:00
xtraeme da3f163bd2 Imported envsys 2, a brief description of the new features:
(Part 2: drivers)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:37:12 +00:00
xtraeme bf4558f8cf Imported envsys 2, a brief description of the new features:
(Part 1: API)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:36:39 +00:00
tsutsui be8757ef61 Add __attribute__((__packed__)) to all command structures. 2007-07-01 05:17:28 +00:00
rumble 1b3d6b0053 Remove a superfluous pasted structure definition, permitting ALL to
build again.

Caught by Hisashi T Fujinaka.
2007-07-01 01:09:05 +00:00
dsl 168c1071b4 Call fp->f_ops->fo_ioctl() directly (not by sys_ioctl() for LINUX_VT_GETMODE
and LINUX_VT_SETMODE.  One fewer use of the stackgap.
2007-06-30 22:54:33 +00:00
dsl a1188737bf Use the new CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF ioctls to
avoid copying into the stackgap.
2007-06-30 22:18:17 +00:00
dsl 716dbe1abc The cd ioctl definitions are not condusive to being called from within
the kernel (eg from withthe linux compat code).
Add CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF which are like the
  existing ioctls withoutthe _BUF, except that the data area immediately
  follows the control structure (and is fixed length).
Modify scsipi/cd.c so that it only ever has one 'struct cd_formatted_toc'
  allocated on the stack (maybe this info ought to be in the softc)
  structure since even one 800 byte on-stack buffer isn't overly friendly.
cdplay(1) still seems able to read the track-list of an ATAPI cd.
2007-06-30 22:16:38 +00:00
dsl 477e862d2a Fix inverted check in sys_setgroups(). 2007-06-30 21:31:41 +00:00
tsutsui 8dedfc4041 - avoid possible NULL pointer dereference in error path
- call Debugger() only #ifdef OSIOP_DEBUG
Partially from OpenBSD.
2007-06-30 19:35:08 +00:00
tsutsui 25f9eea68b Use more TAILQ macro. From OpenBSD. 2007-06-30 19:24:30 +00:00
pooka 5ac04c46a8 VOP_LOCK() doesn't handle LK_RETRY, call vn_lock() instead 2007-06-30 18:28:15 +00:00
pooka 6b0a9db09f Fix logic flaw in KASSERT. Seems like my lkm wasn't compiled with
DIAGNOSTIC ...
2007-06-30 16:28:14 +00:00
dsl d60a214b3b Remove a load of unnecessary casts now that 'addr' is 'void *'. 2007-06-30 16:00:55 +00:00
rumble 6bb85b28da Additional documentation on extents and some artificial limitations SGI
has introduced (and changed in backwards-incompatible ways) over the years.
2007-06-30 15:56:16 +00:00
dsl 53e0243f27 Changes to sompat socket function to avoid the dreaded stackgap. 2007-06-30 15:31:49 +00:00
dsl 6319443e37 Updates for changes prototype of kauth_cred_set/getgroups(). 2007-06-30 15:27:02 +00:00
tsutsui b00d562b51 Backout previous; defer bus_dmamap_sync(9) op against data buffer instead.
XXX ews4800mips (which has 128byte L2 cacheline) still has
XXX some problem in sd_read_capacity() on some unclear condition.
2007-06-30 14:56:48 +00:00
tsutsui 8c07627095 Copy SCSI command before bus_dmamap_sync(9) PREREAD ops against
data xfer buffer because command and data buffers might be in
the same cacheline.
2007-06-30 14:32:50 +00:00
tsutsui 8df8a6ae3f Rather than preparing DMA map for SCSI command (which is
less than 16 bytes) of each SCSI command block (acb), just
prepare DMA safe buffer in struct osiop_ds and copy commands
into the buffer on each transfer to save resources and
reduce small and unaligned cache flush ops.

As a side effect, sizeof struct osiop_ds (DMA safe data buffer)
is now 256 bytes (including padding) so it could be more
cacheline friendly on bus_dmamap_sync(9) ops.

Tested on Express5800/230 (arc) and EWS4800/360AD (ews4800mips),
and no visible performance difference on bonnie.
(hppa and mvme68k are untested)
2007-06-30 14:08:58 +00:00
dsl e99b2da36f Welcome to 4.99.22: Addition of flags parameter to kauth_cred_get/setgroups(). 2007-06-30 13:42:47 +00:00
dsl 4be2514b94 Match updates to kauth_cred_set/getgroups. 2007-06-30 13:34:19 +00:00
dsl 04c196a642 Add a flags parameter to kauth_cred_get/setgroups() so that sys_set/setgroups
can copy directly to/from userspace.
Avoids exposing the implementation of the group list as an array to code
outside kern_auth.c.
compat code and man page need updating.
2007-06-30 13:32:14 +00:00
jmcneill 1a446b6f11 Move ral@pci from INSTALL to INSTALL_LARGE, as requested by Manuel Bouyer. 2007-06-30 12:30:34 +00:00
pooka 835b0326c5 Using POOL_INIT here makes no sense, since file systems always have
an init method.  So get rid of it and #ifdef _LKM and just always
init in the init method.  Give malloc types the same treatment.
Makes file systems nicer to work with in linksetless environments
and fixes a few LKM discrepancies.
2007-06-30 09:37:53 +00:00
mlelstv e044ee54b9 Fix typo that prevents port reset after several retries. 2007-06-30 09:17:45 +00:00
jmcneill cbc58c76f0 Enable ral@pci by default in the INSTALL kernel. 2007-06-30 03:11:03 +00:00
rumble 6912898dc8 Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
2007-06-29 23:30:16 +00:00
tsutsui 446e7b7d8c __FUNCTION__ -> __func__ 2007-06-29 16:41:31 +00:00
tsutsui 9905ba64da Add options COMPAT_40. 2007-06-29 16:23:29 +00:00
tsutsui bad1146f72 Fix botch in cnpollc(9) for keyboard devices. 2007-06-29 16:09:04 +00:00
tsutsui 1681c91ced We have to use _splnone() instead of spl0() to enable interrupts on mips
because spl0() is an alias of _spllower(0) and it doesn't set MIPS_SR_INT_IE.

Fixes ews4800mips kernel getting stuck in cpu_idle(9)
after cpu_configure(9) since yamt-idlelwp merge.
(previous mips_idle() implicitly set MIPS_SR_INT_IE
 but new cpu_idle(9) for mips no longer does it)
2007-06-29 16:03:04 +00:00
pooka e01e324216 remove redundant KASSERTs 2007-06-29 15:34:59 +00:00
christos d1ffad0af7 Handle mapped and scoped ipv6 addresses. From Anon Ymous. 2007-06-28 21:11:12 +00:00
christos 681a7e5524 Add functions to do mapped address conversions from FreeBSD. 2007-06-28 21:03:47 +00:00
xtraeme 5cd016ef40 For 586 based National Semiconductor CPUs, use amd_cpu_cacheinfo to
print cache information.

My AMD Geode GX2 500/1W reports good values:

cpu0 at mainbus0: (uniprocessor)
cpu0: National Semiconductor Geode (586-class), 365.26 MHz, id 0x552
cpu0: features 80a13d<FPU,DE,PSE,TSC,MSR,CX8>
cpu0: features 80a13d<PGE,CMOV,MMX>
cpu0: "Geode(TM) Integrated Processor by National Semi"
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: ITLB 8 4 KB entries fully associative
cpu0: DTLB 8 4 KB entries fully associative
2007-06-28 21:02:40 +00:00
bouyer 69219b1efe copy from the right offset when handling root= on the command line.
Pointed out by Pavel Cahyna.
2007-06-28 20:54:47 +00:00
bouyer 6be5ba1e96 Make sure to check for pending interrupts on the final STI. For this
reorganise the IPL vectors a bit so that they can be used from more
places than splllower and doreti.
Include patch from Kazushi Marukawa (fixed to handle pending interrupts),
which should fix the read_psl() == 0 assertion failure reported by
several users.
2007-06-28 20:50:30 +00:00
alc c82e20912d - add ichlpcib to XEN2 config file
- few cosmetics

tested with XEN2 and XEN3 kernel
ok bouyer@
2007-06-28 20:07:00 +00:00
nonaka e02b41111a cpu_reboot():
- fix data write-back to hard disk is failed when reboot/halt.
2007-06-28 16:07:12 +00:00
nonaka bc90321cbe Use tpcalib_trans() instead of own function. 2007-06-28 15:44:01 +00:00
nonaka 74c51d31a7 Implemented some HPC related ioctls for tpctl. 2007-06-28 15:41:09 +00:00
nonaka 902494bfa8 Fix compile failure if defined WSDISPLAY_COMPAT_RAWKBD. 2007-06-28 15:37:32 +00:00
nonaka fa07193f46 - Added RCS Id.
- cosmetic.
2007-06-28 15:35:59 +00:00
nonaka f96947e349 Added RCS Id. 2007-06-28 15:33:08 +00:00
nonaka dceaf63a2c remove unused function. 2007-06-28 15:32:35 +00:00
nonaka 5113d00707 cosmetic. 2007-06-28 15:31:04 +00:00
nonaka 58ea30622f cosmetic 2007-06-28 15:09:14 +00:00
nonaka a748e16a0b use LCCR3_BPP3 instead of magic number. 2007-06-28 15:05:27 +00:00
nonaka 8b05cf1cfc Mask more interrupts. 2007-06-28 14:47:47 +00:00
nonaka 399c27c752 Added support ioctl(WSDISPLAYIO_LINEBYTES).
(XFree86 wsfb driver uses it.)
2007-06-28 14:41:49 +00:00
nonaka d69f0db1d1 pxa2x0_lcd_mmap():
- Check offset parameter.
2007-06-28 14:37:36 +00:00
nonaka d2387d4569 Added more LCD Controller register definition. 2007-06-28 14:30:58 +00:00
tsutsui 4a838a2458 Fix mnt_dev_bshift value. Pointed out by rumble@.
I'm not sure how mnt_dev_bshift is used and
whether BFS_BSHIFT is correct for it, but as rumble
said shifting BFS_BSIZE (==512) seems completly wrong.
2007-06-28 12:33:18 +00:00
tsutsui 5c0f3569db Add file-system SYSVBFS. 2007-06-28 12:16:36 +00:00
xtraeme 4164d36e4c Set the PIO mode to the correct drive not for drive1 always. 2007-06-28 10:22:52 +00:00
xtraeme 1f66ef355d Improve a comment. 2007-06-28 07:50:11 +00:00
itohy 25a6244f88 Regen from usbdevs rev 1.477. 2007-06-28 03:13:43 +00:00
itohy c52b34e473 Add vendors and products from FreeBSD/OpenBSD.
- for ubsa(4):
	Add vendor Huawei Technologies and its product Huawei Mobile
	GlobeTrotter 3G Quad Plus

 - for uipaq(4):
	ASUSTeK MyPal A730
2007-06-28 03:13:01 +00:00
xtraeme 6222d8a84a Fix a typo and remove unneeded assignments. 2007-06-28 01:21:59 +00:00
xtraeme c9b55c43b1 Do not disable the TSC in the AMD Geode GX2 500. It's known to work. 2007-06-27 23:28:41 +00:00
xtraeme 6733d7ba62 Add gcscide(4). 2007-06-27 23:12:03 +00:00
xtraeme a5ac7ff5aa Import i386/gcscide(4). A driver for the IDE Controller of the
AMD CS5535 Companion device found in the decTOP.

gcscide0 at pci0 dev 15 function 2
gcscide0: National Semiconductor/AMD CS5535 IDE Controller (rev. 0x00)

Supports Ultra DMA mode 4, Pio Mode 4 and MDMA mode 2.

"Go for it" jmcneill@.
2007-06-27 23:02:52 +00:00
degroote 4ddfe916ff Add support for options IPSEC_NAT_T (RFC 3947 and 3948) for fast_ipsec(4).
No objection on tech-net@
2007-06-27 20:38:32 +00:00
jmcneill f4e11163b6 Sony firmware strikes again!
The Sony VAIO VGN-N250E (and probably others) sends BatteryInformationChanged
on AC adapter state change. Handle that here.
2007-06-27 19:44:50 +00:00
tsutsui 1cbdf43c6d Print Error EPC rather than EPC on NMI. 2007-06-27 18:15:51 +00:00
mhitch 6fc4ae964e CAC_GET4() was incorrectly defined, fix it. Not used currently, but bio(4)
support I'm working on does.
2007-06-27 17:57:55 +00:00
mhitch a69c525cfd Ooops - I missed another call to trap. Fixes PR#36567. 2007-06-27 17:55:51 +00:00
tsutsui 386666a542 Print EPC address on NMI (i.e. when "DUMP" button is pressed) for debug. 2007-06-27 15:48:16 +00:00
xtraeme e31adb2d42 Use aprint_debug rather than printf for the annoying message
"WARNING: Callback scheduled before sysmon task queue thread present.".
2007-06-27 13:04:15 +00:00
xtraeme d6e294cd05 regen 2007-06-27 11:53:54 +00:00
xtraeme 16437a5d29 Improve the NS CS5535 entries and remove the NS part, it's redundant. 2007-06-27 11:53:38 +00:00
uebayasi 2360b1d428 Fix typo. 2007-06-27 08:16:58 +00:00
xtraeme 468f2b4743 regen 2007-06-26 22:43:16 +00:00
xtraeme 9d2af5fa13 Add National Semiconductor CS5535 devices, found in the decTOP. 2007-06-26 22:42:58 +00:00
jmcneill 7d42ba2288 Don't be quite so aggressive in EcWaitEvent; makes acpiec work on the
Sony VAIO VGN-N250E, and possibly others.
2007-06-26 22:36:16 +00:00
mjacob 959a8b2a95 When loading firmware for the 23XX and 24XX cards and DMA'ing it from
the request queue, remember to convert it to little endian format.
2007-06-26 21:00:18 +00:00
mjacob 1d191096fb If we have 2K Login firmware for 23XX cards, remember to put out the
'extended' structure- not the older one. Matters for the swozzling
that goes on for big endian machines.
2007-06-26 20:58:27 +00:00
briggs a336d0a8d5 When collecting memory regions from the BIOS, ignore regions that are less
than a page size.  This assists a decTOP Geode-based system that reports
memory regions:
        start      end         size       type
	0x00000000 0x0009e000  0x0009e000 1 (Memory)
	0x00100000 0x06be3c00  0x06ae3c00 1 (Memory)
	0x06be3c00 0x06be6000  0x00002400 3 (ACPI)
	0x06fff800 0x06fffc00  0x00000400 1 (Memory)
	0x06fffc00 0x07000000  0x00000400 4 (NVS)
2007-06-26 20:11:12 +00:00
bouyer 0bee3ccac3 Remove the __asm("lock") again from softintr(), as ci_ipending is local
to the CPU. Thanks to YAMAMOTO Takashi and Andrew Doran for their comments
on this.
2007-06-26 19:41:11 +00:00
nonaka 212a81151a Don't setup GP[87:86] to LDD[17:16] at pxa2x0_lcd_initialize().
Because zaurus uses GP[87:86] as SSP2.
2007-06-26 15:38:38 +00:00
cube 954bc13440 Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().

While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

The issue has been there since last august, I'm actually a bit surprised
that no one in the meantime has used ccd(4) or cgd(4) on an arch where it
would have simply faulted.
2007-06-26 15:22:23 +00:00
nonaka f27c627687 fix typo. 2007-06-26 15:10:32 +00:00
nonaka ff380a6cd7 s/const const/const/ 2007-06-26 15:08:42 +00:00
nonaka 1413f63080 Add options COMPAT_40. 2007-06-26 13:57:18 +00:00
tsutsui aa994dbf76 Use C99 initializers. 2007-06-26 13:20:19 +00:00
tsutsui 1a56f97bac Fix swapped SI_QUEUENAMES to match SI_SOFT* numbers. 2007-06-26 12:55:38 +00:00
pooka f055736150 Simplify code, mainly vop_strategy. No functional change 2007-06-26 12:50:49 +00:00
tsutsui a6d1baeba9 Add options COMPAT_40. 2007-06-26 12:12:58 +00:00
tsutsui dd8d8eb3f6 Use C99 initializers. 2007-06-26 12:03:31 +00:00
xtraeme c18664aad7 Protect inet6_ident_core() with #ifdef INET6, fixes building without
options INET6.
2007-06-26 09:19:36 +00:00
christos 0a36551606 tcpdrop kernel bits (from anon ymous) 2007-06-25 23:35:12 +00:00
bouyer deb08fe320 We're not ready to handle ATAPI yet so just claim there's no drive to the
upper layer. This should work around a NULL pointer dereference when
an ATAPI device is detected on a AHCI device.
2007-06-25 20:58:07 +00:00
bouyer 1206dd032d Various cleanups in interrupt code, and fix a potential crash in doreti:
if we enter doreti_checkast with only soft interrupt pendings, we would
jump to one of the soft* vector with %esi uninitialized, and the vector
would do a jump *%esi at the end ...
I don't know why nobody ever went into this; I guess in the common case
there's no soft irq pending without a hard irq in this code path ...
2007-06-25 20:09:34 +00:00
bouyer bf539c16bd Add back a __asm("lock") that got lost in the yamt-idlelwp merge. 2007-06-25 20:02:45 +00:00
bouyer 142ad1ab3e Call p_emul->e_syscall_intern() before sendsig_reset() to match what
i386 does.
2007-06-25 20:01:23 +00:00
bouyer a7d4fae602 Fix race condition in cpu_idle() on ci_want_resched. From YAMAMOTO Takashi. 2007-06-25 19:57:32 +00:00