Commit Graph

25640 Commits

Author SHA1 Message Date
jmcneill b0fb7abfad Switch to ACPICA 20090730, and update for API changes. 2009-08-18 16:41:02 +00:00
drochner c8bb344c69 put some strange text within an "#if 0"'d section into a comment
additionally to appease picky parsers
2009-08-18 11:15:43 +00:00
drochner c3b5cc8150 comparision with a string literal by "==" can't work (found by gcc-4.4.1),
replace with strcmp()
2009-08-18 11:12:05 +00:00
drochner 652d1aa912 rename a macro which is used to typecast constant strings from "U"
to "UC" -- there is a draft paper (ISO/IEC DTR 19769) which defines
that U"xxxx" is a UTF-32 literal, and gcc-4.4.1 implements this
with -std=gnu99
2009-08-18 11:08:37 +00:00
cegger d708daccf1 fix multicast. 2009-08-18 06:02:36 +00:00
cegger f68c98340e don't read/write 1000baseT specific MII registers on 10/100M only device.
from OpenBSD.
2009-08-18 05:50:55 +00:00
christos d78b2ab1fc 1. some of the video24linux structs are not as machine independent as their
authors want them to be. For the buffer ioctls, define new ioctls with
   the 32 bit buffer sizes. For the format struct, define it as packed
   so it is the same on 32 and 64 bit. (I might need to version this)
2. the mmapped buffers need to be page aligned, otherwise mmap(2) does
   not work. Make it so.
All this makes my ricoh camera work with emul-linux and skype running on
amd64. Next is sound!
2009-08-18 02:17:09 +00:00
jakllsch 1788ee813d A few new PCI register #defines:
- size of config and extended config space
 - EFI ROM code type number
 - extended capability list register bits
2009-08-17 14:11:09 +00:00
mbalmer 066a225399 unfold short lines, fold long line. 2009-08-17 12:44:44 +00:00
tron 3ff8faf2b6 Add support for the Openmoko Freerunner to cdce(4) ported from FreeBSD.
The patch was supplied by Pierre Pronchery in PR kern/40049.
2009-08-16 14:18:49 +00:00
martin 7867c1b262 Use a separately defined USBD_CONFIG_TIMEOUT when requesting a device
descriptor. I have a USB ATA device that spins up it's (removable) hard
disk and only returns the real descriptor if the disk is present - this
takes too long with the default 5 seconds timeout, so we were unable to
properly attach this device.
2009-08-16 13:20:40 +00:00
martin 9c8005a99c If we are attaching a high speed device, request a full size descriptor
block - we know the device will be able to handle it already.
This fixes a strange failure mode when attaching a (apparently non standard
conformant) USB ATA device I have, and *should* not cause any harm.
Apparently the device in question answered with the full descriptor despite
our short request - a failure mode not handled gracefully, leading to a
port reset. From Jeremy Morse.
2009-08-16 13:06:32 +00:00
yamt 83723a32c5 fix a comment typo. 2009-08-16 11:02:24 +00:00
uwe 1bf34cd773 Add keylock.h to INCS so that it's actually installed (hi, marc!) 2009-08-15 14:22:54 +00:00
pgoyette 345b8f1066 1. Move the mode_select functionality into common code (in st.c) and
invoke the common routine for both scsi and atapi tapes.

2. Replace a numeric constant with some sizeof's when calculating the
   size of the mode_select command buffer, clear the entire buffer, and
   KASSERT to ensure the page_0_size loaded from quirk table is valid.

3. Add a quirk for my Seagate Travan-40 tape drive.

As discussed on tech-kern@

Addresses my PR kern/34832
2009-08-15 12:44:55 +00:00
macallan 89669ce394 add FBTYPE_SUNTCX - forgot to commit that along with the tcx(8) update
found by he@
2009-08-15 11:33:49 +00:00
mbalmer 385b2e3631 Move the keylock.h header from sys/sys to sys/dev where it really belongs.
Add keylock options to the ALL kernel configuration.
2009-08-15 09:43:58 +00:00
mbalmer 3ab4ce4739 Add support for multi-position electro-mechanical keylocks. An example
driver, gpiolock(4), is provided as an example how to interface real hardware.
A new securemodel, securemodel_keylock, is provided to show how this can
be used to tie keylocks to overall system security.  This is experimental
code.  The diff has been on tech-kern for several weeks.

