Changeset fe52766e in rtems


Ignore:
Timestamp:
Jun 16, 1998, 7:06:35 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ecc9737f
Parents:
8bf6095
Message:

Corrected compilation problems.

Location:
c/src/lib/libbsp/powerpc/dmv177/css_iface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/dmv177/css_iface/Makefile.in

    r8bf6095 rfe52766e  
    1212
    1313# C source names, if any, go here -- minus the .c
    14 C_PIECES=
     14C_PIECES=css_iface
    1515C_FILES=$(C_PIECES:%=%.c)
    1616C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
     
    3333#
    3434
    35 DEFINES  +=
     35DEFINES  += -I $(srcdir)/../include/dy4_supplied
    3636CPPFLAGS +=
    3737CFLAGS   +=
  • c/src/lib/libbsp/powerpc/dmv177/css_iface/css_iface.c

    r8bf6095 rfe52766e  
     1#include <bsp.h>
    12#include <Css.h>
     3#include <dmv170.h>
     4#include <assert.h>
     5
     6css_jump_table_struct         *W_Css_jump_table;
     7#define JUMP_TABLE_ADDRESS   ((void **) 0xf0f030a0)
     8
     9void Init_Css()
     10{
     11  W_Css_jump_table = *JUMP_TABLE_ADDRESS;
     12}
    213
    314rtems_unsigned32 Css_Id(
     
    516)
    617{
    7   rtems_unsigned32 id;
     18  rtems_unsigned32 id = 0;
    819
    920  switch ( vector ) {
    1021    case DMV170_DUART_IRQ:
    11     case DMV170_ETHERNET_IRQ:
    12     case DMV170_SCSI_IRQ:
    13     case DMV170_SCC_IRQ:
    1422      id = CSS_DARF_INT;
    1523      break;
    1624
    17     case DMV170_MEZZANINE_IRQ:
     25    case DMV170_MEZZANINE_IRQ_0:
    1826      id = CSS_MAXPACK_INT;
    1927      break;
     
    4351)
    4452{
    45   rtems_vector_number vector;
     53  rtems_vector_number vector = 0;
    4654
    4755  switch ( id ) {
     
    7785      break;
    7886    case CSS_MAXPACK_INT:
    79       vector = DMV170_MEZZANINE_IRQ_0;assert(0);
     87      assert(0);
    8088      break;
    8189    case CSS_SCV_VME_INT:
    82       vector = DMV170_MEZZANINE_IRQ_1;assert(0);
     90      assert(0);
    8391      break;
    8492    case CSS_RTC_INT:
     
    97105  Id = Css_Id(vector);
    98106
    99   Enable_int(Id);
     107  Enable_int(Id, TRUE);
    100108}
    101109
    102110rtems_vector_number Get_interrupt()
    103111{
    104   rtems_vector_number vector;
     112  rtems_vector_number vector = 0;
    105113  rtems_unsigned32    id;
    106114
     
    130138  }
    131139  else if ( Get_int_status( CSS_SCV_VME_INT) ) {
    132     vector = DMV170_MEZZANINE_IRQ_1;
     140    vector = DMV170_MEZZANINE_IRQ_0;
    133141    assert(0);
    134142  }
Note: See TracChangeset for help on using the changeset viewer.