Commit Graph

23361 Commits

Author SHA1 Message Date
dyoung
b6c0385fe0 Use device_t, device_private(). 2008-01-14 06:12:13 +00:00
dyoung
132fca675f In pccbbdetach(), panic if interrupt handlers are still registered
after detaching children.

Use PCI_CB_MEMBASE0, PCI_CB_MEMLIMIT0, PCI_CB_IOBASE0, PCI_CB_IOLIMIT0
instead of magic numbers.
2008-01-14 03:01:41 +00:00
cube
55f21981d9 workqueue(9) has the non-evident limitation that the caller cannot reuse
the same struct work before workqueue(9) has internally started to work on
the task.

So to make sure that doesn't happen, provide a semaphore not to run the
workqueue multiple times.  It might be clearer just skip using workqueue(9)
and use a thread for about everything, but oh well, I leave that to
someone else.

Now is@ can yank his USB-to-Ethernet adapter while the interface is up.
2008-01-12 22:32:51 +00:00
tnn
103f966e33 regen (add ServeRAID 6/7) 2008-01-11 20:49:14 +00:00
tnn
2abb4192af Add ServeRAID 6/7 2008-01-11 20:47:21 +00:00
ragge
1d93d6da72 Add entry to match the "Intel® PRO/1000 PT Quad Port Server Adapter". 2008-01-11 13:04:39 +00:00
ragge
9360a7471b Regen 2008-01-11 12:01:20 +00:00
ragge
5f5a2ae52a Add Intel quad 1000baseT copper PCI express card. 2008-01-11 11:31:25 +00:00
tsutsui
fba7c262a8 Move todr_attach(9) calls from each MD attachment to MI intersil7170_attach(). 2008-01-10 16:04:57 +00:00
tsutsui
05517e38f5 - move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
  MD attachments
2008-01-10 15:31:26 +00:00
tsutsui
db09bcc34f Move todr_attach(9) calls from each MD attachment to MI mc146818_attach(). 2008-01-10 15:17:39 +00:00
tsutsui
6dfc7d1b78 - use aprint_normal(9)
- use __func__ to print function names
2008-01-10 14:52:32 +00:00
tsutsui
57e50507c9 Use aprint_normal(9). 2008-01-10 14:51:49 +00:00
tsutsui
af18f23ec2 - use aprint_normal(9)
- use __arraycount()
- use __func__ to print a function name
2008-01-10 14:51:17 +00:00
dyoung
bf192f5d8d In pcppi_detach(), s/pmf_device_register/pmf_device_deregister/.
Why that never blew up when I tested, I will never know.  Thanks
wiz@ for catching my mistake.
2008-01-10 08:55:31 +00:00
dyoung
b0b0d490fb Straggler: change generic ifmedia_X names to lmc_ifmedia_X. 2008-01-10 08:50:52 +00:00
dyoung
636e434283 Support pcppi(4) detachment.
Use device_t, device_private().  Get rid of a struct device * cast.
2008-01-10 07:58:39 +00:00
dyoung
d3a283186c Use device_t. 2008-01-10 07:49:04 +00:00
dyoung
92e5e1c722 Oops, remove some debug statements that slipped in there. 2008-01-10 07:48:22 +00:00
dyoung
3a66b9167f Let us detach atabus* from wdc*, and wdc* from isa*.
Use device_t, device_private().
2008-01-10 07:44:07 +00:00
dyoung
1415c1d7aa Use device_t, device_xname(), device_private(). Add atabus_childdetached()
to clean up pointers to detached children.
2008-01-10 07:41:20 +00:00
dyoung
c329a611cb Add a helper routine for ethernet drivers, mii_ifmedia_change().
Remove an mii_softc from its mii_data in mii_phy_detach(), not in
mii_detach(), so that we do not leave dangling pointers to a PHY
in an mii_data.
2008-01-10 07:29:41 +00:00
dyoung
49df706f87 Re-use ether_mediachange(), ether_mediastatus(). Stop using
shutdownhook_establish(9).
2008-01-10 07:25:33 +00:00
uwe
829ba69fd1 Don't bury &sc->sc_dev idiom inside arglist of aprint_error_dev(), use
explicit device_t self variable instead to make future conversion easier.
2008-01-09 22:29:20 +00:00
uwe
9ea46456ee Autoconf allocates softc with M_ZERO, so there's no need to explicitly
init missing todr methods to NULL.
2008-01-09 22:20:40 +00:00
uwe
1825805f68 Use todr_{get,set}time_ymdhms methods and let MI code in kern_todr.c
do conversion and checks.
2008-01-09 22:09:22 +00:00
degroote
b69cd173f5 Make sure BBP is ready before writing to it
From DragonflyBSD
2008-01-09 20:21:23 +00:00
degroote
94aebeb732 Add some sysctl to retrieve the radio state (and the debug level).
While here, fixe the return value in case where radio is off (suggested by
joerg@).
2008-01-09 20:15:40 +00:00
uwe
b2fb3432e4 rtc_offset is handled by kern_todr.c, so nuke it here.
Pointed out by joerg@
2008-01-09 18:29:37 +00:00
xtraeme
53fd152fd5 Remove useless returns at the end of void functions. 2008-01-09 14:52:52 +00:00
xtraeme
cbfd19ee15 + gcscpcib(4) 2008-01-09 14:44:51 +00:00
simonb
d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
dyoung
50b7998db1 After rtw_attach() is called, the hardware has been powered down,
so don't fiddle with the Function Event Registers.
2008-01-08 18:26:09 +00:00
joerg
808b08ff6f Short-cut interrupt processing if device has been suspended.
uvm_fault reported by xtraeme.
2008-01-08 15:50:35 +00:00
dogcow
ca9c510ab2 explicitly include simplelock.h 2008-01-08 13:28:22 +00:00
matt
6d2503c7a9 Don't do arithmetic on void pointers. 2008-01-08 06:28:29 +00:00
gdt
1424adf410 Support FIONBIO.
Support non-blocking reads from USB printers.  With this, escputil can
query the printer model, and I can print a test page with gutenprint
5.1 and cups.   Add many comments explaining why the support is not
quite right.  (This change is quite a bit less invasive than a
"correct" fix, and thus more reasonable to pull up to netbsd-4.)

