Commit Graph

21911 Commits

Author SHA1 Message Date
dogcow
d515e7b784 Some delicious copypasta from sys/dev/ic/vga.c, so that unichromefb will
compile (and possibly work) when option VGA_RASTERCONSOLE is present.
2007-03-15 16:58:36 +00:00
drochner
82d96e1fac Keep track of the per-port status change notifications coming in
through the interrupt pipe; during exploration check only the ports
where we got such a notification. This speeds up things.
(I believe we should go a step further and use a thread per hub
instead of per bus. If power management gets implemented, we should
be able to react quickly on a resume event.)
Try to simplify the logics in the explore function a bit. (The reattach
thing was hacked in badly, not sure whether I broke it. Only used
by if_atu.)
Clean up some dead code.
2007-03-15 15:29:09 +00:00
drochner
dc9d1127cc kill the private submatch function, use the generic one 2007-03-15 15:11:54 +00:00
drochner
f59858473f in usbd_set_config_index, range-check the index 2007-03-15 15:11:19 +00:00
macallan
2f4ccf79fa - add dummy input methods so we don't panic if someone tries to read
- add dummy input mixer controls
- restart tx DMA on PWR_RESUME
- power up on PWR_RESUME only if we really have to
- add an option to control wether to spin or sleep when waiting for the chip
  to switch between data and control mode
2007-03-14 05:40:35 +00:00
macallan
e7b9466d99 sprinkle parentheses 2007-03-14 05:35:22 +00:00
xtraeme
d57d6adf9b Rename acpi_aiboost to aiboost, suggested by cube. 2007-03-14 00:43:04 +00:00
plunky
07ed1bdaa3 remove extraneous whitespace 2007-03-13 19:26:06 +00:00
xtraeme
4b9be68be9 Use C99 struct initializers. 2007-03-13 18:32:35 +00:00
christos
84c0a4321c Fix typo in print statement; from khorben 2007-03-13 16:31:24 +00:00
drochner
c3d5f3709f add multiple inclusion protection, from KIYOHARA Takashi per PR kern/35997;
being here, unifdef for __NetBSD__ and __HAVE_GENERIC_SOFT_INTERRUPTS
2007-03-13 15:00:07 +00:00
drochner
8258b792b7 Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!
2007-03-13 13:51:53 +00:00
msaitoh
9e2c46fe42 Apply if_msk.c rev. 1.4 to if_sk.c:
> Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"
 >
 > Original commit message:
 >  > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 >  > continuing when busy flag set.
2007-03-13 09:50:00 +00:00
msaitoh
9484bc8665 tabify 2007-03-13 06:41:52 +00:00
msaitoh
5d9d95c736 KNF 2007-03-13 06:33:54 +00:00
xtraeme
9c83a552f8 ASUS AI Booster ACPI driver, ported from FreeBSD.
This driver will report values from the Super I/O chip via ACPI.
It should be possible to overclock the system with this driver, but
it's not implemented yet.

All newer ASUS motherboards probably will work with this driver
(device ATK0110).

[juan@nocturno][~]> envstat -r
CPU Temperature:     30.000 degC
 MB Temperature:     38.000 degC
  Vcore Voltage:      1.240 V
   +3.3 Voltage:      3.264 V
     +5 Voltage:      4.992 V
    +12 Voltage:     12.091 V
  CPU FAN Speed:       1454 RPM
[juan@nocturno][~]>
2007-03-13 04:01:51 +00:00
plunky
0319d7247c match against the whole device, since we take more than one interface. 2007-03-12 20:32:00 +00:00
ad
3bf254230f Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 19:56:19 +00:00
ad
59d979c5f1 Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 18:18:22 +00:00
kiyohara
4ecba574db Not KAUTH_DEVICE_TTY_OPEN but KAUTH_GENERIC_ISSUSER is used. 2007-03-12 14:12:13 +00:00
christos
31b5ea99cb fix missing initializers. 2007-03-11 22:25:48 +00:00
ad
5941740892 Remove a use of lockmgr/LOCK_INITIALIZER. 2007-03-11 22:16:32 +00:00
ad
2dc89bb0bd Remove #include <machine/vmparam.h>. 2007-03-11 22:11:02 +00:00
xtraeme
f8fabb9a9e Explicitly initialize lm_sensor->rfact for every sensor's chip. 2007-03-11 21:23:22 +00:00
kent
b7fab1d1f2 * codec names for Realtek ALC262, ALC268, ALC861, ALC861-VD-GR,
ALC883, ALC885, and ALC888
* DAC/ADC group definitions for Realtek ALC861, ALC861-VD-GR,
  ALC883, ALC885, and ALC888
