Commit Graph

19833 Commits

Author SHA1 Message Date
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
yamt
e31143d772 vndthread: fix an integer overflow. fix a panic reported by Simon Burge. 2006-02-04 13:40:38 +00:00
yamt
9e261d2477 vndstrategy: do bounds_check_with_mediasize. 2006-02-04 13:38:04 +00:00
yamt
6e6449891d vndthread: play with b_vp and v_numoutput as it used to do,
for "strange" filesystems like nfs.  PR/32671 from Simon Burge.

although i'm not really happy with this "fix", i think that the code will
be replaced with direct i/o anyway, sooner or later...
2006-02-04 11:52:32 +00:00
yamt
b38b1510eb vnd_cget: remove a wrong comment. 2006-02-04 11:19:59 +00:00
yamt
fe1aa7db74 vnd_destroy: don't access freed memory. 2006-02-04 10:48:32 +00:00
reinoud
1b09e70fcd Adding two Ioctl's to scsipi's cd.c to abstract SCSI MMC devices. The
ioctl's and their structures are currenly hidden from inclusion for normal
userland applications to allow the MMC abstraction interface to mature
first.

Its useage is mainly for applications dedicated to handling and processing
SCSI MMC compliant devices and their media. Examples of these are CDs, DVDs
and comparable optical devices but also some magnetic swapable devices that
present themselves as a SCSI MMC compliant device.

Its current use is currently the to be committed in-kernel UDF filingsystem
and its userland tools.
2006-02-02 14:48:02 +00:00
cube
69a545f3ff Fix typo. 2006-02-02 06:57:35 +00:00
cube
da9c97d43c Move the code that destroys the device to vndclose. That way it no longer
returns ENXIO when deconfiguring a vnd.
2006-02-02 06:56:30 +00:00
christos
8e18deb784 regen 2006-02-02 01:40:19 +00:00
christos
d3c467af65 PR/32695: Chuck Tuffli: incorrect PCI device id for CMD Technology (0x1095)
SiI3132 SATALink (0x3132)
2006-02-02 01:39:53 +00:00
cube
9f02c7bd62 Free cfdata memory. The tap LKM might be wrong in that area, to...
Pointed out by Greg Oster.
2006-02-01 05:05:22 +00:00
cube
aa933732c0 Free the bufq. Pointed out by yamt@. 2006-02-01 04:30:10 +00:00
cube
6527a45571 Have vnd(4) devices automatically created when the user tries to
configure one.  That removes the compile-time constant that limits the
number of vnds.

Thanks xtraeme@ for testing.
2006-02-01 03:15:33 +00:00
xtraeme
38f79c01fe The NVidia nForce430 IDE Controller supports Ultra-DMA Mode 6, enable it.
Patch from MASUDA Hideo via tech-kern.
2006-01-31 16:49:26 +00:00
kochi
0cdeab4c58 remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.
2006-01-31 09:30:06 +00:00
dsl
6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
augustss
f1d35de4d5 Use correct return values when polling. 2006-01-29 11:35:11 +00:00
jdolecek
0a5be6a731 add cast to compile with AAC_DPRINTF 2006-01-29 09:48:09 +00:00
kochi
9e72fe1e5e adapt for ACPI-CA 20060113 2006-01-29 03:12:22 +00:00
kochi
5d63813b95 Merge ACPI-CA 20060113 2006-01-29 03:11:26 +00:00
kochi
86bf0f2eb2 Merge ACPI-CA 20060113 (new files)
CVg: Committing in .CPI-CA 20060113'
2006-01-29 03:10:55 +00:00
kochi
2564e681ae Merge ACPI-CA 20060113 2006-01-29 03:05:46 +00:00
kochi
13bafec3c5 Import the INTEL ACPI-CA 20060113 2006-01-29 03:02:40 +00:00
kleink
2269235d63 Add support for the AMD8111 RNG; from Nicolas Joly in PR kern/32284. 2006-01-28 23:31:24 +00:00
dogcow
957820f961 Regen. 2006-01-27 06:12:55 +00:00
dogcow
23c23e5330 add vendor, Zydas, and product Zydas ZD1211 802.11abg 2006-01-27 06:11:58 +00:00
bouyer
ae41171480 Add support for Promise PDC2057x SATA/150 Ide controllers.
From FreeBSD, tested by Douglas Wade Needham.
2006-01-26 20:58:52 +00:00
bouyer
35ab8a8cc8 Regen: Add Promise PDC2057x 2006-01-26 20:54:19 +00:00
bouyer
f946f2d85d Add Promise PDC2057x SATA/150 controllers, from FreeBSD. 2006-01-26 20:53:19 +00:00
reinoud
aeaada2a1b Duh! If askes to halt the input dont halt the output instead. This also
fixes the timeout on draining when closing.
2006-01-24 23:29:05 +00:00
bouyer
72d6450048 Revert part of previous: checking the drive's status after a read seems to
cause interrupt timeouts on some hardware.
2006-01-24 21:43:26 +00:00
christos
4478531a98 Add support for more puc chips from Pavel Cahyna.
This might NetMos 9845 card which need the COM_FREQ * 4 hack, but this
can be re-added by a more specific entry (matching subsystem IDs).
2006-01-24 20:10:55 +00:00
bouyer
1af9387585 Make some debug printf more verbose.
In wdccommand_intr(), after a data read check that the drive is ready again.
2006-01-22 16:44:45 +00:00
bouyer
6d97d9d080 For an IDENTIFY we have to wait for DRQ after issuing the command. 2006-01-22 16:40:56 +00:00
christos
8918ce44a0 Default to 2 drives for products not listed. 2006-01-22 00:08:38 +00:00
chs
2933005205 avoid checking if an unsigned number is less than 0. fixes PR 29948. 2006-01-21 19:28:44 +00:00
uwe
cebdea24e0 Use uintN_t. 2006-01-20 02:47:30 +00:00
xtraeme
e2aca22c8e From OpenBSD:
--
Add a workaround for VIA EHCI controllers which, under load, signal qTD
completion before they have performed writeback from the overlay qTD.

