patch-2.0.21-2.1.0 linux/arch/m68k/boot/atari/bootp.h
Next file: linux/arch/m68k/boot/atari/bootstrap.c
Previous file: linux/arch/m68k/boot/atari/bootp.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Wed Sep 25 10:47:39 1996
- Orig file:
lx2.0/v2.0.21/linux/arch/m68k/boot/atari/bootp.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file lx2.0/v2.0.21/linux/arch/m68k/boot/atari/bootp.h linux/arch/m68k/boot/atari/bootp.h
@@ -0,0 +1,44 @@
+#ifndef _bootp_h
+#define _bootp_h
+
+/* --------------------------------------------------------------------- */
+/* Ethernet Definitions */
+
+#define PKTLEN 1544
+typedef unsigned char Packet[PKTLEN];
+
+#define ETHADDRLEN 6
+typedef unsigned char HWADDR[ETHADDRLEN];
+
+typedef struct {
+ int (*probe)( void );
+ int (*init)( void );
+ void (*get_hwaddr)( HWADDR *addr );
+ int (*snd)( Packet *pkt, int len );
+ int (*rcv)( Packet *pkt, int *len );
+} ETHIF_SWITCH;
+
+
+/* error codes */
+#define ETIMEO -1 /* Timeout */
+#define ESEND -2 /* General send error (carrier, abort, ...) */
+#define ERCV -3 /* General receive error */
+#define EFRAM -4 /* Framing error */
+#define EOVERFL -5 /* Overflow (too long packet) */
+#define ECRC -6 /* CRC error */
+
+
+typedef unsigned long IPADDR;
+
+
+/***************************** Prototypes *****************************/
+
+int get_remote_kernel( const char *kname );
+int kread( int fd, void *buf, unsigned cnt );
+int klseek( int fd, int where, int whence );
+int kclose( int fd );
+
+/************************* End of Prototypes **************************/
+
+#endif /* _bootp_h */
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov