aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire/firewire.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Remove obsolete compatibility glue and improve firewire code readability.Alexander Kabaev2014-09-271-10/+10
| | | | | | | | | | | Commit my version of style(9) pass over the firewire code. Now that other people have started changing the code carrying this is as a local patch is not longer a viable option. MFC after: 1 month Notes: svn path=/head/; revision=272214
* Start the process of cleaning up FreeBSD's firewire driver.Will Andrews2014-09-181-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | sys/dev/firewire/firewire.c: sys/dev/firewire/firewire.h: sys/dev/firewire/firewirereg.h: sys/dev/firewire/fwcrom.c: sys/dev/firewire/fwdev.c: sys/dev/firewire/fwdma.c: sys/dev/firewire/fwmem.c: sys/dev/firewire/fwohci.c: sys/dev/firewire/fwohci_pci.c: sys/dev/firewire/fwohcivar.h: sys/dev/firewire/if_fwe.c: sys/dev/firewire/if_fwip.c: sys/dev/firewire/sbp.c: sys/dev/firewire/sbp_targ.c: Unifdef the code, removing support for DragonflyBSD and FreeBSD prior to version 5. Submitted by: gibbs MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: 1081188 on 2014/08/01 Notes: svn path=/head/; revision=271795
* Introduce 1394a-2000 extended PHY Self ID packets.Sean Bruno2009-02-171-2/+6
| | | | | | | | | | | | | Deprecate unused phy_delay Self ID field as it was removed by 1394a-2000. Attempt to parse extended Self ID PHY packets if they are detected Reviewed by: scottl (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=188726
* Update the Self ID structure to conform to 1394a-2000.Sean Bruno2009-02-131-18/+50
| | | | | | | | | Delete the unused defines. Reviewed by: scottl Notes: svn path=/head/; revision=188585
* Update comments around various structs.Sean Bruno2009-02-121-0/+7
| | | | | | | Add speeds S800, S1600 and S3200 Notes: svn path=/head/; revision=188508
* Replace all calls to minor() with dev2unit().Ed Schouten2008-09-271-1/+1
| | | | | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib Notes: svn path=/head/; revision=183397
* Configuration ROM length should be unsigned.Hidetoshi Shimokawa2007-04-241-1/+1
| | | | | | | MFC: 1 week Notes: svn path=/head/; revision=169019
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Change u_intXX_t to uintXX_t. Change a couple of 'unsigned long's toDoug Rabson2004-05-221-53/+53
| | | | | | | uint32_t where appropriate. Notes: svn path=/head/; revision=129585
* MFp4: FireWireHidetoshi Shimokawa2004-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | * all - s/__FUNCTION__/__func__/. Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> - Compatibility for RELENG_4 and DragonFly. * firewire - Timestamp just before queuing. - Retry bus probe if it fails. - Use device_printf() for debug message. - Invalidiate CROM while update. - Don't process minimum/invalid CROM. * sbp - Add ORB_SHORTAGE flag. - Add sbp.tags tunable. - Revive doorbell support. It's not enabled by default. Notes: svn path=/head/; revision=127468
* Increase FWMAXQUEUE up to 128.Hidetoshi Shimokawa2003-11-071-1/+1
| | | | Notes: svn path=/head/; revision=122216
* MFp4: Change struct fw_xfer to reduce memory copy in fwmem_*() functions.Hidetoshi Shimokawa2003-10-021-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And many changes. * all - Major change of struct fw_xfer. o {send,recv}.buf is splitted into hdr and payload. o Remove unnecessary fields. o spd is moved under send and recv. - Remove unnecessary 'volatile' keyword. - Add definition of rtcode and extcode. * firewire.c - Ignore FWDEVINVAL devices in fw_noderesolve_nodeid(). - Check the existance of the bind before call STAILQ_REMOVE(). - Fix bug in the fw_bindadd(). - Change element of struct fw_bind for simplicity. - Check rtcode of response packet. - Reduce split transaction timeout to 200 msec. (100msec is the default value in the spec.) - Set watchdog timer cycle to 10 Hz. - Set xfer->tv just before calling fw_get_tlabel(). * fwohci.c - Simplifies fwohci_get_plen(). * sbp.c - Fix byte order of multibyte scsi_status informations. - Split sbp.c and sbp.h. - Unit number is not necessary for FIFO¤ address. - Reduce LOGIN_DELAY and SCAN_DELAY to 1 sec. - Add some constants defineded in SBP-2 spec. * fwmem.c - Introduce fwmem_strategy() and reduce memory copy. Notes: svn path=/head/; revision=120660
* Allow to access phy registers via ioctl().Hidetoshi Shimokawa2003-08-191-0/+2
| | | | Notes: svn path=/head/; revision=119118
* Change device name notation.Hidetoshi Shimokawa2003-08-051-1/+2
| | | | | | | | | - /dev/fw{,mem}X.Y represents the Y'th unit on the X'th bus. - /dev/fw{,mem}X is an alias of fw{,mem}X.0 for compatibility. - Clone devices. Notes: svn path=/head/; revision=118455
* Clean up fwdev.Hidetoshi Shimokawa2003-08-011-2/+2
| | | | | | | | Allocate iso DMA channel dynamically. This allows us to have more /dev/fw* than number of DMA channels for asyn. transactions and etc. Notes: svn path=/head/; revision=118293
* MFp4(simokawa_firewire):Hidetoshi Shimokawa2003-04-171-179/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=113584
* MFp4(simokawa_sbp)Hidetoshi Shimokawa2003-03-061-1/+1
| | | | | | | | | | | | | Improve if_fwe performance. - Simplify mbuf handling by using bulkxfer. Now, it uses mbuf clusters for RX buffer as usual ethernet drivers. - Recycle struct xfer buffer and don't call malloc at runtime. - Count input and output errors. - Handle a mbuf chain longer than 6 correctly. - Increase queue length. Notes: svn path=/head/; revision=111942
* Add new ioctl to specify target EUI64 for fwmem.Hidetoshi Shimokawa2003-02-091-0/+3
| | | | Notes: svn path=/head/; revision=110582
* - replace timeout with callout_*.Hidetoshi Shimokawa2003-02-011-0/+2
| | | | | | | | - replace TAILQ with STAILQ for device list. - some clean up. Notes: svn path=/head/; revision=110193
* Change API of FW_GDEVLST ioctl.Hidetoshi Shimokawa2003-01-251-9/+15
| | | | | | | | | - include information about itself. - define struct fw_devinfo and use it in struct fw_devlstreq. - unify EUI64 representation using struct fw_eui64. Notes: svn path=/head/; revision=109814
* Remove FW_SSTDV ioctl. It is not used anymore.Hidetoshi Shimokawa2003-01-241-0/+2
| | | | Notes: svn path=/head/; revision=109802
* Merge little and big endian case.Hidetoshi Shimokawa2003-01-241-213/+127
| | | | Notes: svn path=/head/; revision=109801
* - Change definition of fc->maxrec same as fwdev->maxrec.Hidetoshi Shimokawa2003-01-051-0/+1
| | | | | | | | | - 'spec' and 'ver' are attributes of a unit rather than a node. - Report Phy and Link info separatelly. - Reorder intialization step in fwohci_reset(). Notes: svn path=/head/; revision=108701
* - Remove speed_map API because speed_map is obsoleted by 1394a.Hidetoshi Shimokawa2003-01-041-1/+0
| | | | | | | - Add definition of OHCI_HCC_BIBIV in fwohcireg.h. Notes: svn path=/head/; revision=108662
* Cosmetic change. s/Firewire/FireWire/.Hidetoshi Shimokawa2002-12-261-1/+1
| | | | Notes: svn path=/head/; revision=108281
* Firewire device support for Apple eMac with PPC kernel.Katsushi Kobayashi2002-09-171-0/+6
| | | | | | | Contributed by Peter Grehan <grehan@freebsd.org> Notes: svn path=/head/; revision=103485
* Initial import for IEEE1394 OHCI chipdet device driver and SBP-2 (SerialKatsushi Kobayashi2002-09-131-0/+565
Bus Protocol 2:SCSI over IEEE1394) support for CAM. Notes: svn path=/head/; revision=103285