Rototill debugging, so that all DPRINTFN have a level, and so that the
message is printed if the debug level is >= the number in the source
code.  Document debug level plan.

Fix bug where only one status change would be printed (by inspection,
not tested).

Document scheme for reading/discarding data when ulpt(4) is opened for
write only.

Delete dead code.

Plan and patch posted on tech-kern without objections.
2008-01-08 00:58:09 +00:00
tsutsui
2b341ae01b Add timecounter(9) support for mvme68k.
Based on a patch from Garrett D'Amore and several tweaks by me.
Compile tested only, but reviewed by joerg@ and
no objection from scw@ on port-mvme68k.
2008-01-07 14:39:28 +00:00
tnn
303f9ebb5b Make the ACPI_MADT_DEBUG code compile again. 2008-01-07 06:04:07 +00:00
ad
d534bbfa2e Really, remove last vestiges of simplelock debugging. 2008-01-07 01:55:15 +00:00
ad
b439191858 Remove vestiges of simplelock debugging. 2008-01-07 00:27:35 +00:00
bjs
521d96c676 The stamp mutex is not unsafe, so remove this comment so people don't get the wrong idea. ok ad@ 2008-01-07 00:25:19 +00:00
uwe
d8f0d4be74 Catch up with new option to dev/pckbport/wskbdmap_mfii.c 2008-01-07 00:19:08 +00:00
christos
d879c8360a defflag one moe variable. 2008-01-06 19:42:33 +00:00
christos
d1b79165fa clamp min/max values properly. 2008-01-06 19:42:03 +00:00
kent
9602a50eb5 recognized the names of Sigmatel STAC9227-9230 2008-01-06 13:33:21 +00:00
kent
86e51d72d1 fix a bug of S/PDIF audio format selection
PR/36493 by Arcady Antipin
2008-01-06 12:56:20 +00:00
martin
258a4b78cf With the new IPL world, things are easier for us: if we can get the
nell hardware interrupt handler run at IPL_VM, we can call the socket
drivers interrupt handler directly.
This is always possible on sparc64, but on sparc we might have to fall
back to the old softint bounce. Since this uses arbitrary IPLs, we
can not use the new softint_* for this - we'll have to use the old
sparc_softintr_* functions.
2008-01-06 02:29:58 +00:00
jdc
bb4a0543ee Updates from OpenBSD:
-- r1.15
  Add some DSP init code for BCM5221's.

  Values derived from Apple's GMAC driver, same init
  code also exists in Linux's sungem_phy driver.

  tested by miod@ pedro@ and otto@ on a few systems.
    -- r1.16
  Always explicitly set IFM_HDX for half-duplex.

  From brad@
    --