This condition would exhibit itself as a umass stall that never recovers.
--

This fixes the problem reported by Thomas Klausner on current-users@:
http://mail-index.netbsd.org/current-users/2006/01/17/0000.html
2006-01-17 12:30:00 +00:00
yamt
d91bf59ce6 dmoverioopen: add a missing simple_lock_init(). 2006-01-17 12:10:51 +00:00
thorpej
f789b6be70 Add an API for loading firmware images for devices. 2006-01-17 06:08:48 +00:00
bouyer
038345f3e8 Add missing ch_ndrive initialisations. Pointed out by Juan RP. 2006-01-17 00:40:49 +00:00
christos
ac9c2323d2 regen 2006-01-16 23:00:17 +00:00
christos
a39411c0d7 PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics 2006-01-16 22:59:36 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
kent
1e8e79dd3b readable names for AD1981HD codec 2006-01-16 14:28:38 +00:00
kent
dd89fc8bd6 Don't crash when a connection list has invalid NIDs.
PR#32485 by Samuel Tran
2006-01-16 14:15:26 +00:00
abs
2287ad2061 cast 16bit atap_capacity to u_int64_t before << 16. (assigned to
a u_int64_t variable). Fixes 1 to 2 TB disks in qemu. Tested with
1200GB and to a lesser extent 2047GB sparse files. For reference
an empty FFS1 filesystem on a 1200GB sparse file uses 19GB of disk.
2006-01-15 19:51:06 +00:00
yamt
c05dbefbea compstrategy: remove bogus handling of B_PHYS. 2006-01-15 12:14:52 +00:00
itohy
690b61f41b - Fix panic when the DMA buffer is not 4byte aligned.
In this case, the transfer count becomes larger than the reality,
  and this fix works around it.

- Add missing bus_dmamap_unload() in attach failure path.
2006-01-14 07:14:45 +00:00
christos
e35d1933fb Add SanDisk pcmcia memory card adapter. Works like an IDE drive.
XXX: Linux driver has a hack not to probe the slave drive. We just
create a phantom drive:

    wdc0 at pcmcia0 function 0: <             , Memory Card Adapter II, V1.00>
    wdc0: i/o mapped mode
    atabus2 at wdc0 channel 0
    wd1 at atabus2 drive 0: <Memory Card Adapter II>
    wd1: drive supports 1-sector PIO transfers, LBA addressing
    wd1: 241 MB, 965 cyl, 16 head, 32 sec, 512 bytes/sect x 494080 sectors
    wd2 at atabus2 drive 1: <>
    wd2: drive supports 1-sector PIO transfers, chs addressing
    wd2: 0, 0 cyl, 0 head, 0 sec, 512 bytes/sect x 0 sectors
    wd2: 32-bit data port
    wd2: disk label read failed
    wd2: disk label read failed
2006-01-11 13:34:33 +00:00
yamt
432eec05f5 use nestiobuf api for vnd. 2006-01-11 00:50:29 +00:00
yamt
e86cc25701 don't set b_rawblkno unnecessarily.
it will be set by device strategy routine.
2006-01-11 00:49:59 +00:00
christos
82f14002cb Regen 2006-01-10 20:33:31 +00:00
christos
eec1348ff2 PR/32494: Dennis Chernoivanov: Intel PRO/100 VE (LOM) not detected on Sony Vaio 2006-01-10 20:31:36 +00:00
cdi
bcaee69819 PR/32494: Add ID 0x1068 for Intel PRO/100 VE (LOM) found on Sony Vaio
S4HRP laptops.
2006-01-10 20:30:47 +00:00
oster
4476a2943b rf_DiskUnlockFunc and rf_DiskUnlockFuncForThreads are never used. Punt them.
rf_DiskUnlockUndoFunc is in the same boat.  Punt it too.
2006-01-09 01:33:27 +00:00
oster
0d6d84878e Really move all of the bp initalization bits into InitBP(). 2006-01-08 22:26:30 +00:00