Commit Graph

22935 Commits

Author SHA1 Message Date
pooka bce4ea0296 one more lock to destroy 2007-11-28 17:01:59 +00:00
pooka efe797dc32 * version the registration interface
* destroy all created locks
2007-11-28 16:59:02 +00:00
briggs 75b18122f2 Correct a typo. To create the command/status word, shift the components
left, not right.
2007-11-28 04:03:16 +00:00
kiyohara b8e760f970 + Use device_t.
+ Increment rptr if send the ESCAPE char.
+ Use m_pkthdr.len for pktlen.
2007-11-28 01:31:55 +00:00
reinoud 9c2e200bb1 Pullup fixes from UDF write development project. This patch fixes a
conceptional bug in mmc_discinfo, improves DVD+R feature detection and
prevents corruption of mmc_trackinfo readout on some devices that return
short trackinfo structures.
2007-11-27 18:06:37 +00:00
dyoung 2db1c5cdfa Bug fix: in ath_init(), if ath_enable() fails, ATH_UNLOCK() before
returning.
2007-11-27 00:07:42 +00:00
dyoung e45771984e Don't process the CAB queue twice in ath_tx_proc_q0123. 2007-11-26 23:54:48 +00:00
dyoung 37bdac8857 Eliminate redundant check for read-only mbuf data, since
M_TRAILINGSPACE() does a more complete check on NetBSD.
2007-11-26 23:52:40 +00:00
dyoung 84a52560a3 Bug fix: restore antenna diversity settings after reset. 2007-11-26 23:49:55 +00:00
dyoung ecfc7c1996 Use device_xname(). Make device_printf() take a device_t argument.
Add __attribute__((__format__(__printf__,2,3))) to device_printf()
so that the compiler will help us detect bad arguments.

Retire unused subroutine m_defrag(), and unused declaration m_getcl().
2007-11-26 23:48:37 +00:00
dyoung ca57c50be5 Make this compile. Use callout_init() instead of ATH_CALLOUT_INIT(),
since callout_init() on FreeBSD and NetBSD are the same, now.
2007-11-26 20:45:01 +00:00
pooka 61e8303e9d Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern
2007-11-26 19:01:26 +00:00
christos 1b601e0085 Add dell latitude 420 in the list of machines that need special treatment
to silence speakers when headphones are plugged in. From Marcin Michal Jessa
2007-11-26 15:47:36 +00:00
bjs 759a913b44 Add PCI_PRODUCT_ATI_RADEON_R430_554F to the R420 chip class.
This will not work until (at the very least) we map the memory properly
(MMIO/VRAM BARs are 64-bit)--some of the values in the configuration
space may be different.  I will discuss this with others, and maybe
it will work someday.
2007-11-26 09:39:50 +00:00
bjs 24e9564be9 Add PCI IDs for the ATI Radeon X800 GTO (R430). Most sources I have
consulted indicated that this ID is an R430 (including xf86-video-ati).

PCI_PRODUCT_ATI_RADEON_R430_554F (primary)
PCI_PRODUCT_ATI_RADEON_R430_556F (secondary)

vga0 at pci1 dev 0 function 0: ATI Technologies product 0x554f (rev. 0x00)
ATI Technologies product 0x556f (miscellaneous display) at pci1 dev 0 function 1 not configured
2007-11-26 09:36:28 +00:00
kiyohara a6caad5208 #ifndef-ed macro BTBC_DEFAULT_BAUDRATE. 2007-11-25 23:32:44 +00:00
kiyohara 3bf7c476ac + Add COREGA CG-WLUSB2GL and ABOCOM WUG2700.
+ make sure ni->ni_txrate is always initialized to a meaningful value by
  redefining ic->ic_newassoc.
  this should prevent "bogus xmit rate" panics when operating in HostAP
  mode.
+ s/RT2573_[TR]X_LIST_COUNT/RUM_[TR]X_LIST_COUNT/
+ Restore the workaround for rate==0 bug.
+ http://www.ralinktech.com/ domain name is for sale.
  use official url instead: http://www.ralinktech.com.tw/
2007-11-25 09:30:10 +00:00
kiyohara e18f7bdc36 Regen. 2007-11-25 09:17:56 +00:00
kiyohara b18c0cc551 Add COREGA CG-WLUSB2GL. 2007-11-25 09:16:49 +00:00
xtraeme 69c8e45340 Do not run the get_powstat callback in apm_attach(), this has a bad
effect with coretemp(4) where it tries to run xc_unicast() before
the xc_thread is ready. Anyway the get_powstat callback was there only
for APM_POWER_PRINT, which will print the correct info if requested
later.
2007-11-25 07:55:21 +00:00
dsainty e92d81422b Minor typos in comments, no functional change. 2007-11-25 02:46:54 +00:00
elad abb7851f4d Refactor time modification checks and place them in the secmodel code.
okay christos@
2007-11-25 00:35:26 +00:00
dyoung b6c284d2c6 Use TAILQ_FOREACH() to search window lists. Do not insert/remove
windows inside the loop.
2007-11-24 07:59:21 +00:00
dyoung f8fd941eed Use the PCI #define for the secondary bridge reset instead of using
the duplicate Cardbus #define.  Write a note to self: pccbb interrupts
need more work.  No functional change intended.
2007-11-24 07:53:52 +00:00
markd 769813d901 Add agp support for Intel Q35/G33/Q33. 2007-11-24 02:19:37 +00:00
gavan 33bf6486d0 Be paranoid about disabling interrupts and acknowledging any pending
interrupts while attaching uhci. Fixes recent problems with uvm_fault
during uhci attach, which appear to be caused by a pending interrupt
left over from the device while it was operating in legacy support mode
under the control of the BIOS.