2007-03-11 15:42:00 +00:00
xtraeme
0562751ee3 Update for the nslm7x driver:
* For each supported chip, there's a struct lm_sensor array
  that specifies the sensor data, like reg, bank, descr, rfact.

* Rather than having 3 functions to setup the voltage, temp and fan
  sensors, just have one that will do all the three steps looking at
  its struct lm_sensor members, simplifying a lot the code.

and more things that I can remember, our code now is synced with
OpenBSD, IMHO much better to understand and maintain in the future.

Supported chips added with the new code include:

* Winbond: W83627EHF, W83627DHG, W83637HF, W83783S, W83791D, W83791SD,
           W83792D.
* Asus AS9912F.

My new mobo with the Winbond W83627DHG chip correctly reports
the values now:

lm0 at isa0 port 0x290-0x297: Winbond W83627DHG Hardware monitor

[juan@nocturno][~]> envstat -r
      VCore:      1.232 V
       +12V:     12.091 V
      +3.3V:      3.264 V
        +5V:      4.945 V
       VBAT:      3.728 V
System Temp:     36.000 degC
   CPU Temp:     29.500 degC
   Aux Temp:     22.000 degC
    CPU Fan:       1591 RPM
[juan@nocturno][~]>
2007-03-11 15:03:08 +00:00
kent
df732e91f1 don't start dmesg lines with \t to do grep easily 2007-03-11 14:34:04 +00:00
kent
88b9b15961 remove DPRINTF() in generic_mixer_init() because they are useless
in many cases.
2007-03-11 13:41:18 +00:00
kent
d7d522ea80 - Add jack-sense code for STAC9220 in some DELL models (currently disabled)
- Add DAC/ADC grouping for AD1988
2007-03-11 13:34:40 +00:00
kent
c88ac48ab9 reviced Intel Mac support code (currently disabled)
PR#34880
2007-03-11 13:31:36 +00:00
mlelstv
99fe08f401 print a size_t value with a size_t format.
The cast is necessary in case someone redefines RT2573_TX_DESC_SIZE.
2007-03-11 09:38:24 +00:00
macallan
5b56050bcf whitespace police, some cleanup - no functional changes 2007-03-11 08:52:12 +00:00
christos
88b6b36440 open and close envsys; from Cherry. 2007-03-11 01:24:12 +00:00
macallan
2f1817f673 some more overhaul:
- use static consistently
- convert to auconv instead of pretending to support LE samples
2007-03-11 00:36:57 +00:00
macallan
d6f540f111 don't pull in stuff we don't actually use:
- nuke mulaw from dbri
- nuke rasops16 and rasops32 from pnozz
2007-03-11 00:35:32 +00:00
christos
5803d0dc86 regen 2007-03-10 21:08:47 +00:00
christos
e8381a0776 PR/35970: Todd Kover: Add support for HP ML110 G2 / Adaptec 2610SA 2007-03-10 21:08:16 +00:00
macallan
964f61e42e adjust some debug output verbosity and use aprint_*() 2007-03-10 18:42:37 +00:00
kent
4540a56313 add diagnostic code in azalia_codec_construct_format() 2007-03-10 16:39:37 +00:00
msaitoh
012c8e5069 Commit from AsiaBSDCon 2007's place
Fix the problem "ifconfig bge0 media auto" negotiates to 100Mbps on 1000BaseT
HUB.
2007-03-10 09:13:07 +00:00
itohy
691799bc9b I tried the test code in PR kern/35934 on PIIX4 and ICH6,
both of which turned out to have the problem.
Enabled (untested) workaround for all PIIX controllers.

XXX  Do other controllers also have this problem?
2007-03-10 06:01:43 +00:00
christos
9613494373 whitespace 2007-03-10 00:52:46 +00:00
xtraeme
1aaad7d266 regen 2007-03-09 22:11:06 +00:00
xtraeme
b2fab0eec1 +ATI Radeon X1300 2007-03-09 22:10:40 +00:00
oster
fb3988281d In the case of multiple RAID sets that are marked as root, attempt to
use the RAID set that contains the component used for booting.  Thanks
to manu@ for the main part of this.
2007-03-09 15:57:34 +00:00
drochner
f6c8681509 after the recent config_attach_pseudo() changes, unit numbers have the same
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
2007-03-09 15:41:02 +00:00
kent
e893f67fa1 return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.

PR#35171
2007-03-09 13:20:12 +00:00
yamt
073d78105b use b_bcount where appropriate rather than keeping b_resid sync with it.
no functional changes.
2007-03-09 05:28:37 +00:00
he
bf9a718b25 Cast to char* before doing pointer arithmetic. 2007-03-08 23:56:45 +00:00
he
856d1c9da0 Cast to char* before doing pointer arithmetic. 2007-03-08 23:25:44 +00:00