1 /* 2 * ARAnyM hardware support via Native Features (natfeats) 3 * 4 * Copyright (c) 2005 Petr Stehlik of ARAnyM dev team 5 * 6 * This software may be used and distributed according to the terms of 7 * the GNU General Public License (GPL), incorporated herein by reference. 8 */ 9 10 #ifndef _natfeat_h 11 #define _natfeat_h 12 13 struct nf_ops 14 { 15 long (*get_id)(const char *); 16 long (*call)(long id, ...); 17 long res[3]; 18 }; 19 20 const struct nf_ops *nf_init(void); 21 22 int nf_name(char *buf, int bufsize); 23 int nf_debug(const char *msg); 24 int nf_shutdown(void); 25 26 int nf_ethernet_check_version(char *errmsg, int errmsglen); 27 int nf_ethernet_get_irq(void); 28 int nf_ethernet_get_hw_addr(int ethX, char *buffer, int bufsize); 29 int nf_ethernet_interrupt(int bit); 30 int nf_ethernet_read_packet_len(int ethX); 31 void nf_ethernet_read_block(int ethX, char *buffer, int len); 32 void nf_ethernet_write_block(int ethX, char *buffer, int len); 33 void nf_ethernet_xif_start(int ethX); 34 void nf_ethernet_xif_stop(int ethX); 35 # endif /* _natfeat_h */ 36