2008-01-05 20:33:29 +00:00
jdc
6055efa604 Add support for Sun PCI X1141A (SX fibre) cards.
Add support for GEM cards on non-OFW machines.
2008-01-05 20:30:22 +00:00
jdc
196789ac55 Add support for Sun PCI X1141A (SX fibre) cards, based on the GEM
documentation, experimentation and a previous patch from John Heasley.

Add improvements to the driver based on the GEM documentation and
from FreeBSD if_gem.c (rev 1.45).
2008-01-05 20:27:44 +00:00
ad
31ef469fe7 Work around com hangs with pcmcia. PR kern/37462. 2008-01-05 12:44:13 +00:00
matt
acb0b175a3 Add #include <sys/simplelock.h> 2008-01-05 02:47:03 +00:00
joerg
e36a3212f8 Catch up with rename of buf's b_un.b_addr -> b_data. 2008-01-04 22:04:59 +00:00
joerg
547d94f35c Add missing sys/device.h. 2008-01-04 21:58:51 +00:00
ad
f142225fa0 B_BAD has done nothing for a long time. 2008-01-04 21:48:05 +00:00
xtraeme
0f546319ca sys/simplelock.h is required now. 2008-01-04 21:33:17 +00:00
ad
0664a0459b Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
kent
e93ecba847 shorten mixer-input names by mixer-name automatic generation
PR/37273
2008-01-04 17:00:05 +00:00
kent
16504b27b0 simplify conversion rule between device volume values and userland
volume values.  Some mixer values never be 255 by this change.

PR#37274
2008-01-04 12:18:00 +00:00
smb
0cb6d977ab Add calls to pmf_deregister on detach. 2008-01-04 03:56:47 +00:00
simonb
0bab12ba30 Make this compile with DEBUG enabled (fix a printf format, convert to
timecounters).
2008-01-04 01:00:43 +00:00
joerg
e6f452fd65 Allow saving of up to 4 PCI registers in the IDE code. 2008-01-04 00:27:27 +00:00
dyoung
17b65ff15d Disable pci_disable_retry() and cardbus_disable_retry(), with a
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.
2008-01-03 23:15:43 +00:00
joerg
28b31e738f Timecounter and generic todr support for pmax. From Garret D'Amore. 2008-01-03 23:02:24 +00:00
xtraeme
98d660f7bb Fix indentation. 2008-01-03 21:28:11 +00:00
tron
4ee524a917 Fix perfomance problems for old revisions of the Symbios 53c1030.
Patch supplied by Patrick Welche in PR kern/30531.
2008-01-03 18:16:20 +00:00
kent
f8415b4922 code cleanup
- use __arraycount
- remove unnecessary M_ZERO flags
2008-01-03 18:00:43 +00:00
kent
c89324c85e - add initialization for ATI HDMI audio
- add custom mixer table for AD1986A by scw@
PR: kern/36140
2008-01-03 17:39:03 +00:00
jnemeth
87a13edaae regen -- Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang 2008-01-03 03:40:24 +00:00
jnemeth
28cdc331fe Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang 2008-01-03 03:38:32 +00:00
christos
79fa20a533 - remove casts
- sprinkle static
- move decls inside ifdef
2008-01-03 02:30:08 +00:00
dyoung
09fd56f9ec Detach attimer at acpi, attimer at isa. 2008-01-03 01:21:44 +00:00
xtraeme
68d02b93e3 New functionality for arcmsr(4) native management via bioctl(8):
Added support to create/remove hot-spare, pass-through disks.
Added support to create/remove volume sets.
Added support to show information about physical disks, even if they
are marked unused, hot-spares or pass-through.

