Commit Graph

19790 Commits

Author SHA1 Message Date
thorpej 680d9eea68 - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
  associates the MAC address property with the epe device instance.
2006-02-18 05:04:11 +00:00
rpaulo 951a531e19 In rnd_add_uint32(), there's no need to check for rs == NULL since
that was already done by the caller, rnd_add_data().
2006-02-17 19:22:30 +00:00
macallan 4d89623450 back out previous commit 2006-02-17 18:45:40 +00:00
macallan 3d6233f0c1 set I2C_OP_WRITE when passing a write buffer to iic_exec() 2006-02-17 17:58:53 +00:00
kochi f172eb96ae regen. 2006-02-17 04:34:00 +00:00
kochi 5f0ceef69b Correct some existing device names (PCI bridges, ACPI buses) according
to the up-to-date specs (ACPI 3.0a/PCI Firmware spec 3.0).
Add some ACPI specific devices (ACPI000x).
2006-02-17 04:33:12 +00:00
lukem 8c09644630 * The kernel's struct ccd_softc has extra structure members over the
userland version; provide another ccd global variable (ccd_softc_elemsize)
  containing the kernel's size, and use that it ccdconfig(8) to convert the
  kernel's ccd_softc into userland versions.
  Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
  Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().

XXX: ccd could be converted from nlist to sysctl.  "Someone else's yak shave".
2006-02-16 23:25:18 +00:00
perry fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
thorpej cb468f2eff Remove the ugly algor_get_ethaddr() hack. We have a properties infrastructure
now, so use that to provide the Ethernet address of the built-in Ethernet.
XXX Still a little ugly in the tlp driver, but fixing that would require
XXX reworking the SROM usage in a broader sense.

While here, do the P4032 DMA window hack in device_register() as well.
2006-02-16 18:20:31 +00:00
kochi 9fca0c53be define acpi_dbgr as static 2006-02-16 09:23:23 +00:00
kochi e94d605ca4 regen. 2006-02-16 08:39:27 +00:00
kochi 2bf87ae55f add two more ICH7-M LPC device ids from intel document
(Intel I/O Controller Hub 7 (ICH7) Family Specification Update)
2006-02-16 08:36:03 +00:00
kochi 92d51ace0f prototypes don't need argument names 2006-02-16 06:19:26 +00:00
kochi 539e1b8f22 use ACPI_FAILURE() macro instead of directly check AE_OK 2006-02-16 06:18:59 +00:00
gavan 7600be39ae Compute the EEPROM checksum to determine the presence of valid EEPROM data.
If EEPROM data is invalid, allow a MD hook to supply EEPROM data instead.
2006-02-16 00:02:00 +00:00
macallan b16c42a99d bzero() -> memset() 2006-02-14 16:02:00 +00:00
macallan e594a4142f do some extra initialization and zeroing, fixes odd problems on x86 2006-02-14 14:15:59 +00:00
oster 99bb7dc022 RAIDframe was erroneously re-initializing the Parity Stripe Status
pool each time a new array was configured.  This causes grief
with things like 'vmstat -m' by causing it to loop.  Make RAIDframe
only initialize PSS bits once.

Pointed out by simonb@.  Fix tested by simonb@. Thanks!
2006-02-14 01:13:33 +00:00
riz a4163a9fe4 Not all chips supported by this driver use the same interrupt moderation
timer frequency; Take this into account.  Information gathered from
the sk98lin driver for Linux, from Marvell.

Also add sysctl support for changing the interrupt moderation timer at
runtime; each board is controlled independently.

