History log of /freebsd-current/sys/dev/firewire/fwohcireg.h
Revision Date Author Comments
# 2ff63af9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/


# 50d823d5 24-Dec-2020 Marius Strobl <marius@FreeBSD.org>

fwohci(4): remove support for Sun PCIO-2 FireWire controllers

It's no longer used since 58aa35d42975c298ca0adba705c042596303c9f5
and r357455 respectively.


# 33d62e33 31-Mar-2018 Warner Losh <imp@FreeBSD.org>

The Uninorth ID was really for Uninorth 2.

Submitted by: Sevan Janiyan
Differential Revision: https://reviews.freebsd.org/D14919


# 80105e4e 31-Mar-2018 Warner Losh <imp@FreeBSD.org>

fwohcireg.h is 99% the same between the boot loader and the
kernel. Delete it and fix up the 1% difference because there's no need
for them to be different.


# 718cf2cc 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: further adoption of SPDX licensing ID tags.

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.


# 23667f08 27-Sep-2014 Alexander Kabaev <kan@FreeBSD.org>

Remove obsolete compatibility glue and improve firewire code readability.

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


# 7a22215c 30-Nov-2013 Eitan Adler <eadler@FreeBSD.org>

Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit. Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with: -arch, rdivacky
Reviewed by: cperciva


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# d717909f 11-Feb-2009 Sean Bruno <sbruno@FreeBSD.org>

Update comments around various structs.

Add speeds S800, S1600 and S3200


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 0cf4488a 30-Apr-2007 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

MFp4: Improve asynchronous packet receive process.
- Wake up DMA engine after adding a new receive buffer.
- Skip buffers which have unknown state after error.
- More rigid error detection.

MFC after: 1 week


# c44123e1 19-May-2005 Marius Strobl <marius@FreeBSD.org>

Recognize the integrated (though not necessarily enabled) FireWire
controllers of Sun PCIO-2 chips which are used onboard in most of
the newer PCI-based sun4u machines (cosmetic change as they were also
already probed as generic FWOHCI without this). As with gem(4), hme(4)
and ohci(4) detect whether their intpin register is valid and correct
it if necessary, i.e. set the respective IVAR to the right value for
allocating the IRQ resource, as some of them come up having it set
to 0 (in fact in all machines I'm currently aware of the FireWire
part being enabled). This fixes attaching affected controllers.

Apporved by: simokawa
Tested by: Michiel Boland <michiel@boland.org>
MFC after: 1 month


# 098ca2bd 05-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start each of the license/copyright comments with /*-, minor shuffle of lines


# 433dd56b 03-Aug-2004 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fix and add deivce ID's.

Obtained from: DragonFly BSD


# 6e2b0d0b 17-Jul-2004 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add some PCI IDs for OHCI chips.

Obtained from: DragonFly BSD


# 03161bbc 22-May-2004 Doug Rabson <dfr@FreeBSD.org>

Change u_intXX_t to uintXX_t. Change a couple of 'unsigned long's to
uint32_t where appropriate.


# 3094dfd1 12-Feb-2004 John Baldwin <jhb@FreeBSD.org>

Use the PCIR_BAR() macro rather than a magic number to specify the BAR
for controller memory.


# dbc80c7b 30-Jan-2004 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add NEC uPD72873.

Submitted by: Christian Laursen <xi@borderworlds.dk>


# c3e840a8 06-Jan-2004 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fix register mis-alignment introduced in rev1.12.


# c4778b5d 01-Oct-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

MFp4: Change struct fw_xfer to reduce memory copy in fwmem_*() functions.
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.


# a1c9e73a 19-Aug-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fill reserved fields of transmitting packets header with zero.
This fixes the if_fwe problem with 1394b chip.

PR and Tested by: nork


# abe9725e 25-Jul-2003 Peter Wemm <peter@FreeBSD.org>

Fix some recently introduced warnings. 'Declaration does not declare
anything' etc.


# 3be95df6 03-Jun-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add id for TI's 1394b link chip.


# 8fd36d4a 24-Apr-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add some IEEE 1394 OHCI chips.

Partially submitted by: Tetsuya Ryuchi <ryuchi@ryuchi.org>
PR: misc/51336


# 77ee030b 16-Apr-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

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


# 69f034da 18-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Use pci_get_devid().


# 12f2a295 18-Feb-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Add 'uPD72871/2 IEEE1394 1-Chip OHCI Host Controller'.


# 53f1eb86 26-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

- Split db.desc.cmd into desc.control and desc.reqcount.
- remove unncessary descriptor updates.


# bce5729a 04-Jan-2003 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

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


# 78953135 31-Dec-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

Fix and add several device IDs.


# ac9f6692 25-Dec-2002 Hidetoshi Shimokawa <simokawa@FreeBSD.org>

firewire.c
- Fix permission of device node.

fwochi.c, fwohcireg.h
- Detect phy access failure correct way.
- Set root hold-off bit before initiating bus reset.
This should fix the problem with VIA6306.

fwohcivar.h
- Fix over-allocation of array. (fwohcivar.h)

sbp.c
- Return CAM_DEV_NOT_THERE rather than CAM_TID_INVALID to prevent retry.


# a9c9b698 16-Sep-2002 Katsushi Kobayashi <ikob@FreeBSD.org>

Firewire device support for Apple eMac with PPC kernel.
Contributed by Peter Grehan <grehan@freebsd.org>


# 3c60ba66 12-Sep-2002 Katsushi Kobayashi <ikob@FreeBSD.org>

Initial import for IEEE1394 OHCI chipdet device driver and SBP-2 (Serial
Bus Protocol 2:SCSI over IEEE1394) support for CAM.