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

[plamo:17767] Plamo98 3.0 ¤Çcorega¤ÎEther PCI-T¤¬¤¦¤Þ¤¯¹Ô¤­¤Þ¤»¤ó¡£



µÜËܤǤ¹¡£
¤½¤Î¸å¡¢PC-9821 V200¤ËPlamo98 3.0¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤·¤¿¡£
LAN ¥¢¥À¥×¥¿¡¼¤¬corega¤ÎEther PCI-T¤Çcorega¤Î¥µ¥¤¥È¤Çne2k-pci¤Ç¤¢¤ë¤³¤È¤òÄ´¤Ù¤Þ¤·¤¿¡£
ne2k-pci.o¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤Ê¤¯¤Æ¡¢ne2k-pci.c¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤¿¤Î¤Ç¡¢
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux98-2.4.19/include -I/usr/src/linux98-2.4.19/drivers/net -Wall -Wstrict-prototypes -O6 -c ne2k-pci.c
¤È¥³¥ó¥Ñ¥¤¥ë¤·¤è¤¦¤È¤·¤¿¤Î¤Ç¤¹¤¬¡¢
ne2k-pci.c: In function `ne2k_pci_init_one':
ne2k-pci.c:250: `ei_local' undeclared (first use in this function)
ne2k-pci.c:250: (Each undeclared identifier is reported only once
ne2k-pci.c:250: for each function it appears in.)
ne2k-pci.c: In function `ne2k_pci_reset_8390':
ne2k-pci.c:431: `ei_local' undeclared (first use in this function)
ne2k-pci.c: In function `ne2k_pci_get_8390_hdr':
ne2k-pci.c:458: `ei_local' undeclared (first use in this function)
ne2k-pci.c: In function `ne2k_pci_block_input':
ne2k-pci.c:497: `ei_local' undeclared (first use in this function)
ne2k-pci.c: In function `ne2k_pci_block_output':
ne2k-pci.c:559: `ei_local' undeclared (first use in this function)
¤Î¤è¤¦¤Ê¥¨¥é¡¼¤¬¤Ç¤Þ¤·¤¿¡£
ne2k-pci.c:250:¤Ï
outb(E8390_NODMA+E8390_PAGE1+E8390_STOP, ioaddr + E8390_CMD);
¤È¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£
ne2k-pci.c:62¤Ë¤Ï
#include "8390.h"
¤È¤¢¤ê¡¢¤³¤ÎE8390_CMD¤Ï8390.h:141¤Ë
#define E8390_CMD	EI_SHIFT(0x00)  /* The command register (for all pages) */
¤È¤¢¤ê¤Þ¤·¤¿¡£
¤³¤ÎEI_SHIFT¤ÏƱ¤¸¤¯8390.h:125¤«¤é
#ifdef CONFIG_NET_CBUS
#define EI_SHIFT(x)	(ei_local->reg_offset[x])
#else
#if defined(CONFIG_MAC) ||  \
    defined(CONFIG_ARIADNE2) || defined(CONFIG_ARIADNE2_MODULE) || \
    defined(CONFIG_HYDRA) || defined(CONFIG_HYDRA_MODULE) || \
    defined(CONFIG_ARM_ETHERH) || defined(CONFIG_ARM_ETHERH_MODULE)
#define EI_SHIFT(x)	(ei_local->reg_offset[x])
#undef inb
#undef inb_p
#undef outb
#undef outb_p

#define inb(port)   in_8(port)
#define outb(val,port)  out_8(port,val)
#define inb_p(port)   in_8(port)
#define outb_p(val,port)  out_8(port,val)

#else
#define EI_SHIFT(x)	(x)
#endif
#endif
¤È¤¢¤ê¤Þ¤·¤¿¡£
¤³¤³¤ò
#define EI_SHIFT(x)	(x)
¤Ë¤Ê¤ª¤¹¤È¥³¥ó¥Ñ¥¤¥ë¤Ç¤­¤¿¤Î¤Ç¤¹¤¬¡£insmod¤¹¤ë¤Èsegment fault¤¬µ¯¤­¤Æ¤À¤á¤Ç¤·¤¿¡£ei_local¤Ï8390.c¤Ç¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ê¤Î¤Ç¤¹¤¬¡¢ne2k-pci.c¤Ç¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£
¤É¤¦¤Ë¤«¤Ê¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
hiroyuki_miyamoto@mail.goo.ne.jp

Follow-Ups
[plamo:17768] Re: Plamo98 3.0 ¤Çcorega ¤ÎEther PCI-T¤¬¤¦¤Þ¤¯¹Ô¤­¤Þ¤»¤ó¡£, KAJIWARA, Atsushi

[¸¡º÷¥Ú¡¼¥¸] [¥á¡¼¥ë°ìÍ÷]
Plamo ML ¸ø³«¥·¥¹¥Æ¥à