Subject: firewire of FreeBSD
To: None <tech-kern@NetBSD.org>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: tech-kern
Date: 06/03/2005 02:00:50
Hi, all !


I fixed some bug, sinse 09/16/2004.

  http://mail-index.netbsd.org/tech-kern/2004/09/16/0000.html


I renamed from firewire(4) to ieee1394if(4).
# And renamed from fwcontrol(8) to fwctl(8).

  http://www.kk.iij4u.or.jp/~kiyohara/ieee1394if/

  http://www.kk.iij4u.or.jp/~kiyohara/ieee1394if/ieee1394if.20050531.diff
  http://www.kk.iij4u.or.jp/~kiyohara/ieee1394if/ieee1394if.20050531.tar.gz


You can select fwnode(4) and ieee1394if(4) by option FWOHCI_FREEBSD_-
IMPLEMENTATION. 

  # PCI IEEE1394 controllers
  #fwohci* at pci? dev ? function ?       # IEEE1394 Open Host Controller 

  # CardBus IEEE1394 controllers
  #fwohci* at cardbus? dev ? function ?   # IEEE1394 Open Host Controller 

  #fw*    at fwbus?                       # IP over 1394 

  # IEEE1394 nodes
  #fwnode* at fwbus? idhi ? idlo ?
  #sbpscsi* at fwnode?
  #scsibus* at sbpscsi?

  # FreeBSD's implementation. required FWOHCI_FREEBSD_IMPLEMENTATION.
  #options                FWOHCI_FREEBSD_IMPLEMENTATION
  #ieee1394if* at fwohci?
  #fwip*  at ieee1394if?
  #sbp*   at ieee1394if? euihi ? euilo ?


However, it is a provisional source. Because it fouls very much by
'#ifdef FWOHCI_FREEBSD_IMPLEMENTATION'. See fwohci{.c,reg.h,var.h}
and if_ieee1394{.h,subr.c} and etc....
Especially, fwohci{.c,reg.h,var.h} is very dirty. Because conflicts at
file name.   X-<


  fwohci{.c,reg.h,var.h} ---

  /*	$NetBSD$	*/
  #include "opt_fwohci.h"
  #ifndef FWOHCI_FREEBSD_IMPLEMENTATION

  (current source or header)

  #else

  (FreeBSD's source or header)

  #endif  

  --- fwohci{.c,reg.h,var.h}


Should I rename fwohci{.c,reg.h,var.h} ?

# There is no manpage yet.  ;-)

Is it good idea?
--
kiyohara