Commit Graph

3948 Commits

Author SHA1 Message Date
Alexander Motin
edd4902fba Improve driver operation example description. 2008-11-05 17:12:18 +00:00
Ed Schouten
932ef5b5cd Reintroduce the snp(4) driver.
Because the TTY hooks interface was not finished when I imported the
MPSAFE TTY layer, I had to disconnect the snp(4) driver. This snp(4)
implementation has been sitting in my P4 branch for some time now.
Unfortunately it still doesn't use the same error handling as snp(4)
(returning codes through FIONREAD), but it should already be usable.

I'm committing this to SVN, hoping someone else could polish off its
rough edges. It's always better than having a broken driver sitting in
the tree.
2008-11-05 15:04:03 +00:00
Alfred Perlstein
eabe30fc9c Bring in USB4BSD, Hans Petter Selasky rework of the USB stack
that includes significant features and SMP safety.

This commit includes a more or less complete rewrite of the *BSD USB
stack, including Host Controller and Device Controller drivers and
updating all existing USB drivers to use the new USB API:

1) A brief feature list:

  - A new and mutex enabled USB API.

  - Many USB drivers are now running Giant free.

  - Linux USB kernel compatibility layer.

  - New UGEN backend and libusb library, finally solves the "driver
    unloading" problem. The new BSD licensed libusb20 library is fully
    compatible with libusb-0.1.12 from sourceforge.

  - New "usbconfig" utility, for easy configuration of USB.

  - Full support for Split transactions, which means you can use your
    full speed USB audio device on a high speed USB HUB.

  - Full support for HS ISOC transactions, which makes writing drivers
    for various HS webcams possible, for example.

  - Full support for USB on embedded platforms, mostly cache flushing
    and buffer invalidating stuff.

  - Safer parsing of USB descriptors.

  - Autodetect of annoying USB install disks.

  - Support for USB device side mode, also called USB gadget mode,
    using the same API like the USB host side. In other words the new
    USB stack is symmetric with regard to host and device side.

  - Support for USB transfers like I/O vectors, means more throughput
    and less interrupts.

  - ... see the FreeBSD quarterly status reports under "USB project"

2) To enable the driver in the default kernel build:

2.a) Remove all existing USB device options from your kernel config
file.

2.b) Add the following USB device options to your kernel configuration
file:

# USB core support
device          usb2_core

# USB controller support
device		usb2_controller
device		usb2_controller_ehci
device		usb2_controller_ohci
device		usb2_controller_uhci

# USB mass storage support
device		usb2_storage
device		usb2_storage_mass

# USB ethernet support, requires miibus
device		usb2_ethernet
device		usb2_ethernet_aue
device		usb2_ethernet_axe
device		usb2_ethernet_cdce
device		usb2_ethernet_cue
device		usb2_ethernet_kue
device		usb2_ethernet_rue
device		usb2_ethernet_dav

# USB wireless LAN support
device		usb2_wlan
device		usb2_wlan_rum
device		usb2_wlan_ral
device		usb2_wlan_zyd

# USB serial device support
device		usb2_serial
device		usb2_serial_ark
device		usb2_serial_bsa
device		usb2_serial_bser
device		usb2_serial_chcom
device		usb2_serial_cycom
device		usb2_serial_foma
device		usb2_serial_ftdi
device		usb2_serial_gensa
device		usb2_serial_ipaq
device		usb2_serial_lpt
device		usb2_serial_mct
device		usb2_serial_modem
device		usb2_serial_moscom
device		usb2_serial_plcom
device		usb2_serial_visor
device		usb2_serial_vscom

# USB bluetooth support
device		usb2_bluetooth
device		usb2_bluetooth_ng

# USB input device support
device		usb2_input
device		usb2_input_hid
device		usb2_input_kbd
device		usb2_input_ms

# USB sound and MIDI device support
device		usb2_sound

2) To enable the driver at runtime:

2.a) Unload all existing USB modules. If USB is compiled into the
kernel then you might have to build a new kernel.

2.b) Load the "usb2_xxx.ko" modules under /boot/kernel having the same
base name like the kernel device option.

Submitted by: Hans Petter Selasky hselasky at c2i dot net
Reviewed by: imp, alfred
2008-11-04 02:31:03 +00:00
Warner Losh
09988d1e9a Use more standardized license language
Approved by:	Thomas Quinot
2008-11-03 22:43:37 +00:00
Warner Losh
b14bf100e9 Document dev.rl.%unit.twister_enable sysctl/tunable.
Submitted by:	Kostik Belousov
2008-11-02 16:51:57 +00:00
Christian Brueffer
5dc230e73a - Add one more supported adapter (1)
- Fix a couple of typos