sd(4) devices are attached/detached automagically when a pass-through
disk or volume set is created/removed... thanks scsipi(9) and cube@
for hints.
2008-01-02 23:48:05 +00:00
xtraeme
59a09b45c9 Improve the bio(4) API for incoming changes to arcmsr(4) (and perhaps
other drivers in the future):

- Added BIOC_SVCHECKING to the BIOCVOL ioctl, to know if a volume is
  running a consistency check.
- Added three more volume levels for the BIOCVOL ioctl.
- Added BIOC_SDPASSTHRU to the BIOCDISK ioctl, to know if a disk is
  in pass-through mode.
- Added BIOCDISK_NOVOL; it's used with the same reason than BIOCDISK,
  but it's used only to get information about the physical disks connected
  in a controller (regardless if they are in a volume set or not).
- Added BIOC_SSDELHOTSPARE, BIOC_SSPASTHRU, BIOC_SSDELPASSTHRU,
  BIOC_SSCHECKSTART_VOL and BIOC_SSCHECKSTOPVOL; to remove a hot-spare,
  add and remove a pass-through disk and to start/stop a consistency
  check in a volume.
- Added the BIOC_VOLOPS ioctl; to create/remove a volume set.
- Removed the BIOCCREATERAID ioctl, it was too limited for my needs.
- Added compatibility ioctls for BIOCDISK and BIOCVOL, enabled via COMPAT_30.
2008-01-02 23:45:03 +00:00
dyoung
e9596bf19e Introduce a struct cardbus_chipset_tag, and make cardbus_chipset_tag_t
a pointer to that struct, so that we cannot assign pointers of
arbitrary type to cardbus_chipset_tag_t.  Tweak cbb(4) to accomodate
this change.

Make Cardbus_conf_read() and Carbus_conf_write() pass the right
arguments to cardbus_functions->cardbus_conf_{read,write}() for a
change.

Let's hope this stops the crash in cardbus_function_enable() that
macallan@ reported to me.
2008-01-02 23:11:34 +00:00
dyoung
4f422f7b22 Don't assign a cardbus function tag to a cardbus chipset tag.
Michael Lorenz, macallan@, actually found this bug.

(I will change cardbus_chipset_tag_t to a struct * from void *, so
that the compiler will detect similar typos in the future.)
2008-01-02 23:04:25 +00:00
dyoung
91345ba277 Do not read past the CIS region. Stops an MCHK exception on macppc
(reported by macallan@).

I originally detected this bug by activating 'PCI master target
abort' interrupts on the AMD Elan SC520 processor.  Lo and behold,
several interrupts occurred before the system had finished booting!
NetBSD should probably activate PCI exception reporting whenever
it is available.
2008-01-02 22:29:00 +00:00
ad
95ffd8cee1 Another driver that should use getiobuf(). 2008-01-02 21:59:45 +00:00
dyoung
95bf02050e Use device_t, device_private(). 2008-01-02 20:47:28 +00:00
xtraeme
b88ea32e70 - Initialize the callout with CALLOUT_MPSAFE, like it was done before
in sysmon_envsys_events.c.
- Separate sme_event_check_low_power() into sme_battery_check(),
  sme_acadapter_check() and sme_battery_critical() (no functional changes).
2008-01-02 12:20:26 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
dyoung
80c0fcd21b Improve device detach routine. Now I can detach nsclpcsio0 and
its children.

Fix an off-by-one bug in the sensor initialization which stopped
it from completing.

Extract sensor initialization into a new subroutine.  If there is
an error while initializing sensors, do not let sc_sme dangle.
2008-01-02 10:21:08 +00:00
dyoung
09767a906c In sysmon_envsys_create(), initialize the callout structure. Stops
panics with a DIAGNOSTIC kernel.

