<div>struct eth_device {</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>char name[NAMESIZE];</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>unsigned char enetaddr[6];</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int iobase;</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int state;</div> <div><br></div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int (*init) (struct eth_device*, bd_t*);</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int (*send) (struct eth_device*, volatile void* packet, int length);</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int (*recv) (struct eth_device*);</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>void (*halt) (struct eth_device*);</div> <div>#ifdef CONFIG_MCAST_TFTP</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int (*mcast) (struct eth_device*, u32 ip, u8 set);</div> <div>#endif</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>int (*write_hwaddr) (struct eth_device*);</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>struct eth_device *next;</div> <div><span class="Apple-tab-span" style="white-space:pre;"> </span>void *priv;</div> <div>};</div> <div><br></div> <div>뭐 이런 구조체 인데요 (UBOOT에 Eth.c안에 있는 정의 입니다)</div> <div>구조체 안에</div> <div><br></div> <div>int (*init)(struct eth_deivce*, bd_t*);</div> <div>뭐 이런것들이 있는데요 </div> <div>이해가 안됩니다..</div> <div><br></div> <div>설명을 좀 부탁드려요 [본삭금]</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.