Home | History | Annotate | Download | only in ieee1394
History log of /src/sys/dev/ieee1394/fwohcivar.h
RevisionDateAuthorComments
 1.34  04-Aug-2012  riastradh Fix error branches and config pending races in firewire init.

This way, if anything fails, it just fails; you don't panic. This can
happen if suspending and resuming of firewire is broken (e.g., as I
encountered in PR kern/44581).
 1.33  29-Apr-2012  dsl Change to consistently use M_FW for all malloc/free.
It probably doesn't matter any more, but the code doesn't appear to
have matched its mallocs and frees - so the stats would have been awol.
 1.32  23-May-2010  christos branches: 1.32.8; 1.32.12;
Revert all previous kmem_ commits. This needs to be done in a different way
because we cannot call kmem_ from an interrupt context. I opened PR/43341 for
it.
 1.31  23-May-2010  christos Don't allocate sid scratch memory from an interrupt context:

fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file "../../../../ker
n/subr_kmem.c", line 195
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff8022db1d cs 8 rflags 246 cr2 0 cpl 6 rsp fffffff
f80fafb68
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
kmem_alloc() at netbsd:kmem_alloc+0x18a
fwohci_intr() at netbsd:fwohci_intr+0xbe2
...

I will send-pr for the next one... Looks like someone did not use DIAGNOSTIC
when made the changes.
 1.30  29-Mar-2010  kiyohara Bye-bye fw_port.h.
 1.29  06-Nov-2007  kiyohara branches: 1.29.18; 1.29.38; 1.29.40;
The argument of *_intr_establish() is changed to fwohci_flit.
Our ieee1394 coordinates from FreeBSD implementation.
Add fwohci_pci_shutdown() and fwohci_pci_power().
Move __KERNEL_RCSID to ahead.
 1.28  06-Nov-2007  dogcow on NetBSD, cardbus_intr_establish's fifth arg's is a symbol which returns
an int, not a void; change fwohci_intr accordingly.
 1.27  05-Nov-2007  kiyohara branches: 1.27.2;
+ Sync to FreeBSD.
firewire.c Rev.1.101
firewire.h Rev.1.21
firewirereg.h Rev.1.50
fwdev.c Rev.1.52
fwdma.c Rev.1.9
fwmem.c Rev.1.34
fwohci.c Rev.1.93
fwohcireg.h Rev.1.23
fwohcivar.h Rev.1.16
if_fwip.c Rev.1.16
if_fwipvar.h Rev.1.5
sbp.c Rev.1.92
+ Cleanup macros in fw_port.h.
+ Fix the occurrence of the error at the resume. Don't set the buffer again.
 1.26  21-Apr-2007  kiyohara branches: 1.26.6; 1.26.8; 1.26.12;
firewire.c sync to Rev.1.86 for FreeBSD.
firewirereg.h sync to Rev.1.41 for FreeBSD.
fwcrom.c sync to Rev.1.14 for FreeBSD.
fwdev.c sync to Rev.1.49 for FreeBSD.
fwmem.c sync to Rev.1.32 for FreeBSD.
fwohci.c sync to Rev.1.86 for FreeBSD.
fwohcivar.h sync to Rev.1.15 for FreeBSD.
if_fwip.c sync to Rev.1.14 for FreeBSD.
if_fwipvar.h sync to Rev.1.4 for FreeBSD.
sbp.c sync to Rev.1.89 for FreeBSD.
 1.25  11-Dec-2005  christos branches: 1.25.26; 1.25.30; 1.25.32;
merge ktrace-lwp.
 1.24  11-Jul-2005  kiyohara ieee1394 import from FreeBSD.
 1.23  31-May-2005  christos branches: 1.23.2;
fix handling of volatile and remove bogus casts.
 1.22  27-Feb-2005  perry nuke trailing whitespace
 1.21  08-Jul-2003  itojun branches: 1.21.8; 1.21.10;
function prototype must not have variable name
 1.20  13-Dec-2002  jmc branches: 1.20.6;
Improve performance with disks almost 60x by redoing the callback handler to
accept ranges as well as single addresses. Still need to go through any key
areas and remove the malloc's and replace these with some sort of pooling
instead.
 1.19  04-Dec-2002  haya New Feature: add pseudo device for IEEE 1394 isochronous stream and
isochronous reception routine for IEEE 1394 OHCI (fwohci). The
transmission part is under construction.

The minimum configuration options for this feature are:

# IEEE 1394 (i.LINK)
fwohci* at pci? dev ? function ?
pseudo-device fwiso 1
 1.18  21-Jun-2002  itojun don't pull in sys/mbuf.h just for prototype decl
 1.17  16-Jan-2002  eeh branches: 1.17.8;
Fix illegal pointer manipulations that cause alignment problems.
 1.16  29-Dec-2001  ichiro implement fwohci detach routine.
 1.15  17-Jul-2001  haya New Feature: Add isochronous stream input routine. This feature has
been tested on i386. It does not have any interface for useland to
get isochoronous stream. The isochoronous acquisition interface
should be determined.
 1.14  15-May-2001  jmc branches: 1.14.2;