In sysmon_envsys_find_40(), wait until an envsys is not busy before
settings its busy flag, in the pattern of sysmon_envsys_find().
2008-01-02 10:15:53 +00:00
pooka
b0e1200d26 unstaticate putterdebug 2008-01-02 05:27:21 +00:00
dyoung
5493a07f14 Use LIST_FOREACH(). 2008-01-02 03:06:02 +00:00
dyoung
5b4182ee05 Use TAILQ_FOREACH(). 2008-01-02 02:29:14 +00:00
dyoung
66938db654 Cosmetic: fix indentation. 2008-01-02 02:25:27 +00:00
dyoung
a142fc9c6b Add a debug message with aprint_debug_dev(). Use the right bus
tag.
2008-01-02 02:05:19 +00:00
dyoung
60e2cd65a0 Fix XEN2_DOMU (and amd64?) builds: move ether_mediastatus(),
ether_mediachange() to their own module that we compile only if
the kernel configuration demands support for both MII buses and
ethernet.  Thanks to Tom Spindler for suggesting that these routines
move to dev/mii/.
2008-01-02 00:41:07 +00:00
yamt
48a1e4c2c1 a simple performance monitor based profiler, inspired from linux oprofile. 2008-01-01 21:28:37 +00:00
chris
736004cf1c Add property to aceride to allow the forcing of compat mode.
This allows cats to override the BIOS (aka ABLE) settings, which enable
native mode, but doesn't route the interrupts correctly.

Discussed last year on tech-kern and port-cats.
2008-01-01 14:57:05 +00:00
dyoung
73a1d6fbf5 Don't buffer packets while the link is down, but drop them on the
floor like most other ethernet drivers do.

bnx(4) has "vanilla" MII media-handling, so use ether_mediachange
and ether_mediastatus.
2007-12-31 22:52:14 +00:00
dyoung
040eedb464 Extract common debugging code from gem_tint() and gem_start(),
creating gem_txsoft_print().
2007-12-31 21:43:57 +00:00
dyoung
34de2dfb48 In gem_tint(), synchronize the correct descriptors for a Tx packet:
synchronize the N descriptors starting with the packet's first
descriptor, not with its last.  This ought to help the defined(GEM_DEBUG)
&& IFF_DEBUG case.
2007-12-31 21:02:00 +00:00
dyoung
2b99c93d85 gem_start() pads a Tx packet to the minimum ethernet frame length
by adding a segment to the Tx chain.  That entails using one more
descriptor.  It did not synchronize the last descriptor.

In gem_start(), clarify and repair DMA synchronization of the Tx
descriptors.  Sync them all.
2007-12-31 20:54:41 +00:00
dyoung
10769d1048 gem_start() assigned last_txs, but never used it otherwise, so
remove it.
2007-12-31 20:39:45 +00:00
dyoung
4941977e05 Cosmetic: remove superfluous parentheses, shorten staircase. 2007-12-31 20:35:11 +00:00
dyoung
ea67dea885 Re-order operations to ensure that if defined(GEM_DEBUG) && IFF_DEBUG,
gem_tint() prints a coherent set of descriptors that the NIC has
finished processing.  See comments for more information.  Compile-tested
on sparc64 and on macppc.
2007-12-31 20:31:02 +00:00
dyoung
fd5d1d790d Use device_t, device_private(), aprint_error_dev(). 2007-12-31 09:12:18 +00:00
wiz
41643cbfd9 Proxy-commit for xtraeme:
Use sysmon_wdog_unregister(), not sysmon_wdog_register(), in
itesio_detach().
2007-12-31 01:53:58 +00:00
wiz
2af02278c7 Proxy-commit for xtraeme:
add dependency for itesio on sysmon_wdog.
2007-12-31 01:52:34 +00:00
smb
1d2e422408 Add pmf register/deregister to ucom and ugensa. (Addtionally, let a
Sierra wireless card be recognized as a ugensa.)
2007-12-30 21:49:47 +00:00
jdc
7d55a9be13 Regenerate for "Add Apple Shasta GMAC (From FreeBSD)". 2007-12-30 09:30:02 +00:00
jdc
1e2c6ece4c Add Apple Shasta GMAC (From FreeBSD). 2007-12-30 09:28:28 +00:00
dyoung
7be7d500af For consistency with other softc members, s/ethercom/bnx_ec/. 2007-12-30 00:56:45 +00:00
dyoung
ae461c2ed3 Cosmetic: remark that EPIC may deserve one or two custom PHY drivers.
Change a !(bittest) to (bittest) == 0.
2007-12-30 00:04:47 +00:00
dyoung
66a371fa27 Use LIST_EMPTY(), LIST_FOREACH(). 2007-12-29 23:58:48 +00:00
dyoung
66c8374872 Get rid of bnx_suspend_resume(), it did redundant resets.
Merge bnx_if_stop() and bnx_stop().  Handle bnx_stop(, 1) by doing
a reset.

