Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/fwohci_pci.c
RevisionDateAuthorComments
 1.46  31-Mar-2018  sevan There was only one G3 PowerBook with Firewire support, the Pismo. Issue is not
exclusive to the Pismo, confirmed on a G4 Titanium PowerBook. Chip is a Texas
Instruments TSB41AB1.
 1.45  31-Mar-2018  sevan PG3_FW device has been renamed UNINORTH_FW in pcidevs.
 1.44  10-May-2017  msaitoh branches: 1.44.8;
Use pci_intr_establish_xname().
 1.43  07-Jul-2016  msaitoh branches: 1.43.8;
KNF. Remove extra spaces. No functional change.
 1.42  29-Mar-2014  christos branches: 1.42.6;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.41  04-Aug-2012  riastradh branches: 1.41.2; 1.41.4;
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.40  30-Jan-2012  drochner Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
 1.39  29-Apr-2010  kiyohara branches: 1.39.8; 1.39.12;
Adds hw quirk for SUN firewire controllers. From FreeBSD.
Thanks for cegger@.
 1.38  24-Apr-2010  kiyohara Support detach by drvctl(8).
 1.37  29-Mar-2010  kiyohara Bye-bye fw_port.h.
 1.36  24-Feb-2010  dyoung branches: 1.36.2;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.35  03-Feb-2010  macallan branches: 1.35.2;
do not attach to Powrbook G3 onboard Firewire controllers until someone with
access to the hardware can figure out why it deadlocks during device
discovery
 1.34  08-Jan-2010  dyoung Expand PMF_FN_* macros.
 1.33  06-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.32  28-Apr-2008  martin branches: 1.32.10; 1.32.14;
Remove clause 3 and 4 from TNF licenses
 1.31  29-Mar-2008  kiyohara branches: 1.31.2; 1.31.4;
Sorry forgot.
Split device_t/softc, and cosmetic change.
 1.30  29-Mar-2008  ad Make it compile again.
 1.29  29-Feb-2008  dyoung Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.28  09-Dec-2007  jmcneill branches: 1.28.6; 1.28.10;
Merge jmcneill-pm branch.
 1.27  06-Nov-2007  kiyohara branches: 1.27.2; 1.27.4;
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.26  19-Oct-2007  ad branches: 1.26.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.25  16-Nov-2006  christos branches: 1.25.8; 1.25.22; 1.25.24; 1.25.28;
__unused removal on arguments; approved by core.
 1.24  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.23  11-Dec-2005  christos branches: 1.23.20; 1.23.22;
merge ktrace-lwp.
 1.22  11-Jul-2005  kiyohara ieee1394 import from FreeBSD.
 1.21  27-Feb-2005  perry branches: 1.21.4;
nuke trailing whitespace
 1.20  04-Feb-2005  perry de-__P
 1.19  23-Apr-2004  itojun branches: 1.19.4; 1.19.6;
pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
 1.18  31-Jan-2003  thorpej branches: 1.18.2;
Use aprint_*().
 1.17  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.16  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.15  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.14  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.13  26-Jan-2002  ichiro OCHI -> OHCI
 1.12  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.11  13-Nov-2001  lukem add RCSID
 1.10  01-May-2001  jmc branches: 1.10.2;
Change to IPL_BIO
 1.9  12-Apr-2001  thorpej Use IPL_NET for now -- the only use of 1394 right now is for network
interfaces (IPv{4,6}-over-1394), and this allows us to get rid of
some evil interrupt mixing issues in the 1394 network code right now.
 1.8  15-Mar-2001  enami Make fwohci works on big endian cpu (e.g., powermac g4).
 1.7  15-Mar-2001  enami Fix indentation and white space usage.
 1.6  28-Dec-2000  sommerfeld branches: 1.6.2;
Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
 1.5  13-Dec-2000  enami Add RCS Id.
 1.4  05-Nov-2000  matt branches: 1.4.2;
Merge in my some of my stuff.
 1.3  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.2  30-May-2000  augustss branches: 1.2.4;
