Commit Graph

24050 Commits

Author SHA1 Message Date
jmcneill 4bb5a59ae8 Don't call devsw_attach/detach if _MODULE is not defined 2008-05-30 11:26:21 +00:00
jmcneill 5d0bd997c2 Don't call devsw_attach/detach if _MODULE is not defined. 2008-05-30 11:24:57 +00:00
martin 5faa185ff6 Pass the com softc to comintr, not the device_t.
Fixes PR kern/38776.
2008-05-30 10:59:42 +00:00
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
joerg 5c0597e08b Add PMF hooks. Fixes PR 38675. 2008-05-28 16:20:17 +00:00
jmcneill 5e10ee6416 PR kern/38774: cosmetic typo in umidireg.h: SubType/Subtype, from
Patrick Mahoney
2008-05-28 12:59:30 +00:00
bjs c693c2b2dd Add work-in-progress of NetBSD-specific code. I will be committing a lot
more changes shortly (as soon as I work out the mmap offset insanity).
2008-05-28 04:52:48 +00:00
bjs 91174b68e0 Rework drm_atomic.h for correctness and readability:
- Use macros where appropriate.
 - Remove code for other operating systems -- we don't need it.
 - In atomic_read/atomic_set, cast to volatile.
 - Misc. cleanup.
2008-05-28 04:51:20 +00:00
dyoung a238dc9749 Straggler from last commit: drop unused radiotap flags field, set
the __packed attribute on the radiotap headers.
2008-05-27 21:42:08 +00:00
dyoung 233108fde8 Initialize the channel info in the tx/rx radiotap headers in
ipw_newstate(), instead of reinitializing every time a packet is
sent or received.  Drop the unused radiotap 'flags' field.
2008-05-27 21:41:01 +00:00
dyoung ea0d0ed51e Distinguish O2 Micro bridges from generic bridges. PCI Parity
Error reporting seems to be broken on O2 Micro bridges, so do not
activate it.  Should fix kern/38698, reported by Andreas Gustafsson.
2008-05-27 21:32:47 +00:00
drochner 0936812690 kill USB_DO_ATTACH 2008-05-27 20:46:16 +00:00
drochner 1f3341612f minor unifdef and cleanup, no functional change 2008-05-27 20:44:28 +00:00
dyoung 25b52967a3 For all controllers but type SK_YUKON_FE, set the jumbo frames
capability, ETHERCAP_JUMBO_MTU.  Rely on ether_ioctl() to enforce
the MTU range implied by the ethernet capabilities.  Should fix
kern/38748.

While I'm here, use some standard ethernet constants instead of
msk-specific constants.
2008-05-27 20:14:28 +00:00
dyoung fef8b3ebea #include <sys/device.h> for device_t definition. 2008-05-27 19:26:27 +00:00
ad b18c28f549 PR kern/38763 "hanging in tty" bugfix breaks the build for vax (and
probably others)
2008-05-27 14:13:41 +00:00
drochner a87b5494b4 Fix a dereference if a softc pointer which can legally be zero, leading
to a crash reported by Christoph Egger in a followup to PR kern/38528.
For consistency, keep track of the device_t pointer to child devices
rather than the softc. We really shouldn't mess with child's softc data.
2008-05-26 19:01:51 +00:00
drochner 736f4fcd27 some cleanup:
-unifdef
-since the roothub attach doesn't use locators, don't call
 config_stdsubmatch() -- it is a no-op in that case
-ifsubmatch has configuration and interface always set to useful values,
 remove unnecessary checks
-remove now unused locator definitions from shared header
2008-05-26 18:00:33 +00:00
nisimura 540dfe3a95 - assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
2008-05-26 10:31:22 +00:00
jmcneill 07b705df60 Cleanup, use pmf, and ensure that we keep the device active in the
non-pearl case where power is sufficient.
2008-05-26 03:20:56 +00:00
jmcneill b14ecf8e05 Don't match uberry to a device in dual mode, let umass pick it up instead. 2008-05-26 03:03:50 +00:00
christos 2b96eb7243 Add uberry, a stub driver for RIM BlackBerry devices that can only be used
to charge a BlackBerry on a USB port.
2008-05-26 00:23:05 +00:00
jmcneill 9d0947ae6e PR#34477: Don't dereference ni_chan if it points to the special
``any channel'' token IEEE80211_CHAN_ANYC
2008-05-25 23:17:33 +00:00
jmcneill a6e01338bc Based on changes to nfe_attach in r1.27, wake newer chips from powerdown
mode on resume as well as at attach time.
2008-05-25 22:57:35 +00:00
cegger 5db879ef65 add comment why NULL handlers are sufficient.
requested and ok'd by jmcneill
2008-05-25 22:03:23 +00:00
drochner f8b26260d9 -make the list of USB child devices a (possibly sparse) array rather
than a zero-terminated list; this makes the code simpler and also
 hopefully fixes the recent "childdet" botch, see PR kern/38528
