diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:35:26 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:35:26 +0000 |
commit | c906108c21474dfb4ed285bcc0ac6fe02cd400cc (patch) | |
tree | a0015aa5cedc19ccbab307251353a41722a3ae13 /gdb/rdi-share/ethernet.h | |
parent | cd946cff9ede3f30935803403f06f6ed30cad136 (diff) | |
download | gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.zip gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.gz gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.bz2 |
Initial creation of sourceware repositorygdb-4_18-branchpoint
Diffstat (limited to 'gdb/rdi-share/ethernet.h')
-rw-r--r-- | gdb/rdi-share/ethernet.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/gdb/rdi-share/ethernet.h b/gdb/rdi-share/ethernet.h new file mode 100644 index 0000000..930aced --- /dev/null +++ b/gdb/rdi-share/ethernet.h @@ -0,0 +1,99 @@ +/* + * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved. + * + * This software may be freely used, copied, modified, and distributed + * provided that the above copyright notice is preserved in all copies of the + * software. + */ + +/* -*-C-*- + * + * $Revision$ + * $Date$ + * + * + * ethernet.h: Angel drivers for Ethernet using Fusion UDP/IP stack + */ +#ifndef angel_ethernet_h +#define angel_ethernet_h + +/* + * the UDP ports that Angel Ethernet uses + */ +#define CTRL_PORT 1913 + +/* + * the size of the largest packet accepted on the control socket + */ +#define CTRL_MAXPACKET 6 + +/* + * This is the "magic number" sent to the control port to + * request that the channel port numbers are returned + */ +#define CTRL_MAGIC "Angel" + +/* + * Array used for responding to a request on the control port + */ +typedef unsigned char CtrlResponse[10]; +#define RESP_MAGIC 0 +#define RESP_DBUG 6 +#define RESP_APPL 8 + +/* + * indices for accessing the array of port numbers sent + * over the control socket + */ +#define DBUG_INDEX 0 +#define APPL_INDEX 1 + +#ifdef TARGET + +# include "devdriv.h" + +extern const struct angel_DeviceEntry angel_EthernetDevice; + +/* + * Function: angel_EthernetPoll + * Purpose: Poll Fusion for newly arrived packets + * + * Pre-conditions: Called in SVC mode with the lock + * + * Params: + * Input: data IGNORE'd + * + * Returns: Nothing + * + * Post-conditions: Will have passed any packets received along to + * higher levels + */ +void angel_EthernetPoll(unsigned int data); + +void angel_EthernetNOP(unsigned int data); + + +/* + * Function: angel_FindEthernetConfigBlock + * Purpose: Search the Flash for an ethernet config block and return + * it if found. + * + * Params: None + * + * Returns: NULL if no config block found, the address if one is found. + * + */ +extern angel_EthernetConfigBlock *angel_FindEthernetConfigBlock(void); + +#else /* def TARGET */ + +# ifndef COMPILING_ON_WINDOWS +# define ioctlsocket(x, y, z) ioctl((x), (y), (z)) +# define closesocket(x) close(x) +# endif + +#endif /* def TARGET */ + +#endif /* ndef angel_ethernet_h */ + +/* EOF ethernet.h */ |