Submitted by:	Horvath Andras (1)
2008-11-01 14:19:55 +00:00
Christian Brueffer
0df76605cf Misc cleanup. 2008-10-29 18:49:37 +00:00
Nick Hibma
a460bc835a - Add documentation on how to temporarily display the umass devices that
are automatically hidden by the u3gstub device.
- Add a link to the u3g driver man page for u3gstub.
2008-10-29 16:17:34 +00:00
Alexander Motin
7dbf04d70c Fix month mistake. Again. Sorry. :) 2008-10-24 18:57:11 +00:00
Alexander Motin
d20d9a2efa Add hint.hdac.%d.msi description. 2008-10-24 18:28:52 +00:00
Nick Hibma
e4bb8c6423 The driver supports the Sony W810i phone (interface class driver).
Note: This entry is added as this is there was no mention of any phones
in the list. This entry might have people try the driver against their
device.

The Sony Ericsson phone provides an OBEX stack on further CDC
interfaces. Umodem wrongfully assumes that it is the driver for this
interface. This is due to a bogus implementation in the umodem driver
when searching for the data interface. This should be read from the CDC
descriptors. Also, more of this should happen in the probe instead of
attach.

MFC after:	4 weeks
2008-10-22 21:46:59 +00:00
Alexander Motin
cecf066b90 Use full month name. 2008-10-22 09:11:35 +00:00
Alexander Motin
2202f7a11c Add sdhci driver man page. Link it up to mmc subsystem. 2008-10-22 09:04:05 +00:00
Alexander Motin
5d8c8e3eba Update man page. 2008-10-22 08:43:35 +00:00
Simon L. B. Nielsen
c13c975098 Remove trailing comma in SEE ALSO section. 2008-10-19 17:19:42 +00:00
Ed Schouten
58a5b17f7b Increase the date in the manual page, which should have been done in r183922.
In r183922 I introduced a new DDB command, documented it, but forgot to
bump the date in the manual page.

