aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Sync with usb4bsd:Alfred Perlstein2009-01-0445-839/+2387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/libusb20/libusb20_desc.c Make "libusb20_desc_foreach()" more readable. src/sys/dev/usb2/controller/*.[ch] src/sys/dev/usb2/core/*.[ch] Implement support for USB power save for all HC's. Implement support for Big-endian EHCI. Move Huawei quirks back into "u3g" driver. Improve device enumeration. src/sys/dev/usb2/ethernet/*[ch] Patches for supporting new AXE Gigabit chipset. src/sys/dev/usb2/serial/*[ch] Fix IOCTL return code. src/sys/dev/usb2/wlan/*[ch] Sync with old USB stack. Submitted by: hps Notes: svn path=/head/; revision=186730
* Resolve some regressions related to tabs and linewrap handling.Ed Schouten2009-01-034-2/+34
| | | | | | | | | | | | | | | | | | | | | | | It turns out I was looking too much at mimicing xterm, that I didn't take the differences of cons25 into account. There are some differences between xterm and cons25 that are important. Create a new #define called TEKEN_CONS25 that can be toggled to switch between cons25 and xterm mode. - Don't forget to redraw the cursor after processing a forward/backward tabulation. - Implement cons25-style (WYSE?) autowrapping. This form of autowrapping isn't that nice. It wraps the cursor when printing something on column 80. xterm wraps when printing the first character that doesn't fit. - In cons25, a \t shouldn't overwrite previous contents, while xterm does. Reported by: Garrett Cooper <yanefbsd gmail com> Notes: svn path=/head/; revision=186729
* Fix the OFW interrupt map parser to use its own idea of the number of interruptNathan Whitehorn2009-01-033-18/+24
| | | | | | | | | | | | cells in the map, instead of using a value passed to it and then panicing if it disagrees. This fixes interrupt map parsing for PCI bridges on some Apple Uninorth PCI controllers. Reported by: marcel Tested on: G4 iBook, Sun Ultra 5 Notes: svn path=/head/; revision=186728
* Reapply the intpin correction part of r146420 which somehowMarius Strobl2009-01-031-0/+7
| | | | | | | got lost. Notes: svn path=/head/; revision=186722
* Call pcn_start_locked() instead of pcn_start() where the softc lock isChristian Brueffer2009-01-031-1/+1
| | | | | | | | | | already held. Approved by: rwatson (mentor) MFC after: 3 weeks Notes: svn path=/head/; revision=186715
* Remove an unneeded assertion in libteken.Ed Schouten2009-01-011-1/+0
| | | | | | | | | The cursor is only inside the scrolling region when we are in origin mode. In that case, it should use originreg instead of scrollreg. It is completely valid to place the cursor outside the scrolling region. Notes: svn path=/head/; revision=186687
* Replace syscons terminal renderer by a new renderer that uses libteken.Ed Schouten2009-01-0117-1410/+3101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some time ago I started working on a library called libteken, which is terminal emulator. It does not buffer any screen contents, but only keeps terminal state, such as cursor position, attributes, etc. It should implement all escape sequences that are implemented by the cons25 terminal emulator, but also a fair amount of sequences that are present in VT100 and xterm. A lot of random notes, which could be of interest to users/developers: - Even though I'm leaving the terminal type set to `cons25', users can do experiments with placing `xterm-color' in /etc/ttys. Because we only implement a subset of features of xterm, this may cause artifacts. We should consider extending libteken, because in my opinion xterm is the way to go. Some missing features: - Keypad application mode (DECKPAM) - Character sets (SCS) - libteken is filled with a fair amount of assertions, but unfortunately we cannot go into the debugger anymore if we fail them. I've done development of this library almost entirely in userspace. In sys/dev/syscons/teken there are two applications that can be helpful when debugging the code: - teken_demo: a terminal emulator that can be started from a regular xterm that emulates a terminal using libteken. This application can be very useful to debug any rendering issues. - teken_stress: a stress testing application that emulates random terminal output. libteken has literally survived multiple terabytes of random input. - libteken also includes support for UTF-8, but unfortunately our input layer and font renderer don't support this. If users want to experiment with UTF-8 support, they can enable `TEKEN_UTF8' in teken.h. If you recompile your kernel or the teken_demo application, you can hold some nice experiments. - I've left PC98 the way it is right now. The PC98 platform has a custom syscons renderer, which supports some form of localised input. Maybe we should port PC98 to libteken by the time syscons supports UTF-8? - I've removed the `dumb' terminal emulator. It has been broken for years. It hasn't survived the `struct proc' -> `struct thread' conversion. - To prevent confusion among people that want to hack on libteken: unlike syscons, the state machines that parse the escape sequences are machine generated. This means that if you want to add new escape sequences, you have to add an entry to the `sequences' file. This will cause new entries to be added to `teken_state.h'. - Any rendering artifacts that didn't occur prior to this commit are by accident. They should be reported to me, so I can fix them. Discussed on: current@, hackers@ Discussed with: philip (at 25C3) Notes: svn path=/head/; revision=186681
* add some USB scanner IDs for recent Epson multifunction devices.Luigi Rizzo2008-12-312-6/+27
| | | | | | | | | | | | Add support to uscanner.c for known-working devices (the same should be done for uscanner2.c). Waiting for 7.1 to be released before the merge. MFC after: 3 weeks Notes: svn path=/head/; revision=186651
* When no driver attaches to a card, don't power down the card. We canWarner Losh2008-12-311-1/+2
| | | | | | | | | now read config registers of cardbus cards that are inserted, but aren't attached to a driver. Also, add a power related comment... Notes: svn path=/head/; revision=186642
* merge 186535, 186537, and 186538 from releng_7_xenKip Macy2008-12-295-103/+103
| | | | | | | | | | | | | | | | Log: - merge in latest xenbus from dfr's xenhvm - fix race condition in xs_read_reply by converting tsleep to mtx_sleep Log: unmask evtchn in bind_{virq, ipi}_to_irq Log: - remove code for handling case of not being able to sleep - eliminate tsleep - make sleeps atomic Notes: svn path=/head/; revision=186557
* - Fix incorrect array declaration that was causing the stack overflowStanislav Sedov2008-12-271-1/+1
| | | | | | | | | | | on some (most?) Asus laptops. Discussed with: rpaulo Approved by: kib (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=186529
* Minor style(9) compliance change.Alexander Kabaev2008-12-271-1/+2
| | | | Notes: svn path=/head/; revision=186521
* Add support for the Oxford OX16PCI958-based card.Roman Kurakin2008-12-271-0/+6
| | | | | | | | | | | | | | Note, that the patch provided with this card for the Linux states that the card uses DEFAULT_RCLK * 2, while in fact it is '* 10'. So probably we should also use the subdevice/subvendord here. For now just ignore that fact. PR: kern/129665 Submitted by: bsam Obtained from: united efforst with bsam Notes: svn path=/head/; revision=186520
* Remove an unused variable to make the SENTRY5 mips kernel compileBjoern A. Zeeb2008-12-271-1/+0
| | | | | | | (though with some asm warning). Notes: svn path=/head/; revision=186513
* Add some found NVidia MCP7x HDA controller IDs.Alexander Motin2008-12-271-0/+20
| | | | Notes: svn path=/head/; revision=186511
* Integrate the NDIS USB support code to CURRENT.Weongyo Jeong2008-12-275-17/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now the NDISulator supports NDIS USB drivers that it've tested with devices as follows: - Anygate XM-142 (Conexant) - Netgear WG111v2 (Realtek) - U-Khan UW-2054u (Marvell) - Shuttle XPC Accessory PN20 (Realtek) - ipTIME G054U2 (Ralink) - UNiCORN WL-54G (ZyDAS) - ZyXEL G-200v2 (ZyDAS) All of them succeeded to attach and worked though there are still some problems that it's expected to be solved. To use NDIS USB support, you should rebuild and install ndiscvt(8) and if you encounter a problem to attach please set `hw.ndisusb.halt' to 0 then retry. I expect no changes of the NDIS code for PCI, PCMCIA devices. Obtained from: //depot/projects/ndisusb/... Notes: svn path=/head/; revision=186507
* Add some special handling for AD1986A codec:Alexander Motin2008-12-261-1/+27
| | | | | | | | | Disable some unneeded pathes in overcomplicated input mixer to help parser to handle the rest better. This gives mic input boost control in some configurations and just more predictable operation in others. Notes: svn path=/head/; revision=186503
* fix a silly bug that I missed a for-loop to initialize AL2230S PHY.Weongyo Jeong2008-12-251-2/+4
| | | | | | | Reported by: Hans Petter Selasky <hselasky_at_c2i.net> Notes: svn path=/head/; revision=186484
* must pack structures for architectures like armSam Leffler2008-12-241-2/+2
| | | | | | | Reviewed by: thompsa Notes: svn path=/head/; revision=186475
* Only set registers if irqs are enabledRobert Noland2008-12-231-2/+4
| | | | | | | | Approved by: kib Obtained from: drm git Notes: svn path=/head/; revision=186465
* Remove CALLOUT_RETURNUNLOCKED from the callouts, there is no reason for them toAndrew Thompson2008-12-2319-126/+36
| | | | | | | drop the lock for us. Notes: svn path=/head/; revision=186454
* move IXP4XX EHCI bus shim to the usb directory and renameSam Leffler2008-12-231-0/+360
| | | | Notes: svn path=/head/; revision=186441
* Name the bus mutex by the controller name, this allows each bus to beAndrew Thompson2008-12-239-1/+9
| | | | | | | distinguished in lock profiling, etc. Notes: svn path=/head/; revision=186439
* Fix up handling of Intel G4X chips some more.Robert Noland2008-12-231-5/+12
| | | | | | | | | | | | | | Note that you need at least xf86-video-intel 2.4.3 for this to work. The G4X doesn't put the GATT into the same area of stolen memory as all the other chips and older versions of the driver didn't handle that properly. Tested by: ganbold Approved by: kib MFC after: 2 weeks Notes: svn path=/head/; revision=186434
* Clear busy state on the pages which are after the one that failed the bindKonstantin Belousov2008-12-231-3/+5
| | | | | | | | | | | attempt. Reported and tested by: ganbold Reviewed by: rnoland MFC after: 2 weeks Notes: svn path=/head/; revision=186433
* Organize Conexant codecs.Alexander Motin2008-12-231-18/+11
| | | | | | | Add CX20561 (Hermosa) codec ID. Notes: svn path=/head/; revision=186430
* Add support for the HP 4470C scanner.Remko Lodder2008-12-232-0/+2
| | | | | | | | | | | | | Note that there is no working backend (or at least that is mentioned in the PR ticket) but the device is now supported on our end. PR: 117205 Submitted by: Artem Naluzhnyy <tut at nhamon dot com dot ua> MFC after: 1 week Notes: svn path=/head/; revision=186428
* Add support for the MaxSream USB test carrier.Remko Lodder2008-12-232-1/+4
| | | | | | | | | | PR: 117546 Submitted by: Daniel J. O'Connor <darius at midget dot dons dot net dot au> MFC after: 1 week Notes: svn path=/head/; revision=186427
* Add support for 2 EVDO devices.Remko Lodder2008-12-231-0/+5
| | | | | | | | | PR: 119150 Submitted by: lioux MFC after: 1 week Notes: svn path=/head/; revision=186426
* o add Transaction Translator support (still missing ISOC xfers)Sam Leffler2008-12-232-21/+40
| | | | | | | | | | o add EHCI_SCFLG_BIGEMMIO flag to force big-endian byte-select to be set in USBMODE o split reset work into new public routine ehci_reset so bus shim drivers can force big-endian byte-select before ehci_init Notes: svn path=/head/; revision=186415
* Add 9 more Analog Devices codec names.Alexander Motin2008-12-221-2/+20
| | | | Notes: svn path=/head/; revision=186403
* Since we don't request reset for rlphy(4), the link state 'UP'Pyun YongHyeon2008-12-221-0/+2
| | | | | | | | | | | | | event from mii(4) may not be delivered if valid link was already established. To address the issue, check current link state after driving MII_TICK. This should fix a regression introduced in r185753 on fast ethernet controllers. Reported by: csjp, Bruce Cran < bruce <> cran DOT org DOT uk > Tested by: csjp, Bruce Cran (initial version) Notes: svn path=/head/; revision=186389
* Convert DRM_[DEBUG,ERROR,INFO] macros to c99 __VA_ARGS__.Robert Noland2008-12-211-5/+5
| | | | | | | Approved by: kib Notes: svn path=/head/; revision=186386
* Deal with 0 length args...Robert Noland2008-12-211-1/+1
| | | | | | | Approved by: kib Notes: svn path=/head/; revision=186385
* Fix AGP_DEBUG macro to use c99 __VA_ARGS__ and build if enabled.Robert Noland2008-12-211-6/+3
| | | | | | | Approved by: kib Notes: svn path=/head/; revision=186384
* o add sys/endian.h now required by ehcivar.hSam Leffler2008-12-201-1/+3
| | | | | | | o reorder a couple of include's to make this consistent with pci code Notes: svn path=/head/; revision=186362
* fix build w/ EHCI_DEBUGSam Leffler2008-12-201-1/+1
| | | | Notes: svn path=/head/; revision=186353
* Merge usb changes for Gateworks Cambria boards:Sam Leffler2008-12-206-374/+504
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o add support to byte swap EHCI descriptor contents; the IXP435 has dual-EHCI controllers integral but descriptor contents are in big-endian format; this support is configured with the USB_EHCI_BIG_ENDIAN_DESC option and enabled with EHCI_SCFLG_BIGEDESC o clean up EHCI USBMODE register setup during init; add #defines for bit values o split debug support out into a new file and enable use through ddb o while here remove a bunch of lingering netbsd-isms Reviewed by: imp Notes: svn path=/head/; revision=186351
| * MFH @ 186335Sam Leffler2008-12-2047-893/+2221
| |\ | |/ |/| | | Notes: svn path=/projects/cambria/; revision=186349
* | Modularize the Open Firmware client interface to allow run-time switchingNathan Whitehorn2008-12-207-584/+1374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of OFW access semantics, in order to allow future support for real-mode OF access and flattened device frees. OF client interface modules are implemented using KOBJ, in a similar way to the PPC PMAP modules. Because we need Open Firmware to be available before mutexes can be used on sparc64, changes are also included to allow KOBJ to be used very early in the boot process by only using the mutex once we know it has been initialized. Reviewed by: marius, grehan Notes: svn path=/head/; revision=186347
* | Fix a typo.Pyun YongHyeon2008-12-201-1/+1
| | | | | | | | | | | | | | Submitted by: clemens fischer via Shigeaki Tagashira Notes: svn path=/head/; revision=186346
* | Correct 5212 ani support so that max noise immunity, spur immunity, andSam Leffler2008-12-191-10/+10
| | | | | | | | | | | | | | | | | | | | step levels are used. Noticed by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net> Reviewed by: rpaulo Notes: svn path=/head/; revision=186332
* | Add ULI M5461 chipset and vendor ID.Alexander Motin2008-12-181-1/+8
| | | | | | | | Notes: svn path=/head/; revision=186301
* | Garbage collect entries from pcireg.h since we now include it.Robert Noland2008-12-181-9/+0
| | | | | | | | | | | | | | | | Approved by: kib@ MFC after: 2 weeks Notes: svn path=/head/; revision=186300
* | We only want drm to ever attach to the primary pci device.Robert Noland2008-12-182-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Intel 855 chips present the same pci id for both heads. This prevents us from attaching to the dummy second head. All other chips that I am aware of either only present a single pci id, or different ids for each head so that we only match on the correct head. Approved by: kib@ MFC after: 2 weeks Notes: svn path=/head/; revision=186299
* | Before modularization commit, atapci driver was attaching only to devices ofAlexander Motin2008-12-182-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | storage class. This check was lost. It is not important for the most cases, but as it was reported on current@, it does important for sis driver and surely inportant for AHCI driver. So restore it there. Submitted by: Toshikazu ICHINOSEKI, Andrey V. Elsukov Discussed on: current@ Notes: svn path=/head/; revision=186296
* | rework drm_scatter.c which allocates scatter / gather pages for use byRobert Noland2008-12-182-31/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ati pci gart to use bus_dma to handle the allocations. This fixes a garbled screen issue on at least some radeons (X1400 tested). It is also likely that this is the correct fix for PR# 119324, though that is not confirmed yet. Reviewed by: jhb@ (mentor, prior version) Approved by: kib@ MFC after: 2 weeks Notes: svn path=/head/; revision=186295
* | Fix last commit, ttydisc_rint_bypass returns the total, not remainder.Andrew Thompson2008-12-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=186294
* | Attempt to handoff the entire buffer with ttydisc_rint_bypass() before bangingAndrew Thompson2008-12-181-9/+12
| | | | | | | | | | | | | | each char separately. Notes: svn path=/head/; revision=186292
* | Check in the actual module recognition code for the ChelsioGeorge V. Neville-Neil2008-12-182-36/+175
| | | | | | | | | | | | | | | | | | driver. Obtained from: Chelsio Inc. Notes: svn path=/head/; revision=186282