Discussed on tech-net beginning in November 2005.
2006-02-14 00:19:17 +00:00
uwe 50ea998c78 Move assignment out of conditional expression. 2006-02-13 16:35:57 +00:00
martin 73bd099735 Protect parts inside #ifdef _LKM that are only supposed to be there
when building an LKM.
2006-02-13 14:25:05 +00:00
peter 57be7a5a81 Fix a typo, use uintN_t, use assigned variables, add newline to a printf. 2006-02-12 23:19:14 +00:00
macallan 569533352e framework for generic virtual consoles 2006-02-12 20:55:35 +00:00
tron 7e0f377097 Regen. 2006-02-12 16:36:58 +00:00
tron 50e5429967 Fix inconsistencies in names for components for recent Intel chipsets. 2006-02-12 16:35:20 +00:00
tron 3ab60a2c88 Regen. 2006-02-12 11:54:00 +00:00
tron c72bdde37c Correct cut and paste error in last change. 2006-02-12 11:53:26 +00:00
tron 48465288bd Regen. 2006-02-12 11:51:23 +00:00
tron 4b13e8432a Add entries for Intel i955X chipset. 2006-02-12 11:51:07 +00:00
christos f5e26caf24 new version from David Boggs. 2006-02-11 23:00:06 +00:00
rpaulo b3e804a9e9 PR 31304: Contribute to the random pool. From Rhialto. 2006-02-11 13:04:44 +00:00
gdamore 8430838831 PCI_NETBSD_CONFIGURE should allocate (but not map) address space expansion
ROMS by default.   Full discussion at
http://mail-index.netbsd.org/tech-kern/2005/12/16/0023.html
Closes PR kern/32467
Reviewed by briggs@
2006-02-10 20:52:56 +00:00
christos 2038078d40 fix compilation problems. 2006-02-10 20:38:54 +00:00
christos 0fa6ea2f2c PR/32794: Paul Shupak: Panic in wsmouse code.
Checking the number of events after you've trashed the stack is not very
useful. Instead, break out of the loop if we ran out, printing a message.
Also don't try to inject 0 events; reset our state instead. Maybe having
0 events should be a diagnostic printf at this point? Anyway it is not
nice having the kernel die because the mouse code got confused. Finally,
explain why the array of events is sized funny.
2006-02-10 17:33:01 +00:00
reinoud a62dc37d89 Add name of the processed feature like the others have. 2006-02-08 23:09:15 +00:00
bouyer c071d3b194 Add another missing ch_ndrive initialization. 2006-02-07 20:37:24 +00:00
cube 6961689092 Regen, correctly this time. Sorry for the mess. 2006-02-07 17:23:23 +00:00
cube 60c0881da6 I wonder how the leading junk arrive there... 2006-02-07 17:21:56 +00:00
xtraeme ecc3ede39b regen 2006-02-07 17:20:47 +00:00
cube ed82703cc5 Add PLX's 9054 I/O Accelerator. 2006-02-07 17:15:54 +00:00
jmmv ddaa1b349e wsevent cleanup:
- Add a wsevent_inject function that atomically adds a set of events to an
  event queue and change all code that directly messed with a queue to use it.
- Replace the WSEVENT_WAKEUP macro with a regular function.
- Make WSEVENT_QSIZE, PWSEVENT and splwsevent private definitions to
  wsevent.c, instead of exposing them in the header file.
- Make the wsevent_init function take a process to attach to the queue,
  instead of leaving this task to the caller (which always did it).

Reviewed in tech-kern@.
2006-02-07 09:13:02 +00:00
thorpej deb5def967 In the receive interrupt handler, compute the packet length before resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.
2006-02-07 06:20:04 +00:00
jmmv 81c1972823 Regen. 2006-02-06 17:34:08 +00:00
jmmv f555f5ff1f Add the Apple extended keyboard, its internal hub and the Logitech Marble Mouse. 2006-02-06 17:33:26 +00:00
abs 51cff5fbfb regen to add SIS 190 ethernet, as found in ASUS T2-AE1 2006-02-06 12:41:02 +00:00
abs b14514b460 Add SIS 190 Ethernet, as found in ASUS T2-AE1 2006-02-06 12:40:44 +00:00
jmmv 8b589aee17 Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
xtraeme fd8cfc5edb Add missing $NetBSD$ tags and __KERNEL_RCSID(). 2006-02-05 06:03:26 +00:00
dyoung e46f0f4008 In rtw_{rx,tx}ring_fixup, do not set the tx/rx ring index to
something out of bounds if we read an invalid pointer form the
hardware.  Prevents a panic when an rtw@cardbus is ejected.
2006-02-04 23:22:27 +00:00
reinoud c0dbf19c1e Add support for SCSI MMC feature 0x0024: hardware assisted defect
management to be passed in mmc_discinfo's device capabilities.

When a device reports support for this the hardware will automatically
remap sectors on read- or write-errors. CD-MRW, DVD+MRW, DVD-RAM and BR-RE
support these.
2006-02-04 21:26:15 +00:00