Pointed out by:	bz
2008-10-18 06:23:08 +00:00
Nick Hibma
c3fed0bbc1 Comment on the umass CD ROM devices in the UMTS modems. 2008-10-15 21:47:01 +00:00
Ed Schouten
f6dd5c15fd Import some improvements to the TTY code from the MPSAFE TTY branch.
- Change the ddb(4) commands to be more useful (by thompsa@):
  - `show ttys' is now called `show all ttys'. This command will now
    also display the address where the TTY data structure resides.
  - Add `show tty <addr>', which dumps the TTY in a readable form.

- Place an upper bound on the TTY buffer sizes. Some drivers do not want
  to care about baud rates. Protect these drivers by preventing the TTY
  buffers from getting enormous. Right now we'll just clamp it to 64K,
  which is pretty high, taking into account that these buffers are only
  used by the built-in discipline.

- Only call ttydev_leave() when needed. Back in April/May the TTY
  reference counting mechanism was a little different, which required us
  to call ttydev_leave() each time we finished a cdev operation.
  Nowadays we only need to call ttydev_leave() when we really mark it as
  being closed.

- Improve return codes of read() and write() on TTY device nodes.

- Make sure we really wake up all blocked threads when the driver calls
  tty_rel_gone(). There were some possible code paths where we didn't
  properly wake up any readers/writers.

- Add extra assertions to prevent sleeping on a TTY that has been
  abandoned by the driver.

- Use ttydev_cdevsw as a more reliable method to figure out whether a
  device node is a real TTY device node.

Obtained from:	//depot/projects/mpsafetty/...
Reviewed by:	thompsa
2008-10-15 16:58:35 +00:00
Nick Hibma
e7b0147d7e Correct the name of the device. 2008-10-14 15:30:17 +00:00
Nick Hibma
7b25347900 Update the man pages with the moved/added support for devices. The SD card slot
of the Huawei mobile card is supported by the (generic) umass driver.
2008-10-13 20:43:08 +00:00
Nick Hibma
00718d50d3 Wrong FBSD version number in HISTORY section.
Submitted by:	pluknet
2008-10-10 06:26:37 +00:00
Nick Hibma
483b9e4739 Say hello to the u3g driver, implementing support for 3G modems.
This was located in the ubsa driver, but should be moved into a separate
driver:

- 3G modems provide multiple serial ports to allow AT commands while the PPP
  connection is up.
- 3G modems do not provide baud rate or other serial port settings.
- Huawei cards need specific initialisation.
- ubsa is for Belkin adapters, an Linuxy choice for another device like 3G.

Speeds achieved here with a weak signal at best is ~40kb/s (UMTS). No spooky
STALLED messages as well.

Next: Move over all entries for Sierra and Novatel cards once I have found
testers, and implemented serial port enumeration for Sierra (or rather have
Andrea Guzzo do it). They list all endpoints in 1 iface instead of 4 ifaces.

Submitted by:	aguzzo@anywi.com
MFC after:	3 weeks
2008-10-09 21:25:01 +00:00
Alexander Motin
688e18b20f Remove stale BUGS. 2008-10-08 18:27:54 +00:00
Alexander Motin
c31f137e08 Document new NGM_NETFLOW_SETCONFIG control message. 2008-10-08 11:19:16 +00:00
Sam Leffler
77a62bf55d the 3945 firmware license does not require acknowledging the EULA,
remove the sysctl ack requirement

Pointed out by:	Joerg Sonnenberger
Reviewed by:	thompsa
Approved by:	core
2008-10-07 19:42:56 +00:00
Simon L. B. Nielsen
f78d85eb96 Reference igb(4) i SEE ALSO.
MFC after:	1 week
2008-10-06 21:55:53 +00:00
Simon L. B. Nielsen
ed344a8a76 Only a few of the loader tunables / sysctl variables are documented,
as I'm not really sure what the rest do.

The list of adaptors was found at
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&Inst=Yes&DwnldID=15815

MFC after:	1 week
2008-10-06 21:38:55 +00:00
Simon L. B. Nielsen
e0578797fc - Add 82574 to list of supported controller chips.
- Add Intel PRO/1000 PF and Intel PRO/1000 PT adaptors to list of
  supported adaptors.

The list of adaptors was found at
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&Inst=Yes&DwnldID=10957

MFC after:	1 week
2008-10-06 20:45:08 +00:00
Simon L. B. Nielsen
eb43d80055 Document that the bce(4) driver works with Dell PowerEdge 1950/2950
NIC's.

MFC after:	3 days
2008-10-06 18:07:07 +00:00
Simon L. B. Nielsen
cf754f452f Add a HARDWARE section. It doesn't contain any information not
already in the DESCRIPTION section, but this allows for the manual
page to be used in the automatic hardware notes generation.

MFC after:	3 days
2008-10-06 17:49:24 +00:00
Simon L. B. Nielsen
3223fffcb7 Document that vr(4) supports Soekris Engineering net5501. 2008-10-05 11:39:16 +00:00
Xin LI
5899d29bc6 Note recently added ICH10 support 2008-10-04 21:31:12 +00:00
Simon L. B. Nielsen
03bc0ffa9a - Minor mdoc cleanup.
- Make HARDWARE section a bit more friendly for the Hardware Notes.
2008-10-04 16:21:04 +00:00
Stanislav Sedov
f7a029eb0c - Add ae(4) to the list of devices support full hardware VLAN
tags processing.

Approved by:	kib (mentor)
MFC after:	1 week
2008-10-04 15:44:22 +00:00
Stanislav Sedov
8faf6cdc01 - Add manual page for ae(4) driver.
Approved by:	kib (mentor)
MFC after:	1 week
2008-10-04 14:21:54 +00:00
Simon L. B. Nielsen
f4b548d73e - Document that 'show alllocks' and 'show locks' are only available
with witness.
- Remove references to non-existing witness(9) and replace with
  witness(4) where appropriate.
- Bump document date.

MFC after:	3 days
2008-10-04 14:12:09 +00:00
Christian Brueffer
129e5ac659 ITE IT8213F support. 2008-10-03 11:37:33 +00:00
Alexander Motin
728747680a Add hint about hw.snd.default_unit sysctl. 2008-10-03 09:19:07 +00:00
Andrew Thompson
9087c3494e Update ng_tty for MPSAFE TTY.
This changes from a line discipline to the tty_hooks mechanism. Data will come
in directly via rint_bypass and sent to the peer node in a single mbuf.

As line disciplines are no longer used a new netgraph command called
NGM_TTY_SET_TTY is used to attach the tty. This takes a pointer to to the open
file descriptor of the tty and registers the tty hooks. When the tty disappears
the node will shutdown.

Thanks to:	ed
Sponsored by:	Hobnob, Inc
2008-10-03 05:14:54 +00:00
Pyun YongHyeon
d5bb114360 Mention support for nForce MCP77 and MCP79.
Touch Dd.
2008-10-02 02:23:59 +00:00
Gleb Smirnoff
3e460b606a Make example commands working.
Reviewed by:	benjsc
2008-09-30 14:24:03 +00:00
Joseph Koshy
6455febbea Document changes in behaviour due to sparse CPU numbering support. 2008-09-22 14:31:24 +00:00
Alexander Motin
18c908fda4 Fix small mistake. 2008-09-18 10:30:29 +00:00
Pyun YongHyeon
52144a3ecb Add ASUS P5KPL-C to the list of supported motherboard.
Reported by:	< nikola.lecic <at> anthesphoria dot net >
2008-09-18 05:08:17 +00:00
Alexander Motin
874bf0b64b Bump modification date. 2008-09-17 20:34:50 +00:00
Alexander Motin
0737f637ef Fix a typo. 2008-09-17 20:28:01 +00:00
Alexander Motin
49c93197a3 Add set of snd_hda driver configuration examples to the man page. 2008-09-17 20:17:22 +00:00
Konstantin Belousov
52dfc8d7da Add the ffs structures introspection functions for ddb.
Show the b_dep value for the buffer in the show buffer command.
Add a comand to dump the dirty/clean buffer list for vnode.

Reviewed by:	tegge
Tested and used by:   pho
MFC after:   1 month
2008-09-16 11:19:38 +00:00
Joel Dahl
c43aea0f68 Minor language fixes and updates to the hardware section. 2008-09-14 09:56:35 +00:00
Alexander Motin
04b96d88cd Update man page according to r182999 snd_hda driver update. 2008-09-13 17:01:38 +00:00