History log of /freebsd-10.3-release/usr.sbin/fwcontrol/fwcontrol.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 296373 04-Mar-2016 marius

- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.3.
- Update default pkg(8) configuration to use the quarterly branch.

Approved by: re (implicit)

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 228990 30-Dec-2011 uqs

Spelling fixes for usr.sbin/


# 228790 21-Dec-2011 eadler

- Remove extraneous null ptr deref checks
- Fix memory leak

Submitted by: Slono Slono <slonoman2011@yandex.ru>
Approved by: jhb
MFC after: 1 week


# 216321 09-Dec-2010 kevlo

Closing fd when it's done

Reviewed by: sbruno


# 188742 17-Feb-2009 sbruno

Remove reference to phy_delay from fwcontrol. Thanks for the catch!

Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
MFC after: 2 weeks


# 186696 02-Jan-2009 imp

Add fd = -1 after close when we detect the format so that subsequent
open_dev will reopen the device.


# 185996 12-Dec-2008 sbruno

Reviewed by: (Dieter)freebsd@sopwith.solgatos.com
Approved by: slong scottl@samsco.org
MFC after: 2 weeks

Final cleanup of fwcontrol.
NetBSD compatibility
Cleanup errors in usage() display
Finish up error handling via errx/warnx
Generate error on unparsed command line syntax
Change device(devbase) to open into the form /dev/fwX.X


# 182911 10-Sep-2008 sbruno

Beginning of overhaul of fwcontrol:
- Documentation of send_phy_config()
- cleanup of malloc's() and added error checking throughout
- new capability to iterate over multiple firewire buses
- update usage() display
- cleanup command line parsing to allow out of order switches
- cleanup command line parsing to allow multiple switches per invocation
- cleanup grammar of man page a bit
- add some ranges to the man page to indicate what values are valid

Since fwcontrol's code is the same across 6/7/head this can be
applied to all branches after the MFC period.

Reviewed by: Dieter freebsd@sopwith.solgatos.com
Approved by: mentor Scott scottl@samsco.org
MFC after: 60 days


# 176810 05-Mar-2008 simokawa

- add '-f' option to force root node.
- fix byte order in read_write_quad()
- show hostnames in the list
- fix typo in manpage

MFC after: 1 week


# 163712 26-Oct-2006 imp

Add MPEG2-TS/HDV support to fwcontrol.

Submitted by: Petr Holub" <hopet@ics.muni.cz>
Clean up by: mi@
Pr: 98134


# 146442 20-May-2005 charnier

Remove unused variables. Shorten the path to a WARNS=6 compliance.


# 137028 29-Oct-2004 simokawa

Add usage of -m option.


# 136845 23-Oct-2004 simokawa

Add -m option, set default fwmem target.


# 129760 26-May-2004 brooks

Use new eui64(3) functions to print EUI-64s and to allow access to nodes
by EUI-64 and name.

Reviewed by: simokawa


# 129604 23-May-2004 dfr

Don't crash if the CROM is all zeros.


# 121324 22-Oct-2003 simokawa

Add '0x' in front of EUI64 to avoid confusion.


# 120432 25-Sep-2003 simokawa

Add -p option to dump phy registers.


# 118457 05-Aug-2003 simokawa

- Use /dev/fwX.Y rather than /dev/fwX.
- Add option -u to specify bus number.
- Try to open the device only if it's necessary.


# 117474 12-Jul-2003 simokawa

- Allow retrieval of local Configuration ROM.
- Clear Configuration ROM buffer in advance for '-d' option.


# 116141 10-Jun-2003 simokawa

Decode bus_info block.


# 114274 30-Apr-2003 simokawa

Free asyreq.

Submitted by: ryuchi@ryuchi.org


# 114217 29-Apr-2003 simokawa

Add functions for sending a link-on packet and a RESET_START request.


# 113584 17-Apr-2003 simokawa

MFp4(simokawa_firewire):
Many internal structure changes for the FireWire driver.

- Compute CRC in CROM parsing.
- Add support for configuration ROM build.
- Simplify dummy buffer handling.
- busdma conversion
- Use swi_taskqueue_giant for -current. Mark the interrupt routine as MPSAFE.
- AR buffer handling.
Don't reallocate AR buffer but just recycle it.
Don't malloc and copy per packet in fwohci_arcv().
Pass packet to fw_rcv() using iovec.
Application must prepare receiving buffer in advance.
- Change fw_bind API so that application should pre-allocate xfer structure.
- Add fw_xfer_unload() for recycling struct fw_xfer.
- Add post_busreset hook
- Remove unused 'sub' and 'act_type' in struct fw_xfer.
- Remove npacket from struct fw_bulkxfer.
- Don't call back handlers in fwochi_arcv() if the packet has
not drained in AT queue
- Make firewire works on big endian platform.
- Use native endian for packet header and remove unnecessary ntohX/htonX.
- Remove FWXFERQ_PACKET mode. We don't use it anymore.
- Remove unnecessary restriction of FWSTMAXCHUNK.
- Don't set root node for phy config packet if the root node is
not cycle master capable but set myself for root node.
We should be the root node after next bus reset.

Spotted by: Yoshihiro Tabira <tabira@scd.mei.co.jp>
- Improve self id handling

Tested on: i386, sparc64 and i386 with forced bounce buffer


# 110578 09-Feb-2003 simokawa

Improve device listing.


# 110070 30-Jan-2003 simokawa

Improve alignment in printf().


# 109991 28-Jan-2003 simokawa

- Search free device node to open. (fwcontrol.c)
- Exploit multiple packets read/write for DV stream. (fwdv.c)
- Add reference to libdv in the ports collection. (fwcontrol.8)


# 109814 25-Jan-2003 simokawa

Change API of FW_GDEVLST ioctl.
- include information about itself.
- define struct fw_devinfo and use it in struct fw_devlstreq.
- unify EUI64 representation using struct fw_eui64.


# 109787 24-Jan-2003 simokawa

Use stderr for message output.


# 109737 23-Jan-2003 simokawa

Merge DV(Digital Video) support.


# 108662 04-Jan-2003 simokawa

- Remove speed_map API because speed_map is obsoleted by 1394a.
- Add definition of OHCI_HCC_BIBIV in fwohcireg.h.


# 108657 04-Jan-2003 simokawa

- Handle zero sized directory right way.
- Staticize.


# 108441 30-Dec-2002 simokawa

Import FireWire userland utility.