Make this compile too.
 1.1  30-May-2000  matt 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.2.4.2  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.2.4.1  30-May-2000  minoura file fwohci_pci.c was added on branch minoura-xpg4dl on 2000-06-22 17:07:23 +0000
 1.4.2.7  21-Apr-2001  bouyer Sync with HEAD
 1.4.2.6  27-Mar-2001  bouyer Sync with HEAD.
 1.4.2.5  05-Jan-2001  bouyer Sync with HEAD
 1.4.2.4  13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.4.2.3  22-Nov-2000  bouyer Sync with HEAD.
 1.4.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.4.2.1  05-Nov-2000  bouyer file fwohci_pci.c was added on branch thorpej_scsipi on 2000-11-20 11:42:20 +0000
 1.6.2.7  11-Dec-2002  thorpej Sync with HEAD.
 1.6.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.6.2.5  28-Feb-2002  nathanw Catch up to -current.
 1.6.2.4  08-Jan-2002  nathanw Catch up to -current.
 1.6.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.6.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.6.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.10.2.3  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.10.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.10.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.18.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.18.2.4  04-Feb-2005  skrll Sync with HEAD.
 1.18.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1  03-Aug-2004  skrll Sync with HEAD
 1.19.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.6.1  12-Feb-2005  yamt sync with head.
 1.19.4.1  29-Apr-2005  kent sync with -current
 1.21.4.6  17-Mar-2008  yamt sync with head.
 1.21.4.5  21-Jan-2008  yamt sync with head
 1.21.4.4  15-Nov-2007  yamt sync with head.
 1.21.4.3  27-Oct-2007  yamt sync with head.
 1.21.4.2  30-Dec-2006  yamt sync with head.
 1.21.4.1  21-Jun-2006  yamt sync with head.
 1.23.22.2  10-Dec-2006  yamt sync with head.
 1.23.22.1  22-Oct-2006  yamt sync with head
 1.23.20.1  18-Nov-2006  ad Sync with head.
 1.25.28.2  13-Nov-2007  bouyer Sync with HEAD
 1.25.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.25.24.4  23-Mar-2008  matt sync with HEAD
 1.25.24.3  09-Jan-2008  matt sync with HEAD
 1.25.24.2  08-Nov-2007  matt sync with -HEAD
 1.25.24.1  06-Nov-2007  matt sync with HEAD
 1.25.22.5  08-Dec-2007  jmcneill Rename pnp(9) -> pmf(9), as requested by many.
 1.25.22.4  01-Dec-2007  jmcneill If fwohci happens to fail to attach, register a NULL power handler.
 1.25.22.3  14-Nov-2007  joerg Convert to suspend/resume framework. Not fully functional, but a start.
 1.25.22.2  06-Nov-2007  joerg Sync with HEAD.
 1.25.22.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.25.8.1  23-Oct-2007  ad Sync with head.
 1.26.2.2  27-Dec-2007  mjf Sync with HEAD.
 1.26.2.1  19-Nov-2007  mjf Sync with HEAD.
 1.27.4.1  11-Dec-2007  yamt sync with head.
 1.27.2.1  26-Dec-2007  ad Sync with head.
 1.28.10.2  02-Jun-2008  mjf Sync with HEAD.
 1.28.10.1  03-Apr-2008  mjf Sync with HEAD.
 1.28.6.1  24-Mar-2008  keiichi sync with head.
 1.31.4.4  11-Aug-2010  yamt sync with head.
 1.31.4.3  11-Mar-2010  yamt sync with head
 1.31.4.2  16-May-2009  yamt sync with head
 1.31.4.1  16-May-2008  yamt sync with head.
 1.31.2.1  18-May-2008  yamt sync with head.
 1.32.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.32.10.1  21-Nov-2010  riz Pull up following revision(s) (requested by macallan in ticket #1470):
sys/dev/pci/fwohci_pci.c: revision 1.35
do not attach to Powrbook G3 onboard Firewire controllers until =20
someone with
access to the hardware can figure out why it deadlocks during device
discovery
 1.35.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.36.2.1  30-May-2010  rmind sync with head
 1.39.12.1  18-Feb-2012  mrg merge to -current.
 1.39.8.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.39.8.2  30-Oct-2012  yamt sync with head
 1.39.8.1  17-Apr-2012  yamt sync with head
 1.41.4.1  18-May-2014  rmind sync with head
 1.41.2.2  03-Dec-2017  jdolecek update from HEAD
 1.41.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.42.6.2  28-Aug-2017  skrll Sync with HEAD
 1.42.6.1  09-Jul-2016  skrll Sync with HEAD
 1.43.8.1  11-May-2017  pgoyette Sync with HEAD
 1.44.8.1  07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$

RSS XML Feed