Protect the bnx_stop() call in bnx_detach() with splnet().

Thanks to joerg@ for suggesting the above.

In bnx_stop(), deactivate the PHYs with mii_down().  Return right
away if !IFF_RUNNING.

Use LIST_EMPTY().

In bnx_ifmedia_upd(), propagate all mii_mediachg() return codes to
the caller except for ENXIO, which just means that the PHY is
suspended.  In bnx_init(), propagate bnx_ifmedia_upd() return codes
to the caller.

In bnx_intr(), replace a common subexpression with a variable,
'sblk'.

In bnx_tick(), let the MII bus keep ticking after the link is up:
check link status and exit after calling mii_tick(), not before.
2007-12-29 19:51:38 +00:00
dyoung
401b2c3477 Remove the device_is_active() check from each individual PHY's
service routine.  Add a wrapper for PHY_SERVICE(), called phy_service(),
and check device_is_active() there.  Make the mii_*() routines call
the PHY service routines thorugh phy_service() instead of PHY_SERVICE().

In mii_phy_resume(), restore a PHY's state after resetting it by
sending a MII_MEDIACHG command.  This change makes bnx(4) resume
more reliably and more quickly; it should help other NICs to resume,
too, if they attach PHYs through MII.
2007-12-29 19:34:55 +00:00
tsutsui
c220cab823 Fix typo in comments. 2007-12-29 17:59:20 +00:00
wiz
d190819143 Recognize Marvell 88E1116 Gigabit PHY. 2007-12-29 13:09:36 +00:00
wiz
cd80761b22 regen (+ Marvell 88E1116 Gigabit PHY) 2007-12-29 13:08:53 +00:00
wiz
7bfee0e94d Add Marvell 88E1116 Gigabit PHY. 2007-12-29 13:08:28 +00:00
dyoung
f5207c77ac Use LIST_FOREACH(). 2007-12-29 08:19:35 +00:00
xtraeme
a6d89167f6 Erm, update another comment that was outdated with latest changes. 2007-12-29 06:18:35 +00:00
xtraeme
05c541c9b4 Update a comment that I wanted to correct for long time now... 2007-12-29 06:15:47 +00:00
xtraeme
7abc984e72 Added support for the Watchdog Timer built in the IT871[268] Super I/Os.
The WDT supports any value between 1 and 65535 seconds (or minutes, but
but the driver only uses seconds).
2007-12-29 06:05:06 +00:00
joerg
153e6ec350 Be friendly to timecounter enabled architectures. 2007-12-28 20:18:45 +00:00
riz
42a4e6ef13 As discussed on tech-userlevel, add NetBSD GPT partition types for
swap, ffs, lfs, raidframe, ccd and cgd.  gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
dholland
9784aa9aba Regen. 2007-12-28 00:35:23 +00:00
dholland
45274b234f typo fix: brige -> bridge 2007-12-28 00:34:00 +00:00
ws
92c079bdac Change cacheline fixup for 3114's second set of channels, too.
Fix provided by Masanori Kanaoka in PR 37519.
Fixed differently to avoid code duplication.
2007-12-27 15:14:23 +00:00
dyoung
d2a6fcd7d7 Add device suspend/resume/detach. (Tested with drvctl -S bnx0,
drvctl -Q bnx0, drvctl -d bnx0.)