Reviewed by many, kauth(9) integration reviewed by Elad Efrat; approved by
tonnerre@ and tron@.  Thanks to everyone who provided feedback.
2009-08-14 21:17:21 +00:00
macallan 5f495e4be4 add voyagerfb, a driver for the Gdium Liberty 1000's onboard graphics chip 2009-08-12 19:28:00 +00:00
simonb 598bb4aec3 Match the Broadcom BCM5464 PHY. 2009-08-12 13:34:34 +00:00
simonb 7971cd7c5f Regen. 2009-08-12 13:33:42 +00:00
simonb 1bb23ef36e Add Broadcom BCM5464 PHY. 2009-08-12 13:33:02 +00:00
christos 833455e99c spic has moved. 2009-08-09 19:36:28 +00:00
christos a401f72096 - pass unsigned char to toupper
- set snprintf did not bother to uppercase the name. Simplify and fix.
2009-08-09 17:42:48 +00:00
haad be00161e0a Add device-mapper driver which I forgot to add in haad-dm branch. 2009-08-09 14:32:07 +00:00
mbalmer 530dfee805 Add gpioiic, gpiosim, and gpioow. Requested by tron. 2009-08-09 14:18:46 +00:00
pgoyette f76adbfe10 Add sdtemp, too. 2009-08-09 14:17:56 +00:00
pgoyette 988f5cae7e Add dbcool - I'd have done it long ago, when the driver was added, but
didn't know about this file until now.
2009-08-09 14:12:22 +00:00
mbalmer 8fc23e3158 gpioiic(4), a driver to do use GPIO pins in bit-banging mode to form an I2C
bus.  Ported from OpenBSD.
2009-08-09 08:18:00 +00:00
kiyohara 5bb9b7a6ef Support SMSC LAN9118 Family Ethernet interfaces device driver.
It tested on GUMSTIX only.
2009-08-09 06:40:09 +00:00
matt 4e26dd8d9d If we've had to enable MEM access, make sure our flags reflect that so that
pci_mapreg_map won't fail because it didn't know we did it.
2009-08-08 20:44:36 +00:00
mbalmer fa4785b09a Register with the PMF, and when detaching, just the right order. 2009-08-08 10:38:17 +00:00
blymn 2a02a6feb9 Destroy mutex and condvar initialised in pccbbattach(). 2009-08-07 12:09:50 +00:00
blymn c6b1721d19 Clean up extraneous white space. 2009-08-07 12:04:43 +00:00
mbalmer 61e768bf92 Don't use an identifier name that probably clashes with the C standard.
Requested by many.
2009-08-07 08:15:52 +00:00
mbalmer 2ce40e808d Properly teardown the sysctl node and detach child driver if gpiosim gets
detached itself (e.g. when the 'drvctl -d gpiosimX' command is entered).
2009-08-07 08:08:18 +00:00
mbalmer d2c70191a8 Fold long line. 2009-08-07 08:05:48 +00:00
dyoung cb637e784d unifdef -U__FreeBSD__ -D__NetBSD__, et cetera. 2009-08-07 00:10:53 +00:00
dyoung ec63b8722d Re-use DK_BUSY(). 2009-08-07 00:08:07 +00:00
dyoung 8bd642cce2 Put the entire expression that DK_BUSY() evaluates to in parentheses
for safety.
2009-08-07 00:07:39 +00:00
macallan 45b6e71b60 make the tcx driver do something useful:
- attach a wsdisplay
- make it work with an S24
- accelerate scrolling and character drawing
This isn't quite finished yet, it works fine as a console but most things
X will need are not functional right now.
2009-08-06 18:26:03 +00:00
macallan 2b5246200f add rasops15 too for completeness 2009-08-06 16:26:51 +00:00
macallan 69c048e118 pull in rasops16 - needed for gdium support 2009-08-06 16:24:43 +00:00
haad a0a1dfda1b Add support for DIOCGDISKINFO for wedges. This fixes regression after my
DIOCGDISKINFO commit to fsck/partutil.c.

Tested by me and adegroot@.
2009-08-06 16:00:49 +00:00
mbalmer 133c6e2a65 For the sake of correctness, call pmf_device_deregister() in the detach
function.
2009-08-06 13:16:49 +00:00
skrll 61b95b459d Make ucycomstart use usbd_setup_xfer and a callback so that it doesn't
(attempt to) sleep in interrupt context.

From David Howland in PR 36276 with changes from me.

XXX Still losing data on input.
2009-08-06 07:07:30 +00:00
kml 20115c22f9 Later generation 82566 IGP PHYs have problems with media changes to 100Mb and
10Mb; it appears that the SmartSpeed workaround and dspcode in this PHY are
aimed at earlier generation IGPs.  Remove reference to 82566s, allowing
them to fall through to choose other PHYs.
2009-08-06 04:58:48 +00:00
msaitoh 9b3aa25fe3 If the difference bettween last flag and new flag is only IFF_PROMISC or
IFF_ALLMULTI, set multicast filter only to prevent link down. Tested by
Mark Davies and me. Fixes PR#29126 for wm.
2009-08-06 03:03:46 +00:00
cegger ab159a84fa make RX hw checksum available by default.
TX hw checksum locks up interface.
2009-08-05 15:29:51 +00:00
cegger 3b3738c161 fix typo 2009-08-05 14:41:12 +00:00