Commit Graph

21001 Commits

Author SHA1 Message Date
jmcneill
4c8d1c711c Don't use // for comments. 2006-09-24 03:42:41 +00:00
jmcneill
f6db1b6893 Use /* ... */ for comment instead of // ... 2006-09-24 03:40:49 +00:00
jmcneill
200c3c464e Formatting fixups, remove commented out code that should not have been here,
and remove a few unnecessary XXX comments.
2006-09-24 03:39:51 +00:00
manu
e057d5fcd9 Tweak the twa(4) driver so that 3ware command line utility works with it.
This includes:
- fixing various structure definitions so that the ioctl parameter match
- adding a hw.twa*.driver_version sysctl
- do not refuse multiple device openings, as the management tool will do it.
  I'm not sure we are safe. FreeBSD allows multiple openings, and use the
  open flag only when an attempt to detach the device is done.
2006-09-23 22:16:35 +00:00
fvdl
5f5c640d2e In acpi_pci_link_dump, print out polarity and trigger for the link device
properties.
2006-09-23 17:05:33 +00:00
fvdl
e1d75075c5 Define the "broken IRQ0 override" quirk, and add it for one type of ACPI
BIOS.
2006-09-23 17:04:26 +00:00
plunky
d197e1ae6b guard against possible race conditions when detaching SCO pcb's 2006-09-23 16:11:07 +00:00
plunky
35e1b8aa38 return ENOTCONN when not connected, rather than EINVAL 2006-09-23 16:08:43 +00:00
jmcneill
9c01d5a7bc Regen for PR# 15666. 2006-09-23 15:40:16 +00:00
jmcneill
e748bee1f6 PR# 15666: EDIMAX EP-4101 PCMCIA card support (patch included) 2006-09-23 15:39:51 +00:00
jmcneill
696fb7f495 Regen for PR# 27840. 2006-09-23 13:21:29 +00:00
jmcneill
ee203eb22f PR# 27840: patch for IO DATA PCET/TX-R PCMCIA Ethernet card support 2006-09-23 13:21:01 +00:00
jmcneill
65876ef5bc PR# 31437: Philips Toucam Pro II is yet another 'audio' USB camera 2006-09-23 13:07:06 +00:00
elad
5425e24592 Use u_quad_t and not uint64_t (even though they might be the same),
pointed out by tsutsui@.
2006-09-23 07:54:17 +00:00
macallan
52819a126f a half done wsdisplay driver for Chips & Technologies 65550 graphics chips
So far it only uses the blitter for scrolling and rectangle filling,
characters are still drawn in software and there's no support for video
mode switching. Virtual consoles are supported via vcons.
Works fine on a PowerBook 3400c.
2006-09-23 05:12:22 +00:00
jmcneill
5b8b677431 PR# 29516: magma.c comments are wrong, also splhigh is excessive 2006-09-23 04:45:49 +00:00
jmcneill
eaa9b0d13e Print "interrupt at irq <foo>" message immediately after we establish the
interrupt. Patch from PR# 33567.
2006-09-23 01:19:18 +00:00
jmcneill
96568ac6d5 Adjust comment for rnd_add_uint32() to reflect changes in rev 1.50. Fixes
PR# 34250 by Jorge Acereda Macia.
2006-09-23 01:13:08 +00:00
jmcneill
7e857903f0 Regen for PR# 23133. 2006-09-23 00:56:42 +00:00
jmcneill
1483b0e7d4 Attach ess(4) for ESS1879 devices; 2+ years late fix for PR# 23133 2006-09-23 00:56:20 +00:00
elad
af7d9594a4 PR/34589: Cliff Wright: vnd(4) compress error with large files
Applied slightly different patch (u_int64_t -> uint64_t), thanks!
2006-09-23 00:53:46 +00:00
elad
9033a1369b In struct vcons_data, don't depend on DIAGNOSTIC and always include
switch_poll_count.

okay chs@
2006-09-22 15:16:03 +00:00
christos
f807e82573 regen 2006-09-22 12:44:23 +00:00
christos
33bd80c320 From: Jaime A Fournier: Patch to support SMC 2262WV1 2006-09-22 12:43:52 +00:00
thorpej
1edb40635e - Define disk information, disk geometry, and disk partition dictionary
schemas.  Disk information and disk geometry are designed to replace
  information currently conveyed to user space using struct disklabel.
- Add a dk_info member to struct disk; a reference to a disk information
  dictionary.  This dictionary is to be allocated and the reference stored
  in struct disk by individual drivers.
- disk_detach0() will release dk_info if non-NULL.
- Convert the wd(4) driver to stash geometry and other disk properties
  as the "disk-info" property in its properties dictionary.  This needs
  some cleanup, but will serve as an example of what to do with other
  disk drivers.
2006-09-22 04:48:38 +00:00
thorpej
6cf1ffe998 Alter the protocol impemented by prop_kern to allow for bi-directional
plist-based messages and to eliminate looping previously required to
receive a plist from the kernel:

- prop_dictionary_copyin_ioctl() and prop_dictionary_copyout_ioctl()
  now take the cmd argument rather than the file open flag.  The
  read-ness or write-ness of an ioctl command is checked by these
  routines to ensure that information is being passed to/from the
  userland component properly.

