Commit Graph

25652 Commits

Author SHA1 Message Date
jmcneill
39177e11e5 s/PLAYSTATION/PlayStation/ 2009-08-19 13:38:26 +00:00
macallan
b8db42fd33 - more cosmetics
- support screen blanking ioctl()s on both /dev/fb* and wsdisplay
2009-08-19 03:45:51 +00:00
macallan
d106f169f8 - some cosmetic fixes
- add support for screen blanking via /dev/fb*
- reimplement colour map ioctl()s for /dev/fb*
- implement mmap and ioctl for wscons, map 8 or 24bit framebuffer depending
  on hardware
With this X works with the wsfb driver in 24bit.
TODO:
- fix wsfb to use the right pixel format for S24
- implement wsdisplay colour map ioctl()s
- add hardware cursor support for wscons and /dev/fb*
2009-08-19 03:35:32 +00:00
jmcneill
21d93c9335 Adapt for ACPICA API changes. 2009-08-19 00:31:16 +00:00
christos
2ba6b9d22f the new acpi code seems to return NULL for the hardwareId string. 2009-08-19 00:19:37 +00:00
cegger
326b502d87 Update for API changes with new ACPICA.
Makes i386 ALL kernel build.
2009-08-18 21:38:41 +00:00
cegger
da8e01ab65 with new ACPICA, idstr may be NULL.
Check against NULL, this fixes a crash on my HP Pavilion dv9700 Laptop.
While here simplify the loop via __arraycount()
2009-08-18 21:33:29 +00:00
jmcneill
a3abcdbc25 Adapt for NACPI -> NACPICA change. 2009-08-18 20:46:10 +00:00
macallan
8ec24faa06 device_t-ify 2009-08-18 20:45:42 +00:00
dyoung
5a395386a7 Let us detach ichlpcib(4) and its children.
XXX More testing is needed.  I've tested this on a Dell Dimension 3000,
XXX but that system does not attach every possible device that I try to
XXX detach with this code:

ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x24d0 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
isa0 at ichlpcib0
2009-08-18 17:47:46 +00:00
dyoung
62dca01035 Add a bus-independent detachment routine. In the attachment routine,
save some device state to restore during detachment.
2009-08-18 17:06:35 +00:00
dyoung
40bc016e8a Let us safely detach the ISA bus and devices attaching to the ISA
bus:

1 Add isadetach() for detaching the ISA bus, and add some helper
  routines that release resources held for ISA DMA.

2 In isachilddetached(), forget references to child devices.

While I am here, change ISA_DMA_DRQ_ISFREE(...) == 0 to the simpler
expression, !ISA_DMA_DRQ_ISFREE(...).
2009-08-18 16:52:42 +00:00
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