jmcneill
5d80814a14
use %zu to print size_t
2011-07-09 21:08:40 +00:00
jmcneill
0d860fd316
allow this to be compiled into the kernel
2011-07-09 19:24:10 +00:00
jmcneill
1bfce4c367
don't kmem_alloc with IPL_VM mutex locked, spotted by rmind
2011-07-09 17:55:20 +00:00
riastradh
0343546951
Release mutex before unmapping DMA memory.
...
Fixes a LOCKDEBUG panic triggered by `hdaudioctl set'.
ok jmcneill
2011-07-09 16:01:31 +00:00
jmcneill
ce779416c5
add digital capture support
2011-07-09 15:00:43 +00:00
jmcneill
6102d1726d
install dtvio.h, dtvio_demux.h, dtvio_frontend.h
2011-07-09 14:52:02 +00:00
jmcneill
ef3e32e573
add digital TV framework which implements a subset of Linux DVB APIs
2011-07-09 14:46:56 +00:00
mrg
bc7506b1cc
avoid some uninitialised variable warnings.
2011-07-08 09:32:45 +00:00
mrg
58e3c9ef87
initialise chuck_rptr as well, instead of chuck_read twice.
2011-07-08 03:29:15 +00:00
sjg
98cc584599
Set FILEMON_VERSION to 3
2011-07-04 23:37:30 +00:00
joerg
258624699d
Fix memset usage.
2011-07-04 16:06:17 +00:00
mrg
3be60f1af7
avoid some uninitialised variable warnings from GCC 4.5. i'm pretty
...
sure they can't happen in practise, but i can see why GCC isn't sure.
2011-07-02 13:21:30 +00:00
mrg
1ff8330243
fix sequence point errors. diff explains best:
...
- sc->sc_playbuf = ++sc->sc_playbuf % sc->sc_nbufs;
+ sc->sc_playbuf = (sc->sc_playbuf + 1) % sc->sc_nbufs;
2011-07-02 13:14:46 +00:00
mrg
d561dfcd7b
listen to GCC 4.5 and change "!!x | y" into "(!!x) | y".
2011-07-02 13:13:22 +00:00
mrg
cbecf97589
avoid -Wenum-compare issue.
2011-07-02 13:12:44 +00:00
mrg
aefb16933b
use an unsigned type for unsigned calcations. avoid GCC 4.5 warnings.
2011-07-01 23:48:20 +00:00
ahoka
f1e7eb4d21
Make this actually compile by adding a wrapper function which calls
...
flash_io_submit.
2011-07-01 16:46:13 +00:00
mrg
7c2e122f42
apply some (uintptr_t) between pointer and int casting.
2011-07-01 08:38:10 +00:00
matt
0a6157e048
Fix uninitialized data warning found by gcc 4.5
2011-07-01 07:45:39 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
hannken
117bf62eb2
Make vnd(4) work on sparse files:
...
- Make the strategy decision a device flag and set VNF_USE_VN_RDWR for
files known to be sparse.
- Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable
read ahead and keep the size of mapped pages below 1 MByte.
No objections on tech-kern@.
2011-06-29 09:12:42 +00:00
matt
459e142a08
Add some inital changes for the Freescale eSDHC.
2011-06-29 06:21:16 +00:00
macallan
d981780965
make the EDID buffer pointer void *
2011-06-29 05:00:06 +00:00
macallan
dcc7dd1b42
make sizes unsigned
2011-06-29 04:50:32 +00:00
macallan
7ebc354766
support WSDISPLAYIO_GET_EDID
2011-06-29 03:14:36 +00:00
macallan
f4441d032a
declare wsdisplayio_get_edid()
2011-06-29 03:11:59 +00:00
macallan
8db9d73a65
dumping ground for generic driver convenience functions
...
So far it contains only a generic WSDISPLAYIO_GET_EDID implementation that
relies on EDID data being passed to drivers as a device property.
2011-06-29 03:09:37 +00:00
macallan
5058059930
add two new ioctl()s:
...
WSDISPLAYIO_GET_EDID to retrieve EDID data from display drivers
WSDISPLAYIO_SET_POLLING to control polling with VCONS_DRAW_INTR
2011-06-29 03:06:16 +00:00
ahoka
85c2d48387
dont define FLASH_DEBUG in header
2011-06-28 21:01:23 +00:00
ahoka
df8b0211cd
use proper format string
2011-06-28 20:58:00 +00:00
ahoka
0e8f635bc2
Refactor flash and nand driver, so we can reuse the io thread code
...
in the future nor driver (and any other future driver).
Also simplify some of the code in the process, eg. saner flash attachment.
2011-06-28 18:14:11 +00:00
sborrill
4492ea236c
Regen
2011-06-28 14:58:33 +00:00
sborrill
7601ad83c0
Add Nvidia GeForce 8500 GT
2011-06-28 14:22:36 +00:00
ahoka
fff8508658
adjust to nand changes
2011-06-28 10:32:45 +00:00
jruoho
9af3996adf
Adjust a prototype due ACPICA 20110623.
2011-06-28 09:09:43 +00:00
ahoka
52682d394e
follow bus_space conventions in naming
2011-06-28 07:16:11 +00:00
ahoka
9f1cc1c376
disable a debug printf and split it, as it's acutally two conditions
2011-06-28 07:05:19 +00:00
ahoka
a148a9e65b
use nosize
2011-06-28 07:00:17 +00:00
nonaka
4574f69318
regen.
2011-06-27 14:53:25 +00:00
nonaka
ca0829d933
Added some JMicron PCI-E SD/MMC/MS/xD Host Contollers.
2011-06-27 14:52:44 +00:00
matt
11f078c849
When printing the interrupt string, be like the other driver and do
...
"alc0: interrupting at msi 1" instead of "alc: msi 1".
2011-06-23 17:42:46 +00:00
jruoho
769cd829a3
Note some long-term difficult goals.
2011-06-23 16:56:07 +00:00
ahoka
de9f857863
Initial work on a NOR driver; it's commited here as is,
...
so I can cooperate with Cliff Neighbors on finishing it.
Not any way connected to the build.
2011-06-22 21:59:15 +00:00
jruoho
572cbf005a
Regen.
2011-06-22 19:26:36 +00:00
jruoho
56a1544615
Add SMO8800.
2011-06-22 19:26:22 +00:00
matt
cc137877b5
Add inline accessors for pba_pc and pa_pc so that <machine/pci_machdep.h>
...
can use them in inline functions.
2011-06-22 18:03:30 +00:00
jruoho
4fb79b4e25
Get rid of RUN_ONCE(9). Should fix PR # kern/44043.
2011-06-22 08:49:54 +00:00
jruoho
796e6c822e
Contrary to the previous, use aprint_error(9) but suppress warnings
...
caused by the (optional) BIOS-based dynamic voltage and frequency scaling.
2011-06-22 08:05:10 +00:00
kiyohara
d25622d743
More stride for PSIONTEKLOGIX NETBOOK PRO.
2011-06-21 15:13:34 +00:00
hannken
58698054d5
Use kthread_join() to wait for the termination of the helper thread.
2011-06-21 13:59:41 +00:00
hannken
f33030999c
When reading or writing the backing store us POSIX_FADV_NOREUSE access hint
...
to prevent read ahead.
2011-06-21 12:41:24 +00:00
hannken
19e20982bb
Make sure sensor state is valid before calling sysmon_envsys_sensor_attach().
...
Ok: Paul Goyette <pgoyette@netbsd.org>
2011-06-21 12:38:27 +00:00
jruoho
2d98f49dfe
Revert the previous commit as it was wrong/redundant.
2011-06-21 09:49:05 +00:00
jruoho
b4a3a8f3ec
Adjust the #ifdefs such that ccd(4) and cgd(4) show in
...
modstat(8) even if built into the kernel.
2011-06-21 06:23:38 +00:00
jruoho
a9db528e18
Rename acpi_get_node() to acpi_match_node() for consistency.
2011-06-21 03:37:21 +00:00
pgoyette
2c629d0bbf
Initialize current value for ENVSYS_DRIVE sensors
2011-06-20 22:02:55 +00:00
pgoyette
1281d34a15
Initialize battery capacity sensor value before registering.
2011-06-20 20:24:59 +00:00
pgoyette
1ad6aeb32e
Initialize sensor state before registering.
...
XXX Still need to fix i2c/ibmhawk.c
2011-06-20 20:16:19 +00:00
pgoyette
ac39d68c59
Initialize sensors states before registering.
2011-06-20 18:12:54 +00:00
pgoyette
e13c3a5c83
Initialize sensor states before registering
2011-06-20 18:12:06 +00:00
pgoyette
57e6b23a48
Initializes sensors states before registering.
2011-06-20 17:48:45 +00:00
pgoyette
564fdf67d5
Initialize sensor state before registering
2011-06-20 17:31:37 +00:00
pgoyette
b9603c5a8f
Initialize sensors states before registering.
2011-06-20 17:29:06 +00:00
pgoyette
19cf0602df
Initialize sensor state before registering.
2011-06-20 17:24:16 +00:00
pgoyette
930a8a50f3
Initialize sensors states before registering.
2011-06-20 17:21:50 +00:00
jruoho
b73004759f
Regen.
2011-06-20 15:56:36 +00:00
jruoho
d3e9a80c24
Add ENE0100, a KB3924-based cir(4) chip.
...
From dmesg supplied by hasina rakotoarisoa on gnats.
2011-06-20 15:56:07 +00:00
jruoho
9016a5d8a8
Use the new acpi_match_cpu_handle() from acpi_util.c.
2011-06-20 15:36:49 +00:00
jruoho
d7b285b083
Use the new acpi_match_cpu_info() from acpi_util.c.
2011-06-20 15:33:49 +00:00
jruoho
0f056e49c5
Add two new functions, acpi_match_cpu_info() and acpi_match_cpu_handle(),
...
which will match a given struct cpu_info with the corresponding ACPI handle,
and vice versa.
2011-06-20 15:31:52 +00:00
pgoyette
b0a4d36275
Initialize sensor state before trying to register.
2011-06-20 15:00:04 +00:00
pgoyette
09568ba27e
Maintain our own storage for volume and disk ID info rather than
...
(ab)using envstat's storage.
XXX Compile-tested only.
2011-06-20 13:26:58 +00:00
pgoyette
3dbac3b2ec
Use {...} to prevent premature exit from initialization function - this
...
lets the atf tests run again.
Move validation of current value vs min/max into the refresh routine
where it will get checked every time, not just at initialization.
While here, do a little more housekeeping:
- Retrieve numeric property value once
- Ensure that a numeric-specified sensor type is valid
- printout any unrecognized properties (DEBUG only)
2011-06-19 15:52:48 +00:00
martin
af2af432ae
Initialize sensor states to SINVALID
2011-06-19 11:44:03 +00:00
martin
b2ead544fd
Instead of crashing, print a usable error message when a driver eroneously
...
does not properly initialize sensor state.
2011-06-19 11:40:26 +00:00
nonaka
e191e46afa
Pass table_id to sme_find_table().
2011-06-19 05:26:31 +00:00
nonaka
fa7cbdd70b
fix typo.
2011-06-19 05:17:38 +00:00
christos
3cc7694381
simplify and don't deref NULL.
2011-06-19 04:23:18 +00:00
pgoyette
13580ba5b6
Use correct routine to retrieve string value from prop-dictionary
2011-06-19 04:08:48 +00:00
pgoyette
eff7c483c3
Rather than requiring the user to know the internal encoding of sensor
...
types, allow the user to specify the type using the units description.
XXX Numeric specification is still permitted but will be removed soon.
2011-06-19 03:12:31 +00:00
pgoyette
3b3fd97442
Add routine to lookup description tables by description instead of by
...
type.
2011-06-19 03:09:43 +00:00
joerg
fd3766f71b
Explicitly initialise vaddr_t and let dead store elimination remove it
...
later.
2011-06-16 16:20:28 +00:00
pgoyette
5960b5e520
Previous fix broke the setting of current value for Indicator and
...
Battery-Charge sensors. Fix this.
2011-06-15 13:34:13 +00:00
jruoho
c9c68d3723
Modularize hpet(4). Works nicely with the multiple bus locations.
2011-06-15 09:09:48 +00:00
jruoho
d67c24f09b
Do not entirely bypass the printfs during resource parsing, as many drivers
...
rely on those for their autoconf(9) messages. Instead add a "quiet" option.
2011-06-15 09:02:38 +00:00
jruoho
ced73275c5
Modularize hpet(4). Works nicely with the multiple bus locations.
2011-06-15 08:19:43 +00:00
jruoho
47c181238e
Remove printouts that mess with the autoconf(9).
2011-06-15 08:04:49 +00:00
jruoho
d762059910
Factor out hpet(4) from ichlpcib(4).
2011-06-15 06:43:20 +00:00
jruoho
0c1ae21bb3
Use defined constants.
2011-06-15 04:52:52 +00:00
jruoho
e0d3725369
Add detach function for hpet(4) at amdpcib(4).
2011-06-15 04:20:47 +00:00
jruoho
aad85e103e
Add detach function.
2011-06-14 16:33:51 +00:00
jruoho
6e72689aa7
Try to attach hpet(4) also via a specific HPET table. Fixes PR kern/43702.
2011-06-14 13:59:23 +00:00
jruoho
5fcd9d30f3
Call _PDC only after AcpiInitializeObjects(ACPI_FULL_INITIALIZATION).
2011-06-13 09:37:23 +00:00
jruoho
2ef5adcc96
Follow IA-64 with the x86-specific ACPI MD functions and move these where
...
they belong to. Remove an unused function. Minor KNF. No functional change.
2011-06-12 11:31:30 +00:00
jruoho
0fc4e4ab7e
Move the evaluation of the _PDC control method out from the acpicpu(4)
...
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.
A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).
2011-06-12 10:11:52 +00:00
jruoho
ef74b36d13
Rewrite the aibs(4) driver in order to support new models. Draws from the
...
revision 1.6 (claudio@) of the OpenBSD's equivalent driver. Tested by mrg@.
2011-06-12 07:25:43 +00:00
matt
21e5ed3b5e
Use %# instead of 0x%
2011-06-12 05:29:42 +00:00
rmind
e225b7bd09
Welcome to 5.99.53! Merge rmind-uvmplock branch:
...
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.
- Simplify locking in some pmap(9) modules by removing P->V locking.
- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).
- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.
- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.
Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
2011-06-12 03:35:36 +00:00
rmind
089890a0b3
Fix the build of ALL kernel (hi matt@).
2011-06-12 03:26:20 +00:00
nonaka
51ff92dd24
split device_t/softc.
2011-06-11 16:34:36 +00:00
nonaka
2733867f91
Added LCD-8000UD-DVI entry.
2011-06-11 13:52:46 +00:00
nonaka
6dea84baed
regen.
2011-06-11 13:51:45 +00:00
nonaka
2c8ebb6a79
Added LCD-8000UD-DVI entry.
2011-06-11 13:50:06 +00:00
jmcneill
ea250cb42b
ehci_set_qh_qtd: terminate alternate next qTD pointer with EHCI_NULL, not 0
2011-06-10 14:20:34 +00:00
matt
39d427883c
Move EHCI_DEBUG, OHCI_DEBUG, UHCI_DEBUG, USB_DEBUG, UHUB_DEBUG to opt_usb.h
...
(ya dependencies).
Cleanup usb_mem.c a little more and add block tracking code. Help find
corruption problems.
Comment out the SPEED check for ETTF. XXX why doesn't that work right?
2011-06-09 19:08:31 +00:00
joerg
2c0909e78c
Use a format string when printing strings
2011-06-09 14:46:33 +00:00
joerg
d4d21d35eb
Annotate that gpiobus_close's return value is undesired here
2011-06-09 14:46:06 +00:00
cegger
159dac67ee
the BCM5785 is a PCIe chip but does not report PCIe capabilities.
...
Check for this chip explicitely and enable PCIe.
Fixes 'firmware handshake timeout'. Tested with root on nfs.
patch from msaitoh@
2011-06-09 12:04:29 +00:00
matt
3c53dfee1d
Use __arraycount
2011-06-09 07:17:02 +00:00
rmind
b1d9d10d78
- Use IPL_BIO (instead of IPL_SERIAL) for SPI.
...
- Convert simple_lock/ltsleep to mutex/condvar.
2011-06-08 23:05:48 +00:00
pgoyette
35a3b0e4a6
Factor out some duplicated code to simplify maintenance. Reduces
...
the source file by ~100 lines, and amd64 object file shrinks by
~650 bytes.
No functional change intended.
2011-06-08 18:22:24 +00:00
pgoyette
67461ad93e
Restrict limit monitoring for Indicator sensors as well as for
...
Battery-charge sensors.
2011-06-08 16:14:57 +00:00
drochner
89c8725c96
add support for the interesting parts of ISO-2 and KOI8-R fonts
...
to the vga(4) driver
2011-06-08 10:25:21 +00:00
cegger
be9c987bdd
add BCM5785 phy:
...
brgphy0 at bge0 phy 1: BCM5785 1000BASE-T media interface, rev. 3
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FD , auto
2011-06-07 10:10:44 +00:00
cegger
047aa05ba8
regen.
2011-06-07 10:08:02 +00:00
cegger
da2c0a5809
add ATI Radeon Cypress and Lucent IEEE 1394b Controller
2011-06-07 10:07:35 +00:00
cegger
25591d12b1
regen.
2011-06-07 09:26:27 +00:00
cegger
add8d199ec
add BCM5785
2011-06-07 09:24:17 +00:00
msaitoh
691f9bca2f
- Add some new devices (from OpenBSD rev. 1.11-1.12,1.15 and 1.20).
...
- force usb to send a zero length packet on the end of usb packets
which happen to be a multple of 64 bytes, to indicate end of packet.
(from OpenBSD rev. 1.23)
- style change
2011-06-07 05:46:00 +00:00
msaitoh
57ac6d0bbe
Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).
2011-06-06 18:27:12 +00:00
pgoyette
ecf9f011c0
Don't update the value_{min,max} - these fields are not {low,high}-water
...
marks, and setting them without also updating the ENVSYS_FVALID_{MIN,MAX}
flags is quite pointless.
2011-06-06 17:53:01 +00:00
pgoyette
ffd31fcd0b
Don't set the FVALID_{MAX,MIN} flags since these values are not
...
min/max legal values. The values are alarms limits, and they're
already being tracked properly with the flag settings in *props
2011-06-06 17:49:41 +00:00
msaitoh
d356bb8757
regen.
2011-06-06 14:31:51 +00:00
msaitoh
acfe6f77e1
Rename 82801DB LPC Interface Bridge for consisitency.
2011-06-06 14:31:23 +00:00
tsutsui
e8604b1e02
Umm, fix more split fallout.
...
While here use a common arg name (aux) as mentioned in autoconf(9).
2011-06-05 16:22:00 +00:00
christos
d545620cfc
fix split fallout.
2011-06-05 16:08:20 +00:00
jruoho
737bec53a6
Change some printfs to aprint_debug(9).
2011-06-04 18:03:10 +00:00
pgoyette
41f31ea216
Remove ability to the value_avg since it no longer exists
2011-06-04 13:26:51 +00:00
pgoyette
7d8bd19e5d
Update to use the new name for the sensor's private data.
...
XXX This driver still uses the sensor's value_min for an unrelated
XXX purpose, but changing that will have to wait for another day.
2011-06-04 13:25:56 +00:00
pgoyette
77b2e2fc09
Since nothing actually records or maintains an average sensor value,
...
remove value_avg from the prop_dict. We can't completely remove it
because there's one driver that uses this field for its own private
purposes, so for now we just rename the member.
2011-06-04 13:24:33 +00:00
pgoyette
40ef889e08
Enable creation of value_{max,min,avg} entries via the proplist, as well
...
as setting the ENVSYS_FPERCENT flag
2011-06-04 02:02:55 +00:00
tsutsui
47f361e87a
Split device_t/softc. pmax is tested on GXemul.
...
Compile test only for alpha and vax.
XXX: alpha/tc/tcasic.c calls tcattach() via config_found(9), but
XXX: pmax/tc/tcbus.c and vax/vsa/tc_vsbus.c calls tcattach() directly.
XXX: It looks horrible...
2011-06-04 01:57:34 +00:00
tsutsui
def926001b
Split device_t/softc. pmax is tested on GXemul, compile test only for alpha.
2011-06-04 01:49:43 +00:00
tsutsui
eaf783ae5b
Split device_t/softc. Tested on GXemul.
2011-06-04 01:43:56 +00:00
tsutsui
595cbc6ae0
Split device_t/softc of am7930. No crash on TME and GXemul.
2011-06-04 01:27:57 +00:00
jruoho
5ad6ddef1f
Add locking to account improbable but possible race between the notify
...
handler and sysmon_envsys(9)'s refresh routine.
2011-06-03 18:50:36 +00:00
jruoho
308501aab6
Remove unnecessary (due SME_DISABLE_REFRESH) locking.
2011-06-03 18:40:41 +00:00
tsutsui
c22ffc3803
Split device_t/softc of i82586. No crash on TME emulating sun2.
2011-06-03 16:28:40 +00:00
cegger
462a6f12c8
fix crash by NULL pointer dereferencing I get everytime
...
right after this message:
bge0: discarding oversize frame (len=-4)
2011-06-03 09:51:40 +00:00
jruoho
224e9f9368
Flush CPU caches before entering S1, as noted in the specifications.
2011-06-03 09:15:02 +00:00
matt
d5f8a855d3
-CFATTACH_DECL(foo, sizeof(struct device),
...
+CFATTACH_DECL_NEW(foo, 0,
2011-06-03 07:39:30 +00:00
haad
b08f594364
Fix simple typo which made stripe target not working very at all. Issue
...
found by mhitch@.
2011-06-02 17:49:40 +00:00
tsutsui
ff2f721f5c
Split device_t/softc of all ad1848 variants properly. Compile test only.
...
Please check all attribute users in all files.* on device_t/softc split.
XXX: not sure if gus(4) needs device_t in ad1848_isa_softc
2011-06-02 14:12:24 +00:00
nonaka
26a17089a0
fix compile failure.
2011-06-02 12:51:52 +00:00
macallan
0d5bf7c96e
some steps to make multiple instances work:
...
- don't bail if we're not the console. If we get the right paramters there is no
reason not to work
- move wsdisplay_accessops into the softc
- call wsdisplay_cnattach only if we're the console
2011-06-02 02:33:42 +00:00
christos
4418f77599
split audiocs
2011-06-02 00:23:28 +00:00
njoly
423b7f5dbf
Regen for Chipsbank vendor id.
2011-06-01 13:58:51 +00:00
njoly
83fd8d5c6e
Add Chipsbank vendor id.
2011-06-01 13:57:55 +00:00
macallan
dd3292d9f1
move wsdisplay_accessops into the softc so multiple instances have a chance
...
to work without stepping on each other's toes
2011-06-01 05:06:17 +00:00
jruoho
67a633998e
Fix a bug where the S1 state was exited via AcpiLeaveSleepState() with
...
interrupts being off at machine-level. Also add some comments.
2011-05-31 14:27:44 +00:00
joerg
364e10d719
Don't play format string tricks, use two calls with the correct number
...
of arguments for each.
2011-05-30 13:55:27 +00:00
phx
9a6f7751cf
The Genesis interface provides a register in the device specific config space
...
to automatically revert the byte order in all descriptors.
Make sure this feature is inactive. Otherwise the driver is unable to
receive or transmit any frame.
2011-05-29 13:31:30 +00:00
jmcneill
006e5dde1f
When a child device is detached and no interfaces are claimed by drivers,
...
free the port's subdevice list. This allows for detaching a driver from
a USB device and loading a different one without disconnecting the device.
2011-05-29 12:37:09 +00:00
phx
a19dce7f31
regen
2011-05-28 22:54:08 +00:00
phx
d04c2d9218
Renamed VT6410 to VT6410_RAID.
2011-05-28 22:53:23 +00:00
phx
b22ae29ee8
regen
2011-05-28 22:48:50 +00:00
phx
ab0ab976ea
Add VIA VT6410 ATA RAID controller.
2011-05-28 22:47:58 +00:00
matt
2a1887ef27
Allow COM_TOLERANCE to be tweakable. If comspeed returns an invalid
...
rate, don't use that error value to set the speed.
2011-05-28 19:30:19 +00:00
tsutsui
4c77d823c3
Revert changes for PR kern/44907
...
http://mail-index.NetBSD.org/source-changes/2011/05/27/msg022584.html
for now. It might cause a panic in ehci_freex() on device detach
as reported by Paul Goyette on current-users@.
2011-05-28 15:47:17 +00:00
phx
fbc9e96bfd
Add direct config support for all devices used by sandpoint.
2011-05-28 13:59:31 +00:00
ryo
b163ca7de6
Add support for SYSTEMBASE SB16C105x 4-port/8-port serial PCI cards.
...
- Added initialize code for SB16C105x to puc.c, but
It is better to add a member (*config_function)() to
struct puc_device_description and use it
- It seems SB16C1054 *rev 0x91* has different BAR layout, but not supported yet.
2011-05-28 10:48:50 +00:00
ryo
1924fdd283
Regen.
2011-05-28 10:45:08 +00:00
ryo
c1dc84bf44
add SystemBase SB16C1058 8 port serial cards
2011-05-28 10:44:43 +00:00
matt
80fa5b26d0
Regen.
2011-05-28 05:56:15 +00:00
matt
144a4dfeef
Fix CS8244 entry (changed to VSC8244).
2011-05-28 05:55:58 +00:00
yamt
33d93c8dcc
rf_ReconstructInPlace: don't leave a vnode open on errors.
...
fixes a part of PR/44972.
2011-05-28 00:53:04 +00:00
yamt
c44faaeacb
don't forget to destroy mutex.
2011-05-27 22:48:24 +00:00
jakllsch
4e29b776c9
Data toggle accounting for endpoints on OHCI.
2011-05-27 20:37:13 +00:00
tsutsui
a1d8675863
Apply patch in PR kern/44907 (crash due to race in ehci.c):
...
- make sure to remove abort_task in ehci_freex
- always initialize abort_task in ehci_allocx,
not in ehci_timeout just before adding the task
Also apply similar fixes to ohci and uhci.
XXX: should we also call abort_task handler before removing it from queue
if *hci_freex() is called for usbd_xfer_handle with queued abort_task?
2011-05-27 19:04:24 +00:00
drochner
8dc7d7ef68
remember the data toggle bit per (bulk) endpoint rather than per
...
pipe, as required by the spec
This helps in cases where pipes are opened/closed without reconfiguring
the device in between, eg with the ugen driver.
only for UHCI/EHCI, don't have an OHCI to test
2011-05-27 17:19:18 +00:00
matt
12a7a4f889
Add quirk for ALI M5228
2011-05-27 15:11:59 +00:00
matt
642d39aa88
Regen.
2011-05-27 15:11:17 +00:00
matt
69cd0fdb34
Add ALI M5288 SATA/Raid Controller
2011-05-27 15:09:44 +00:00
jmcneill
a983d24cd8
mute the audio input during frequency changes
2011-05-26 23:42:39 +00:00
jmcneill
d82153063e
add a function to mute/unmute the audio input
2011-05-26 23:42:05 +00:00
jakllsch
8e78c7985c
Convert malloc(9) to kmem(9) in atppc(4).
...
(Intended to have been part of previous commit.)
2011-05-26 02:37:25 +00:00
jakllsch
c0d7afac87
Convert ltsleep() in atppc(4) to modern interfaces.
...
Reviewed by rmind@.
2011-05-26 02:29:23 +00:00
uebayasi
3f383b9dd4
Declare cfdrivers using extern rather than including ioconf.h.
2011-05-25 16:33:37 +00:00
macallan
26ec9200cf
remove VCONS_DRAW_ASYNC
...
it was always experimental, VCONS_DRAW_INTR is much simpler and Just Works.
2011-05-25 06:13:29 +00:00
macallan
6eb32961ce
add a cache so when we update the screen we only redraw the character cells
...
that actually changed since last time. This gives a noticeable speedup on
slower hardware with dumb framebuffers.
For now this works with VCONS_DRAW_INTR and VCONS_DONT_READ only.
2011-05-25 06:01:38 +00:00
msaitoh
41e7900055
Fix invalid PBA setting on ICH{9,10}. This bug was introduced in the last
...
commit. I noticed this problem via mail from spz.
2011-05-24 22:46:42 +00:00
joerg
dd579972c6
Explicitly get rid of constness.
2011-05-24 18:28:01 +00:00
joerg
b345e8d051
Use proper format string
2011-05-24 18:17:24 +00:00
joerg
d5634f35e3
Kill self-assignment
2011-05-24 18:11:34 +00:00
joerg
c22277f893
Use proper format string
2011-05-24 16:42:53 +00:00
joerg
c79f3b8ab9
Use proper format string.
2011-05-24 16:42:31 +00:00
joerg
ee2f528836
Properly use format string
2011-05-24 16:42:10 +00:00
joerg
0f07b5f4ad
Use proper format string
2011-05-24 16:40:21 +00:00
joerg
093247893c
Kill redundant ()
2011-05-24 16:38:25 +00:00
joerg
5345cc0b23
Kill redundant ()
2011-05-24 16:37:04 +00:00
joerg
0ce8eb378b
Fix obvious condition snafu
2011-05-24 16:35:26 +00:00
joerg
23abb27f60
Fix logic error
2011-05-24 15:23:41 +00:00
mrg
bb85999d1f
for SPI devices, allow platform code to set "scsi-initiator-id" device
...
property, and if set, use it instead of pfp.PortSCSIID.
on sparc64 systems on "scsi" or "scsi-2" devices, look from our node
up the tree for a "scsi-initiator-id" property, and if present, copy
it into the device properties.
this fixes mpt(4) issues on PRIMEPOWER250 (and probably other) systems.
idea from freebsd r207243/r207287, but reworked to use our device
properties instead of platform #ifdefs.
look in "device_type" as well as "name" for "ethernet" or "network",
and also look to see if a "local-mac-address" is set when choosing if
this may be a network device. fixes bge(4) nul ethernet address on
the same PRIMEPOWER250.
2011-05-24 10:08:03 +00:00
mrg
046a9cdb65
avoid mutex locking botch and introduce an unlocked version of
...
pcppi_bell_stop(). fixes a problem reported in private email.
2011-05-24 09:28:03 +00:00
buhrow
463102d28a
Suggested to oster@ and approved via private e-mail as a help to
...
people who are getting reconstruction failures.
2011-05-24 07:33:41 +00:00
joerg
a66d2b0d4c
Don't use the name of the task queue as format string
2011-05-23 21:50:44 +00:00
joerg
f62ac60184
rf_panicbuf is already format, so don't pass it as format string to
...
panic()
2011-05-23 21:49:35 +00:00
joerg
4f9b8d73fe
Don't use the device name as format string.
2011-05-23 21:30:56 +00:00
joerg
8c8d4b56e2
Don't use string literal as format string.
2011-05-23 21:18:55 +00:00
drochner
4bd7f95161
-remove references to crypto/arc4/arc4.* -- the code isn't used
...
anywhere afaics
(The confusion comes probably from use of arc4random() at various places,
but this lives in libkern and doesn't share code with the former.)
-g/c non-implementation of arc4 encryption in swcrypto(4)
-remove special casing of ARC4 in crypto(4) -- the point is that it
doesn't use an IV, and this fact is made explicit by the new "ivsize"
property of xforms
2011-05-23 15:37:35 +00:00
joerg
56a181efa4
Let's not be silly. Use a fancy "if else" to decide behavior of a bool
...
and hope cosmic radition doesn't create a third state.
2011-05-22 22:13:33 +00:00
jdc
22439c395e
Fix corrupted packet problem on 100Mb/s half duplex links.
...
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
SUNW,Sun-Blade-2000
gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
Setting pointed out by bad@.
2011-05-22 11:19:23 +00:00
mrg
de5a910070
match some fujitsu bge interfaces seen on PRIMEPOWER 250/450 systems.
...
from Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
2011-05-22 08:15:20 +00:00
mrg
cdcd8bddc9
regenerate.
2011-05-22 08:13:56 +00:00
mrg
8e96c9415e
add some fujitsu ethernet id's and a new vendor id. partly from
...
Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
XXX: move the #if 0'd usage of PCI_VENDOR_CITICORP inside the #if 0 code
XXX: region, as this id conflits with the (4th) fijutsi id.
2011-05-22 08:13:17 +00:00
msaitoh
ab5c26c930
Add newer Wireless WiFi Link 4965 devices, Centrino Wireless-N 1030
...
and Centrino Advanced-N 6230
2011-05-21 12:51:47 +00:00
msaitoh
939f31d12a
regen
2011-05-21 12:49:50 +00:00
msaitoh
7d7e944c06
Add some iwn(4) devices.
2011-05-21 12:48:59 +00:00
tsutsui
823c8d62ae
Add a kludge to make this build on hp300.
...
(anyway bus independent driver should not include bus dependent sti_pci.h)
2011-05-21 12:02:55 +00:00
reinoud
9ba99564ec
Fix size reporting for DVD+R/DL and BluRay's; the value was trunced due to a
...
32 bit trunc due to a lacking type cast. The number of sectors for such media
can be more than 1<<32-1.
2011-05-20 09:23:37 +00:00
msaitoh
e43e4777a3
82579 support.
2011-05-20 06:06:59 +00:00
msaitoh
56f5ce9baa
Add support for 6050(6250 and 6150) and 6005(6205).
...
TODO: update iwn.4 manpage.
2011-05-20 01:59:14 +00:00
msaitoh
40d6eb691f
Add PCH2 support.
2011-05-20 01:51:36 +00:00
msaitoh
f3a272623e
- Add PCH2 support.
...
- Add 82579 support.
- Change PBA size for PCH from 10K to 26K as FreeBSD's em-7.1.7
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add 82580 quad-1000BaseX support.
2011-05-20 00:57:42 +00:00
msaitoh
4ea65b9c4a
regen.
2011-05-20 00:50:47 +00:00
msaitoh
2ecc0b2cf4
Add Intel 82567V, 82580 Quad-1000BaseX and Hanksvill with ICH10.
2011-05-20 00:50:19 +00:00
msaitoh
6687e6b65a
regen
2011-05-20 00:47:11 +00:00
msaitoh
8552d6843d
Add Intel 82579
2011-05-20 00:46:53 +00:00
riastradh
1e0dbea92c
Reject unaligned writes to cgd.
...
Fixes the following PRs:
PR kern/44515 (cgd dies on non-aligned writes to the raw device)
PR kern/44964 (cgd seems to panic on unaligned writes instead of giving EINVAL)
ok christos
2011-05-19 20:34:13 +00:00
dyoung
b11777e520
#include <sys/bus.h>, not <machine/bus.h>.
2011-05-18 01:02:43 +00:00
dyoung
399cdcdfe9
MI code must #include <sys/bus.h>, not <machine/bus.h>.
2011-05-18 01:01:59 +00:00
dyoung
a6b2b8396b
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
...
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.
Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.
This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:
algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
mrg
8169e46991
move and rename the uvm history code out of uvm_stat to "kernhist".
...
rename "UVMHIST" option to enable the uvm histories.
TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories. this is mostly just
allocating something in a bitmap, and is only for viewing multiple
histories in a merged form.
tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
mhitch
08cc54d62a
I was allowing adapt_max_periph to use all available command slots, which
...
easily exceeds the maximum of 256 tags used by the scsipi layer because
the tag information from the scsipi layer was ignored and all the tagging
is handled implicitly internal to ciss(4). But with the DIAGNOSTIC option,
the scsipi layer does a check for > 256 tags and will panic. So, lets just
limit the adapt_max_periph to 256 so the scsipi layer won't try to user more.
2011-05-16 17:21:37 +00:00
drochner
0fac92398a
fix detach() to avoid use-after-free problems:
...
-stop transfers before freeing data structures
(and comment out a useless delay)
-free devinfo later
Hot-unplugging an USB cam while in use doesn't crash my box anymore now.
2011-05-16 10:53:19 +00:00
macallan
a37153870a
don't leave a mess on screen when attaching, while there use VCONS_DONT_READ
...
if VCONS_DRAW_INTR is set
2011-05-16 00:59:37 +00:00
christos
97a122a2f7
update from OpenBSD by msaitoh. Tested on amd64.
2011-05-15 13:56:20 +00:00
msaitoh
22c389a767
Add support for Intel 6 series.
2011-05-15 01:00:52 +00:00
msaitoh
720f669b3d
regen.
2011-05-15 01:00:07 +00:00
msaitoh
66284465df
Add entries for Intel 6 series' devices.
2011-05-15 00:59:36 +00:00
martin
a9fb883f63
PR kern/44956: add support for Qinheng PCI cards to the puc driver
2011-05-14 22:07:38 +00:00
martin
0264248b21
Regen
2011-05-14 21:58:48 +00:00
martin
17cff40edc
Add Nanjing QinHeng Electronics, from PR kern/44956.
2011-05-14 21:57:52 +00:00
jakllsch
3af888c194
Convert remaining simplelock usage in dmover(4) to a RUN_ONCE(9).
2011-05-14 18:24:47 +00:00
jakllsch
34c3adecb2
Convert simplelock to mutex in this portion of dmover(4).
2011-05-14 14:49:19 +00:00
jakllsch
4ac4f6b4d6
Modernize simple_lock() and ltsleep() usage in dmover(4).
...
(Thanks to rmind for providing hints on what was necessary.)
2011-05-14 13:52:00 +00:00
rmind
356c1e108a
Replace simple_lock(9) with mutex(9), clean up.
2011-05-14 12:44:15 +00:00
rmind
f46b67cca2
Convert to mutex(9). Replace ltsleep with mtsleep.
2011-05-14 02:58:27 +00:00
rmind
6a0660a9b0
Replace some ltsleep() uses with kpause() and tsleep().
2011-05-13 22:35:50 +00:00
rmind
3c66f2d262
filemon_open: remove unnecessary check (which has a leak in error path).
2011-05-13 22:31:08 +00:00
rmind
3bc401dcc3
Eliminate few references to ltsleep.
2011-05-13 22:28:40 +00:00
msaitoh
f28852500d
regen.
2011-05-13 01:34:04 +00:00
msaitoh
452427b9ae
add entries for 82579LM and 82579V
2011-05-13 01:33:10 +00:00
mrg
8c36bb4b69
convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
...
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.
this leaves just a pair of tsleep()/wakeup() calls using old scheduling APIs.
2011-05-11 18:13:12 +00:00
mrg
30308cb715
convert regionBufferPool.mutex/cond and parityBufferPool.mutex/cond
...
to kmutex/cv.
2011-05-11 06:20:33 +00:00
mrg
c57ca1d4fb
convert parityLogPool.mutex to a kmutex.
2011-05-11 06:03:06 +00:00
mrg
662e58c786
convert regionInfo[regionID].mutex to a kmutex.
2011-05-11 05:14:07 +00:00
mrg
3dd617695f
convert reintMutex to a kmutex.
2011-05-11 03:38:32 +00:00
mrg
32ab76b94a
convert parityLogDiskQueue.mutex to a kmutex/cv.
...
XXX: some splbio() usage to clean up here
2011-05-11 03:23:26 +00:00
dyoung
e778d5fdd6
Constify pci_attach_args.
2011-05-11 00:12:41 +00:00