Patch by joerg@ because his was better than mine.
2007-11-24 02:13:49 +00:00
markd b79e2bcb32 regen. 2007-11-24 01:45:38 +00:00
markd 5579145ce1 Add INTEL Q33 and Q35 chipsets 2007-11-24 01:44:55 +00:00
markd 8ddb7f418e s/product\tINTEL/product INTEL/ 2007-11-24 01:42:09 +00:00
plunky 1abda57e11 when using CFATTACH_DECL_NEW(), we must remember to record the
device_t if we wish to use it.

	sc->sc_dev = self;
2007-11-23 22:27:02 +00:00
macallan 9d020f5bdb make this compile on sparc64 2007-11-23 20:12:54 +00:00
xtraeme b2bb4b77b8 regen 2007-11-23 20:08:47 +00:00
xtraeme 96fc53aa48 Add some Intel 5000 Series Chipset devices. 2007-11-23 20:08:24 +00:00
joerg a35b5f81a4 If memory for the firmware image couldn't be allocated, print only
one error message.
2007-11-23 19:47:27 +00:00
pooka bc3b2e6a39 PUD_CONF_IOCTL is a goner. Noticed by dillo. 2007-11-22 13:51:59 +00:00
pooka 2bde3fa647 Support bdev/cdev ioctl. 2007-11-22 11:26:27 +00:00
xtraeme f517956d37 Print the error if sysmon_envsys_register() fails and add a missing
return in that case.
2007-11-22 08:15:00 +00:00
bjs 27bbf3c565 Remove #ifdef __OpSys__ sections to make this readable. Add RCS tags.
Nothing done in header files, nor in dev/pci/drm (we might not want to
touch this for the sake of merging) yet.  Compile tested; please let
me know if this broke anything.
2007-11-21 19:22:12 +00:00
pooka 750d633918 Add support for block devices. 2007-11-21 18:10:48 +00:00
pooka 2f06310f4b mmap should return -1 on error. Also, shuffle functions around to
make this more feng shui.
2007-11-21 11:19:44 +00:00
dyoung 3b205d80f9 Detect cardbus_setpowerstate() errors and aprint_debug() a warning.
Leave alone the Latency Timer set by the Cardbus bridge.

With version 1.152 of dev/pci/pccbb.c, we can power down the card
when it is not in-use, so do that.
2007-11-21 02:10:45 +00:00
dyoung a5a3f28dce Sometimes a change of CSTSCHG# accompanies the first interrupt from
an Atheros WLAN.  That generates a CB_SOCKET_EVENT_CSTS event on
the bridge.  The event isn't interesting to pccbb(4), so we used
to ignore the interrupt.  Now, let the child devices try to handle
the interrupt, instead.  The Atheros NIC produces interrupts more
reliably, now: used to be that it would only interrupt if the driver
avoided powering down the NIC's cardslot, and then the NIC would
only work after it was reset a second time.
2007-11-21 02:07:09 +00:00
dogcow 37ec50ec33 silence, might be used uninitialized warning! 2007-11-21 01:31:34 +00:00
joerg 08598b7d45 Merge from jmcneill-pm: XXX allow pci_find_mem to map a 64-bit BAR. 2007-11-20 22:48:49 +00:00
pooka b7737261b0 pud (userspace char/block drivers) build goo 2007-11-20 18:54:31 +00:00
pooka 001b8e986e Add initial support for userspace block/char device drivers. This
is a very rough cut supporting only open/close/read/write for char
devices for the time being.  It also takes some extra liberties in
error value processing wrt. to the request-response protocol, but
that will be fixed later.  On the bright side, I haven't managed
to crash my test kernel in several hours with this anymore, so it
can be considered extra-stable ...  All in all this is remarkably
similar to puffs from multiple angles (well, actually, big surprise
there) and these two will share more and more code in the future.

The hardest part, coming up with the name, was done by agc.  I'm
not exactly sure what "pud" is supposed to stand for, but if my
British is anything close to par, I understand that "pud" over
there can stand for just about anything, so it's a safe bet.
2007-11-20 18:47:05 +00:00
pooka b6cf4ea195 Allow to register configuration routines to putter. Once a
configuration routine has been attached to the putter device minor
number, the configuration routine will be called when the device
is opened.  This is required for subsystems which enter the kernel
only through the file descriptor and cannot configure themselves
via another route (like puffs does via the mount() syscall).  Keep
the minor number 0 for "wildcard" uses where we do not require a
hardwired config routine (e.g. the puffs case).
2007-11-20 18:35:22 +00:00
xtraeme 58406f0ac9 Update a comment. 2007-11-20 17:27:35 +00:00
xtraeme 714201def5 After comments from Andrew Doran:
- The mutex for the callout handler must run at IPL_SOFTCLOCK.
- Just stop the callout in sysmon_envsys_unregister() and don't wait
  for the callout to finish.
2007-11-20 17:24:32 +00:00
ad b7b14106bd Don't rely on others being kind enough to pull in sys/device.h 2007-11-20 14:33:58 +00:00