[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/Documentation/kernel/porting-freebsd-net.html



諏訪と申します。

http://www.jp.netbsd.org/Documentation/kernel/porting-freebsd-net.html
の訳がやっと終了致しました。本メールに添付させて頂きます。
大変遅くなり申し訳有りませんでした。

これは、やまのさんが原文Rev1.5でほとんど完了させていた訳を、下名が引き
継いで原文Rev1.8用にしたものです。
文字コードはJISにするのが慣わしの様でしたので、JIS形式としております。
Title: Notes on porting FreeBSD network drivers to NetBSD
BSD daemon

NetBSD Documentation:

FreeBSD $B$N%M%C%H%o!<%/%I%i%$%P!<$r(B NetBSD $B$K0\?"$9$k$?$a$N%a%b(B

$B35MW(B

Matthias Drochner $B$O!"(BFreeBSD $B$N%M%C%H%o!<%/%I%i%$%P!<$r(B NetBSD $B$K(B $B0\?"$9$k;~$K8+$D$1$?Aj0[E@$r$^$H$a$F$$$^$9!#(B $B$3$l$,Lr$KN)$D$3$H$r4j$C$F$$$^$9!#(B

$B4pK\E*$J%$%s%/%k!<%I%U%!%$%k$dDj5AMWAG(B

  • #include $B%U%!%$%kL>!?>l=j$O!";W$C$?$h$j0[$J$C$F$$$^$9!#(B
  • $B%Q%1%C%H%U%#%k%?!<(B
    FreeBSD: "BPF"
    NetBSD: "BPFILTER"
    [$BM}M3$OL5$$MM$K8+
  • NetBSD $B$G$O!"(B"opt_inet.h" $B$H(B "opt_ns.h" $B$r%$%s%/%k!<%I$9$kI,MW$,M-$j$^$9!#(B
  • NetBSD $B$K$O!"%0%m!<%P%kJQ?t(B "bootverbose" $B$,B8:_$7$^$;$s!#(B
  • NetBSD $B$O!"=8Cf4IM}$5$l$?(B PCI ID $B%G!<%?%Y!<%9$H(B PCI $B%l%8%9%?!<$NDj5A$r;}$C$F$$$^$9!#(B
  • if_media: FreeBSD: IFM_1000_SX, NetBSD: IFM_1000_FX
    [1000_FX $B$H8@$&J*$OB8:_$7$^$;$s!#(B- NetBSD $B$,4V0c$C$F$$$^$9!#(B]
  • <sys/queue.h> $B$NCf$NMWAG$N0c$$(B
    (NetBSD $B$K$O(B SLIST $B$NMM$JJ*$OB8:_$7$^$;$s!#(B)
    [$BL>A0$N0c$$$KM}M3$OM-$j$^$;$s!#$7$+$7!"(BSLIST $B$NMM$JJ*$O(B(SIMPLEQ $B$h$j%*!<%P!<%X%C%I$,>/$J$$$N$G(B) NetBSD $B$K$H$C$F$bM-MQ$G$9!#(B]

$B%M%C%H%o!<%/8GM-$G$J$$%U%l!<%`%o!<%/(B

  • $B%*!<%H%3%s%U%#%.%e%l!<%7%g%s$N%U%l!<%`%o!<%/$,0[$J$j$^$9!#(B
  • $B%G%P%$%9L>$NI=<((B
    FreeBSD: name:unit
    NetBSD: xname
    ("struct ifnet" $B$bF1MM$G$9!#(B)
  • $B3d$j9~$_MQ$N%O%s%I%i!<$,!"(BFreeBSD $B$G$O(B void$B!"(BNetBSD $B$G$O(B int $B$G$9!#(B
    [stray interrupts $B$N8!=P(B???]
  • bus.h: $B%^%C%W$5$l$?HO0O$N2>A[%"%I%l%9$X$N%"%/%;%9(B
    ($BA4$F$N%O!<%I%&%'%"$,%5%]!<%H$7$F$$$k$o$1$G$O$J$$$N$G!"(B $B0lHLE*$K$O%j%K%"!<%^%C%T%s%0$OHr$1$?J}$,NI$$$G$9!#$7$+$7!"$I$&$7$F$bI,MW$J$i(B BUS_SPACE_MAP_LINEAR $B$,$3$l$rDs6!$9$Y$-$G$9!#(B)
    [NetBSD $B$N(B bus_space $B%U%l!<%`%o!<%/$K$OB8:_$7$^$;$s!#0\?"@-$rDc2<$5$;$k860x$J$N$G!"(B $B2DG=$J$i(B bus_space_xxx $B$r;H$$$^$7$g$&!#(B]
  • bus_dma $B4X78(B(FreeBSD $B$O!"$^$@8E$$5!G=$r;H$C$F$$$^$9!#(B)

$B%M%C%H%o!<%/4XO"(B

  • $B30It(B mbuf $B%9%H%l!<%8=hM}(B
    FreeBSD: xxxfree() $B$X$N0z?t$OM-$j$^$;$s!#(B
    NetBSD: xxxfree() $B$X$N0z?t$,$O$C$-$j$7$^$;$s!#(B
    FreeBSD: $B%I%i%$%P!<$,M?$($k%j%U%!%l%s%9%+%&%s%H(B
    NetBSD: $B<+F0E*%j%U%!%l%s%9%+%&%s%H(B
  • FreeBSD $B$OHFMQ$N(B ether_ioctl() $B$r;}$C$F$$$^$9!#(B
    [$BNI$$(B - $BHFMQ$N%3!<%I$r:o=|$9$k!#(B]
  • $B%"%I%l%9%P%$%H$N$?$a$N(B "struct ether_addr" $B$N%a%s%P!<(B
    FreeBSD: "octet"
    NetBSD: "ether_addr_octet"
    [$BM}M3$OL5$$(B]
  • softc $B$N(B "ethercom" $BBP(B "arpcom"
    [$B5;=QE*$K$O!"(B NetBSD $B$,@5$7$$!#(B]
  • $B%$!<%5%M%C%H%"%I%l%9$X$N%"%/%;%9(B
    FreeBSD: "arpcom" $B$NCf$G%"%/%;%9$5$l$k!#(B
    NetBSD: ether_ifattach() $B$XEO$5$l!"(Bifp $B$r7PM3$7$F%"%/%;%9$5$l$k!#(B (LLADDR() - $B%"%i%$%a%s%HLdBj$N4F;k(B!)
    [NetBSD $B$G$O
  • $B%^%k%A%-%c%9%H%"%I%l%9$N%j%9%H(B
    FreeBSD: ifp->if_multiaddrs $B$N!"$=$N$^$^$N%j%9%H(B
    NetBSD: "struct ethercom" $B$N0lIt$H8@$&!"FCJL$J%U%l!<%`%o!<%/(B
  • "struct ifnet" $B$N%a%s%P!<$,0[$C$F(B (if_attach$B!"(Bether_ifattach) $B$*$j!"(B $B0[$J$k=i4|2=$r9T$&!#(B
    -xname $BBP(B name:unit
    -FreeBSD: xxxinit() - ether_ioctl() $B$K$h$C$F;H$o$l$k$?$a(B
    -$B%$!<%5%M%C%H%"%I%l%9(B
  • bpf $B4X?t$N0z?t(B
    FreeBSD: ifp
    NetBSD: ifp->if_bpf
  • $Be0L%l%$%d!<$X$N0zEO$7(B
    FreeBSD: ether_input()$B$K!"%$!<%5%M%C%H%X%C%@!<$rJ,N%$7$FEO$9!#(B
    NetBSD: $BA4$F$N%Q%1%C%H$r!"(B ifp->ifp_input $B$H4V@\E*$K7PM3$7$FEO$9!#(B
    [$B:G6a!"(BNetBSD $B$GJQ99$5$l$^$7$?!#(B]
  • NetBSD $B$O(B MII $B%U%l!<%`%o!<%/$r;}$C$F$*$j!"%I%i%$%P!<$O%l%8%9%?!<$X$N%"%/%;%9$rDs6!$9$k$@$1$G$9!#(B


NetBSD Documentation: Kernel $B$K$b$I$k(B
NetBSD $B%[!<%`%Z!<%8(B
NetBSD $B%I%-%e%a%s%H$N%H%C%W(B

(Contact us) $NetBSD: porting-freebsd-net.html,v 1.8 2000/10/19 05:21:54 dent Exp $
Copyright © 1998, 1999, 2000 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.