Various small changes.
Clean up one bug in a DPRINTF in arrs_input which could panic on some packets.
Gut the ack/response functionality and clean it up so all packets get checked
correctly and the abuf struct isn't used once the ab_cb has happened (there
still could be ack packets waiting to be processed at that time).
Finally, add some documentation explaining read/write/inreg and their
purpose/argument calling.
 1.13  13-May-2001  jmc Add locators support
 1.12  11-May-2001  jmc Add first pass of generalized hooks for packet completion (i.e. ack) codes. This will eventually replace the mbuf code when it moves back to if_fw.c where it belongs.
 1.11  03-May-2001  jmc Style police. Got the tab'ing correct
 1.10  01-May-2001  enami Fix whitespace usage (fow now, previously existing code only just due to
my time shortage):
- Use 8 column for basic indent.
- Use 4 space for 2nd level indent.
- Use tab instead of 8 spaces.
- Don't put space before function call operator. That's unary operator.
- Wrap lines so that it fits in 80 columns.
 1.9  01-May-2001  jmc Add proc struct for kthread, interrupt handler flags, and nodelist
 1.8  15-Mar-2001  enami Make fwohci works on big endian cpu (e.g., powermac g4).
 1.7  13-Dec-2000  enami branches: 1.7.2;
Add RCS Id.
 1.6  20-Nov-2000  onoe Use DMA from mbuf instead of copy in transmit.
Still use memcpy in receiving because we must use buffer fill mode
and many packets may share single receive buffer.

XXX: Workaround(?) for CXD3222: it fails to DMA for selfid packet according
to code placement. I'm not sure about the reason (cache? timing? bug?).

Fixed the bug: transmitter sometimes stop and OACTIVE bit of if_fw
never be cleared.
Fixed the bug: freeing free buffer.

Enable ieee1394_drain and ieee1394_watchdog for loss of fragment.
 1.5  14-Nov-2000  onoe branches: 1.5.2;
Add support for link fragmentation and reassemble for IEEE-1394.
XXX: drain is still not yet implemented, thus memory leak will occur
in case of any of fragment lost.
 1.4  08-Nov-2000  onoe Add powerhook and shutdownhook to support Notebook.
Use PAGE_SIZE instead of OHCI_PAGE_SIZE for each DMA mem.
OHCI_PAGE_SIZE(2kB) will be round up PAGE_SIZE, anyway.
XXX: need more sophisticated way to manage buffer.
Clear IntEvent first not to lose SelfIDCompleted in multiple bus reset.
Be careful not to clear BusReset int event in SelfID duration to follow
the OHCI spec.
Initiate BusReset if selfid is not completed within 3sec after busreset.
 1.3  05-Nov-2000  matt Merge in my some of my stuff.
 1.2  05-Nov-2000  onoe First Prototype implementation of network interface part for IEEE1394 (if_fw).

Current status:
Only OHCI chip is supported (fwohci).
ping (IPv4) works with Sony's implementation (SmartConnect) on Win98.
sometimes works but not stable.
Not implemented yet:
IRM (Isochronous Resource Manager) functionality.
Link layer fragmentation.
Topology map.
More to do:
clean ups
MCAP
charactor device part
dhcp

There is no entry in GENERIC config file yet.
Follow sys/dev/ieee1394/IMPLEMENTATION to enable if_fw.
 1.1  30-May-2000  matt branches: 1.1.4;
Beginning of a IEEE 1394 framework. An attachment for PCI OHCI controllers
and bus-independent module that just begins to print things out. No real
code behind it. THIS IS A WORK IN PROGRESS. The *reg.h are woefully
incomplete.
 1.1.4.2  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.4.1  30-May-2000  minoura file fwohcivar.h was added on branch minoura-xpg4dl on 2000-06-22 17:07:07 +0000
 1.5.2.5  27-Mar-2001  bouyer Sync with HEAD.
 1.5.2.4  13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.5.2.3  22-Nov-2000  bouyer Sync with HEAD.
 1.5.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.2.1  14-Nov-2000  bouyer file fwohcivar.h was added on branch thorpej_scsipi on 2000-11-20 11:41:10 +0000
 1.7.2.8  19-Dec-2002  thorpej Sync with HEAD.
 1.7.2.7  11-Dec-2002  thorpej Sync with HEAD.
 1.7.2.6  01-Aug-2002  nathanw Catch up to -current.
 1.7.2.5  28-Feb-2002  nathanw Catch up to -current.
 1.7.2.4  08-Jan-2002  nathanw Catch up to -current.
 1.7.2.3  24-Aug-2001  nathanw Catch up with -current.
 1.7.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.7.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.14.2.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.14.2.3  11-Feb-2002  jdolecek Sync w/ -current.
 1.14.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.2.1  03-Aug-2001  lukem update to -current
 1.17.8.1  15-Jul-2002  gehenna catch up with -current.
 1.20.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.20.6.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.20.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.20.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.20.6.1  03-Aug-2004  skrll Sync with HEAD
 1.21.10.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.21.8.1  29-Apr-2005  kent sync with -current
 1.23.2.3  15-Nov-2007  yamt sync with head.
 1.23.2.2  03-Sep-2007  yamt sync with head.
 1.23.2.1  21-Jun-2006  yamt sync with head.
 1.25.32.1  11-Jul-2007  mjf Sync with head.
 1.25.30.1  27-May-2007  ad Sync with head.
 1.25.26.1  07-May-2007  yamt sync with head.
 1.26.12.1  13-Nov-2007  bouyer Sync with HEAD
 1.26.8.1  06-Nov-2007  matt sync with HEAD
 1.26.6.1  06-Nov-2007  joerg Sync with HEAD.
 1.27.2.1  19-Nov-2007  mjf Sync with HEAD.
 1.29.40.1  30-May-2010  rmind sync with head
 1.29.38.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.29.18.1  11-Aug-2010  yamt sync with head.
 1.32.12.1  29-Apr-2012  mrg sync to latest -current.
 1.32.8.2  30-Oct-2012  yamt sync with head
 1.32.8.1  23-May-2012  yamt sync with head.

RSS XML Feed