- prop_dictionary_copyout_ioctl() now allocates the memory for the
  XML plist on behalf of the userland component by way of uvm_mmap().
  The XML plist is copied out to the newly-mapped anonymous region,
  and the pointer returned via the plistref.

- prop_dictionary_recv_ioctl() is responsible for munmap()'ing the
  region after parsing the XML plist into internal represenatation.

- A new prop_dictionary_sendrecv_ioctl() is added, allowing user space
  code to send a dictionary to the kernel and receive one back as a
  reply.


Update users of prop_kern for the API changes (Bluetooth).

This constitutes an ABI / protocol change -- but this will also be put
into NetBSD 4.0 so that the first proplib release will implement the new
scheme.
2006-09-22 04:20:23 +00:00
cube
295a511be4 Constification. 2006-09-20 05:21:37 +00:00
plunky
4b7ccf17f9 explicitly disallow changing the config # when the device is enabled. 2006-09-19 20:34:33 +00:00
plunky
661865e783 return errno instead of usbd status 2006-09-19 19:45:48 +00:00
he
fc13afb3a4 Convert the NetBSD/cats port to use generic TODR.
This gets rid of the now-unneded "todclock" and "todservice" attributes
from the footbridge device files, which should allow netwinder to build
again after its conversion to generic TODR.

Resulting kernel verified to boot up OK on gxemul (after my recent
fixes of the gxemul package to emulate free-running timers).
2006-09-19 10:05:32 +00:00
reinoud
3b1c762eae Since SPDIF support fo the auixp driver is still half done disable it for
now since some chipset revisions will freak out on the aparent
half-initialisation. Even on my machine i can't seem to get the SPDIF led
to light up so something is wrong.

Also delay the setting of the DMA bits until after the codec detection but
before the enabling of interrupts. Note that the dma has to be explicitly
started when the device is opened.
2006-09-18 15:18:52 +00:00
uebayasi
3f9b6523d1 Typo in comment. 2006-09-18 07:47:13 +00:00
jmcneill
2c50610456 Call rt2560_stop() from rt2560_detach(). Fixes a panic on detach of cardbus
device on my Vaio. Fix from dyoung@.
2006-09-17 23:58:51 +00:00
plunky
f811cc93d1 add bthub(4) and remove btdev(4) entries 2006-09-17 15:01:34 +00:00
gdamore
06522e0f81 Pass the filesystem time to clock drivers in the todr_chip_handle, so that
vax, and pmax can use it.
2006-09-16 00:50:52 +00:00
is
1860a0e148 Simply use the device name for the workqueue name. 2006-09-15 11:22:21 +00:00
is
a2f7b2e007 aue_ioctl() for the murpose of adding/deleting multicast addresses is called
from interupt context. Defer its processing to a workqueue(9).
This fixes PR 34521.
2006-09-15 10:47:34 +00:00
reinoud
d1de30eaae Fix same panic problem as with cd.c when a scsi error happends on
read/write action. It would panic on a diagnosic assertion. When a scsi
read/write command fails, the whole extent is gone bad so mark all as not
done.
2006-09-14 17:54:34 +00:00
martin
2dce1200cc Avoid duplicate collon, from Stephan 'doomwarrior' in PR kern/34518 2006-09-13 14:45:24 +00:00
gdamore
cf407be292 Convert shark and ofppc to new common ofrtc and MI todr code. Tested
on shark.  Ok christos@, martin@.
2006-09-13 07:14:35 +00:00
christos
d5978e20f4 - use c99 initializers
- add missing initializer
2006-09-13 01:01:20 +00:00
christos
b4c0be5dc8 avoid empty if bodies. 2006-09-13 00:55:57 +00:00
christos
71aa807296 use a c99 initializer 2006-09-13 00:48:03 +00:00
plunky
ad28493ad1 guard against a possible situation where the list of l2cap channels is changed
when the bluetooth code is not expecting it to be. During a disconnect, we can
detach the channel that is being disconnected, but its not really safe to detach
any others.
2006-09-12 18:18:01 +00:00
plunky
4b5125cac5 btsco.c:
- sco_getopt(..., SO_SCO_MTU, ...) expects the address of a uint16_t,
   not an int. So change sc_mtu's type to uint16_t.
 - Try a little harder to ensure btsco_round_blocksize() does not
   return zero. Prevents a subsequent panic in audio_init_ringbuffer().

	from scw@
2006-09-11 21:59:09 +00:00
rittera
26b97f3a17 Added innitialization to bs in ndis_getstate_80211. It was causing a compiler warning. Pointed out by Kulcsar Ferenc 2006-09-11 21:17:18 +00:00
reinoud
2b551264c1 Aparently i've misread, backing out change. 2006-09-11 19:43:55 +00:00
plunky
ed4d8d47a0 also include service name in dictionary being sent to kernel.
(this is not used just yet, but it might be in the future and it will
be easier if we dont have to provide code to handle its absence)
2006-09-11 18:30:27 +00:00
reinoud
5411355304 Don't add one to the capacity returned of READ CAPACITY! it results in
reporting a sd* disc that is one sector too big (!) Normally not much a
problem in FFS since its clustered but other filingsystems *do* care.
2006-09-11 17:57:07 +00:00
matt
b9525730ee deal with 'bool' definitions 2006-09-11 03:37:12 +00:00