Changeset c9c67390 in rtems for c/src/libchip/network/sonic.h


Ignore:
Timestamp:
Feb 5, 1999, 12:34:17 AM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b7111263
Parents:
b5e4eb7
Message:

Split SONIC chip into appropriate files for libchip'ing. The portable
portion is now in the libchip tree and the dmv177 configuration is in
the dmv177 bsp. The performance impact of libchip'ing this driver
was minimal.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/sonic.h

    rb5e4eb7 rc9c67390  
    11/*
    2  ******************************************************************.
    3  *******************************************************************
    4  **                                                               **
    5  **           DECLARATIONS FOR NATIONAL DP83932 `SONIC'           **
    6  **         SYSTEMS-ORIENTED NETWORK INTERFACE CONTROLLER         **
    7  **                                                               **
    8  *******************************************************************
    9  *******************************************************************
    10  */
    11 
    12 /*
    13  * $Revision$   $Date$   $Author$
    14  * $State$
    15  * $Id$
     2 *       RTEMS NETWORK DRIVER FOR NATIONAL DP83932 `SONIC'
     3 *         SYSTEMS-ORIENTED NETWORK INTERFACE CONTROLLER
     4 *
     5 *                REUSABLE CHIP DRIVER CONFIGURATION
     6 *
     7 * References:
     8 *
     9 *  1) DP83932C-20/25/33 MHz SONIC(TM) Systems-Oriented Network Interface
     10 *     Controller data sheet.  TL/F/10492, RRD-B30M105, National Semiconductor,
     11 *     1995.
     12 *
     13 *  2) Software Driver Programmer's Guide for the DP83932 SONIC(TM),
     14 *     Application Note 746, Wesley Lee and Mike Lui, TL/F/11140,
     15 *     RRD-B30M75, National Semiconductor, March, 1991.
     16 *
     17 *  COPYRIGHT (c) 1989-1997.
     18 *  On-Line Applications Research Corporation (OAR).
     19 *  Copyright assigned to U.S. Government, 1994.
     20 *
     21 *  The license and distribution terms for this file may be
     22 *  found in the file LICENSE in this distribution or at
     23 *  http://www.OARcorp.com/rtems/license.html.
     24 *
     25 *  $Id$
    1626 */
    1727
     
    1929#define _SONIC_DP83932_
    2030
    21 #include <bsp.h>
     31/*
     32 *  Configuration Information
     33 */
     34
     35typedef void (*sonic_write_register_t)(
     36  void       *base,
     37  unsigned32  regno,
     38  unsigned32  value
     39);
     40
     41typedef unsigned32 (*sonic_read_register_t)(
     42  void       *base,
     43  unsigned32  regno
     44);
     45
     46typedef struct {
     47  unsigned32              base_address;
     48  unsigned32              vector;
     49  unsigned32              dcr_value;
     50  unsigned32              dc2_value;
     51  unsigned32              tda_count;
     52  unsigned32              rda_count;
     53  sonic_write_register_t  write_register;
     54  sonic_read_register_t   read_register;
     55} sonic_configuration_t;
    2256
    2357/*
     
    371405#define RDA_FREE            0xFFFF  /* SONIC can use it */
    372406 
     407/*
     408 *  Attatch routine
     409 */
     410
     411int rtems_sonic_driver_attach (
     412  struct rtems_bsdnet_ifconfig *config,
     413  sonic_configuration_t *chip
     414);
     415
    373416#endif /* _SONIC_DP83932_ */
Note: See TracChangeset for help on using the changeset viewer.