-handle the root hub specially a bit earlier, this allows to kick out
 the "submatch" functions completely which needed to second-guess
 from the port number (where "0" meant root hub")
 (we could handle the root hub specially even earlier, but as done
 now big parts of the hub emulation code are exercised regularely,
 this would bitrot otherwise)
2008-05-25 21:41:35 +00:00
cegger 30bdfd753f add power management support 2008-05-25 20:51:22 +00:00
mhitch 72715a9ae8 Add bio(4) support, heavily from OpenBSD. The driver doesn't know which
physical drives belong to which logical drive, so all the physical drives
will show up for logical drive 0, and also appear for logical drives that
are rebuilding so that the rebuild state will show the physical drive
being rebuilt.  Locking for the scratch buffer is currently missing - system
quickly quits responding when I try to lock the buffer with mutex_{enter,exit}().
2008-05-25 20:08:34 +00:00
ad 5e4b324300 Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
2008-05-25 19:22:21 +00:00
chs 56f22e2d1f include uvm/uvm_extern.h for trunc_page() on sparc
(where the page size isn't a compile-time constant).
2008-05-25 16:21:54 +00:00
jmcneill 21629183b8 Add pmf support. 2008-05-25 16:19:12 +00:00
chs b2e9f679cb recognize the variant found in the last model of powermac G5. 2008-05-25 16:00:11 +00:00
chs 9a885b7050 regen 2008-05-25 15:59:21 +00:00
chs 0efe596589 add devices found in the last model of powermac G5. from openbsd. 2008-05-25 15:58:48 +00:00
ghen 4c430fc97a Implement wscons colemak and dvorak keyboard variants for Sun keyboards. 2008-05-25 15:51:44 +00:00
cegger 09d5e20c11 make this build with USSCANNER_DEBUG 2008-05-25 07:04:10 +00:00
jmcneill 10f75496ad MI implementation of AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. 2008-05-24 22:16:20 +00:00
cube 400ce55d62 Use ether_nonstatic_aton() when appropriate. 2008-05-24 17:35:37 +00:00
cube 3624455eba Split device_t and softc for all USB device drivers, and related cosmetic
changes.

Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral.  I tested umass myself.
2008-05-24 16:40:58 +00:00
jnemeth 3f1ee498b5 Import siisata(4) by Jonathan A. Kollasch.
The siisata driver supports the Silicon Image SteelVine family of SATA-II
     controllers, interfacing the hardware with the ata(4) and atapi(4) sub-
     systems.

     The following controllers are supported by the siisata driver:

           Silicon Image SiI3124 4-port PCI/PCI-X
           Silicon Image SiI3132 2-port PCI-Express x1
           Silicon Image SiI3531 1-port PCI-Express x1

     SATA Native Command Queueing is not yet supported.
     Device hot swapping is not yet supported.
     Silicon Image's Software RAID is not yet supported by the
             ataraid(4) driver.

Approved by: core (christos), releng (bouyer)
2008-05-23 21:11:40 +00:00
hauke 215d0dd444 Fix NetBSD version tag. 2008-05-23 10:46:10 +00:00
hauke f5ede5dc2e Added driver for the Creative Systems Inc. Hurdler CPI parallel printer card.
Timecounter support for the Z8536 counters A + B is not complete, yet.

Reviewed by Martin Husemann.
2008-05-22 19:49:43 +00:00
dyoung 8862e80cb4 Delete non-illuminating #ifdef-OTHER_OPERATING_SYSTEM code that
confuses ctags(1).
2008-05-22 01:27:32 +00:00
dyoung 1346df7877 KNF. 2008-05-22 01:23:48 +00:00
dyoung eef522873b Use __arraycount(). 2008-05-22 01:22:17 +00:00
dyoung 0089c8a0c9 Cosmetic: good-bye, excessive #ifdef'age. 2008-05-22 01:21:18 +00:00
drochner 26a4d5b843 fix argument to usb_setup_reserve() (called from USB host adapter drivers)
to be device_t consistently, from Quentin Garnier
2008-05-21 17:19:44 +00:00
ad 48dad50527 Acquire kernel_lock in putter's fileops. 2008-05-21 14:03:31 +00:00
ghen 41f841e610 Add support for the Colemak keyboard layout variant, see http://colemak.com 2008-05-21 07:39:24 +00:00
cegger 245f7a0350 regen. 2008-05-20 16:56:13 +00:00