diff options
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme167/network/network.c')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme167/network/network.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme167/network/network.c b/c/src/lib/libbsp/m68k/mvme167/network/network.c index 8ab46e8ee9..e3d7abb278 100644 --- a/c/src/lib/libbsp/m68k/mvme167/network/network.c +++ b/c/src/lib/libbsp/m68k/mvme167/network/network.c @@ -49,7 +49,6 @@ #define START_TRANSMIT_EVENT RTEMS_EVENT_2 #define NIC_RESET_EVENT RTEMS_EVENT_3 - #include <bsp.h> #include <stdio.h> #include <string.h> @@ -120,7 +119,6 @@ char uti596initSetup[] = { 0x3f /* Byte 13: no multi IA, backoff enabled */ }; - /* Local Routines */ static unsigned long word_swap ( unsigned long ); @@ -155,7 +153,6 @@ static void uti596_append ( i596_rfd ** , i596_rfd * ); static void uti596_supplyFD ( i596_rfd * ); static void send_packet ( struct ifnet *, struct mbuf * ); - /* Required RTEMS network driver functions and tasks (plus reset daemon) */ static void uti596_start ( struct ifnet * ); @@ -178,8 +175,6 @@ static void print_pkt ( unsigned char * ); static void print_echo ( unsigned char * ); #endif - - /* * word_swap * @@ -200,7 +195,6 @@ static unsigned long word_swap( return (((val >> 16)&(0x0000ffff)) | ((val << 16)&(0xffff0000))); } - /* * malloc_16byte_aligned * @@ -236,7 +230,6 @@ static void * malloc_16byte_aligned( return *adjusted_pointer; } - /* * uti596_scp_alloc * @@ -273,7 +266,6 @@ static i596_scp * uti596_scp_alloc( return sc->pScp; } - /* * uti596_writePortFunction * @@ -298,7 +290,6 @@ RTEMS_INLINE_ROUTINE void uti596_writePortFunction( i82596->port_upper = (unsigned short)(((unsigned long)addr >> 16 ) & 0xFFFF); } - /* * uti596_portReset * @@ -315,7 +306,6 @@ RTEMS_INLINE_ROUTINE void uti596_portReset( void ) uti596_writePortFunction( NULL, UTI596_RESET_PORT_FUNCTION ); } - /* currently unused by RTEMS */ #if 0 /* @@ -370,7 +360,6 @@ static unsigned long uti596_portSelfTest( } #endif - /* currently unused by RTEMS */ #if 0 /* @@ -423,7 +412,6 @@ static int uti596_portDump( } #endif - /* * uti596_wait * @@ -458,7 +446,6 @@ static int uti596_wait( case UTI596_NO_WAIT: return 0; - case UTI596_WAIT_FOR_CU_ACCEPT: do { if (sc->scb.command == 0) @@ -521,7 +508,6 @@ static int uti596_wait( return -1; } - /* * uti596_issueCA * @@ -550,7 +536,6 @@ static int uti596_issueCA( return (uti596_wait ( sc, waitType )); } - /* * uti596_addCmd * @@ -604,7 +589,6 @@ static void uti596_addCmd( #endif } - /* * uti596_addPolledCmd * @@ -648,7 +632,6 @@ void uti596_addPolledCmd( #endif } - /* currently unused by RTEMS */ #if 0 /* @@ -678,7 +661,6 @@ static void uti596_CU_dump ( i596_dump_result * drp) } #endif - /* * uti596_dump_scb * @@ -707,7 +689,6 @@ static void uti596_dump_scb ( void ) printk(("t_off 0x%x\n",uti596_softc.scb.t_off)) } - /* * uti596_setScpAndScb * @@ -740,7 +721,6 @@ static int uti596_setScpAndScb( return ( uti596_issueCA ( sc, UTI596_WAIT_FOR_INITIALIZATION ) ); } - /* * uti596_diagnose * @@ -768,7 +748,6 @@ static int uti596_diagnose( void ) #endif } - /* * uti596_configure * @@ -796,7 +775,6 @@ static int uti596_configure ( return ( uti596_wait ( sc, UTI596_WAIT_FOR_STAT_C ) ); } - /* * uti596_IAsetup * @@ -829,7 +807,6 @@ static int uti596_IAsetup ( return ( uti596_wait ( sc, UTI596_WAIT_FOR_STAT_C ) ); } - /* * uti596_initTBD * @@ -877,7 +854,6 @@ static int uti596_initTBD ( uti596_softc_ * sc ) return 0; } - /* * uti596_initRFA * @@ -961,7 +937,6 @@ static int uti596_initRFA( int num ) return (i); /* the number of allocated buffers */ } - /* * uti596_initMem * @@ -1075,7 +1050,6 @@ void uti596_initialize( sc->scb.command = 0; } - /* * uti596_initialize_hardware * @@ -1125,7 +1099,6 @@ void uti596_initialize_hardware( #endif } - /* * uti596_reset_hardware * @@ -1175,7 +1148,6 @@ void uti596_reset_hardware( #endif } - /* * uti596_clearListStatus * @@ -1198,7 +1170,6 @@ void uti596_clearListStatus( } } - /* * uti596_reset * @@ -1241,7 +1212,6 @@ void uti596_reset( void ) sc->pCmdHead = sc->pCmdTail = sc->scb.pCmd = I596_NULL; - /* restore the RFA */ if ( sc->pLastUnkRFD != I596_NULL ) { @@ -1278,7 +1248,6 @@ void uti596_reset( void ) #endif } - /* * uti596_dequeue * @@ -1319,7 +1288,6 @@ i596_rfd * uti596_dequeue( return pRfd; } - /* * uti596_append * @@ -1367,7 +1335,6 @@ void uti596_append( } } - /* * uti596_supplyFD * @@ -1503,7 +1470,6 @@ void uti596_supplyFD ( } } - /* * send_packet * @@ -1645,7 +1611,6 @@ void send_packet( } } - /*********************************************************************** * Function: uti596_attach * @@ -1934,8 +1899,6 @@ void uti596_init( i82596->chan_attn = 0x00000000; } - - /*********************************************************************** * Function: void uti596_txDaemon * @@ -2124,7 +2087,6 @@ void uti596_txDaemon( #endif } - /*********************************************************************** * Function: void uti596_resetDaemon * @@ -2158,7 +2120,6 @@ void uti596_resetDaemon( } } - /*********************************************************************** * Function: uti596_DynamicInterruptHandler * @@ -2209,7 +2170,6 @@ void uti596_resetDaemon( uti596_softc.nic_reset = 1; } - if ( (scbStatus & SCB_STAT_CX) && !(scbStatus & SCB_STAT_CNA) ) { printk(("\n*****ERROR: Command Complete, and CNA available: 0x%x\nResetting...", scbStatus)) uti596_softc.nic_reset = 1; @@ -2325,7 +2285,6 @@ void uti596_resetDaemon( } } /* end if ( scbStatus & SCB_STAT_FR ) */ - /* * Command Unit Control * a command is completed @@ -2474,7 +2433,6 @@ void uti596_resetDaemon( } } /* end if command complete */ - /* * If the receiver has stopped, * check if this is a No Resources scenario, @@ -2607,7 +2565,6 @@ void uti596_resetDaemon( #endif count_rx=0; - /* Do this last, to ensure that the reset is called at the right time. */ if ( uti596_softc.nic_reset ) { uti596_softc.nic_reset = 0; @@ -2618,7 +2575,6 @@ void uti596_resetDaemon( return; } - /*********************************************************************** * Function: uti596_ioctl * @@ -2688,7 +2644,6 @@ static int uti596_ioctl( return error; } - /*********************************************************************** * Function: uti596_stats * @@ -2739,9 +2694,6 @@ void uti596_stats( #endif } - - - /************************ PACKET DEBUG ROUTINES ************************/ #ifdef DBG_PACKETS @@ -2781,7 +2733,6 @@ static void dumpQ( void ) } } - /* * show_buffers * @@ -2825,7 +2776,6 @@ static void show_buffers (void) printk(("\nUnknown: %p\n",uti596_softc.pLastUnkRFD)) } - /* * show_queues * @@ -2861,7 +2811,6 @@ static void show_queues(void) printk(("uti596_softc.pEndRFA: %p\n",uti596_softc.pEndRFA)) } - /* * print_eth * @@ -2924,7 +2873,6 @@ static void print_eth( printk (("%u\n", add[41])) } - if ( add[12] == 0x08 && add[13] == 0x00 ) { /* an IP packet */ printk (("*********************IP HEADER******************\n")) @@ -2950,7 +2898,6 @@ static void print_eth( } } - /* * print_hdr * @@ -2979,7 +2926,6 @@ static void print_hdr( printk (("print_hdr: completed")) } - /* * Function: print_pkt * @@ -3065,7 +3011,6 @@ static void print_pkt( } } - /* * print_echo * |