Separate device_t storage from softc storage and use CFATTACH_DECL_NEW().
2007-12-26 04:06:29 +00:00
he
32dafd4672 Convert to using if_set_sadl() instead of arc_storelladdr(), catching
an overlooked setting of ifnet->if_sadl.  This follows up the recent
change to net/if.h.
2007-12-25 23:31:26 +00:00
perry
b6a2ef7569 Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
joerg
9a98cd19ff Add initial version of calling VGA POST from vga_resume. This is the
equivalent to "vbetool post" using x86emu in the kernel.
2007-12-25 14:22:25 +00:00
hamajima
e56b5e9499 Match on board ethernet controller on VGN-TX91PS. 2007-12-24 17:07:40 +00:00
hamajima
2b65bf0e5d regen. 2007-12-24 17:05:52 +00:00
hamajima
e4fcdf9886 Add Intel 82801GB Ethernet Controller 2007-12-24 17:03:20 +00:00
smb
34da33dfe3 Add missing call to pmf_deregister() in the USB_DETACH routine. 2007-12-24 14:41:19 +00:00
joerg
83ba2e10a4 Remove dead power handling code. 2007-12-23 22:21:56 +00:00
jmcneill
940524edab Deregister activity handler on detach. 2007-12-23 19:14:03 +00:00
jmcneill
13f097963d Always enable the Fn key quirk if a device node for the Sony Programmable
Interrupt Controller (SNY6001) is not present.
2007-12-23 18:03:02 +00:00
jmcneill
9f7f6d9be0 Move Sony Notebook Controller (sony(4)) driver from MD to MI directory,
as it can be used on amd64 as well.
2007-12-23 17:29:26 +00:00
jmcneill
8fce0f055c Move display switching out of the kernel; deliver this (and other) events
to sysmon so a powerd script can handle them.
2007-12-22 18:38:13 +00:00
jmcneill
ebad57771c Handle hotkey events using /etc/powerd/scripts/hotkey_button, ok xtraeme 2007-12-22 18:35:13 +00:00
christos
4d16498d9e Use M_NOWAIT in audio_stream_ctor; it can be called from a softintr context
through pmf_resume.
2007-12-22 18:34:56 +00:00
ad
08b0783a17 t_linesw->l_modem would ideally be called with tty_lock held, but before
that can happen someone needs to beat all the drivers into shape.
2007-12-22 15:45:15 +00:00
ad
a11ac30cf3 Don't recursively acquire tty_lock when zstty_softint() is called directly. 2007-12-22 15:36:37 +00:00
ad
93b4e84394 membar_memory -> membar_sync 2007-12-22 15:33:42 +00:00
jmcneill
6fffc8ef3c Add experimental display switching support. 2007-12-22 13:06:30 +00:00
tsutsui
f498887b08 Apply changes for struct ifnet->if_sadl constify:
http://mail-index.netbsd.org/source-changes/2007/12/20/0033.html
2007-12-22 08:23:01 +00:00
jmcneill
bf34549b28 Only toggle bluetooth when the wireless button is pressed, simplifies
things and it seems I forgot that my laptop has a separate wifi switch.
2007-12-22 03:19:29 +00:00
dyoung
b558d4b56c Remove the remnants of the powerhooks. 2007-12-22 00:41:01 +00:00
dyoung
356cc80ff6 It makes practically no functional difference, but add curly braces
where they were intended.
2007-12-22 00:39:47 +00:00
jmcneill
4ec3c2b1cd Add support for the WLAN / Bluetooth switch. 2007-12-21 22:14:03 +00:00
xtraeme
6d771ab8b4 Register a pmf(9) power handler... ok jmcneill@. 2007-12-21 21:52:10 +00:00
jmcneill
aa518c7bc8 Hook Thinkpad temperature sensors into envsys:
$ envstat -d thinkpad0
TMP0:     46.000 degC
TMP1:     39.000 degC
TMP2:     32.000 degC
TMP3:        N/A
TMP4:     50.000 degC
TMP5:        N/A
TMP6:     29.000 degC
TMP7:        N/A
2007-12-21 21:24:45 +00:00
jmcneill
f5210660c0 Add acpiec_bus_{read,write} and acpiec_get_handle, for use in other
device drivers.
2007-12-21 21:22:54 +00:00