Ignore:
Timestamp:
12/20/95 15:39:19 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c64e4ed4
Parents:
4442d21c
Message:

changes remerged after lost in disk crash -- recovered from snapshot, partially recovered working tree, etc

Location:
c/src/lib/libbsp/powerpc/papyrus/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/papyrus/include/bsp.h

    r4442d21c r5c491aef  
    33 *  This include file contains all Papyrus board IO definitions.
    44 *
    5  *  Author:     Andrew Bray <andy@i-cubed.demon.co.uk>
     5 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
    66 *
    77 *  COPYRIGHT (c) 1995 by i-cubed ltd.
     
    4545#include <rtems.h>
    4646#include <console.h>
     47#include <clockdrv.h>
     48#include <console.h>
     49#include <iosupp.h>
    4750
    4851/*
     
    5659#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
    5760#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
     61
    5862
    5963/*
     
    7983  { \
    8084    unsigned32 start, ticks, now; \
    81     asm volatile ("mftblo %0" : "=r" (start)); \
     85    asm volatile ("mfspr %0, 0x3dd" : "=r" (start)); /* TBLO */ \
    8286    ticks = (microseconds) * Cpu_table.clicks_per_usec; \
    8387    do \
    84       asm volatile ("mftblo %0" : "=r" (now)); \
     88      asm volatile ("mfspr %0, 0x3dd" : "=r" (now)); /* TBLO */ \
    8589    while (now - start < ticks); \
    8690  }
     91
    8792
    8893/* Constants */
     
    9095#define RAM_START 0
    9196#define RAM_END   0x00200000
     97
     98
     99/* Some useful LED debugging bits */
     100/* LED numbers are from 0-2 */
     101#define __led_base      ((volatile int *)0x7F200000)
     102
     103/* Turn a LED on */
     104#define led_on(n)       (__led_base[n] = 0)
     105
     106/* Turn a LED off */
     107#define led_off(n)      (__led_base[n] = 1)
    92108
    93109/* miscellaneous stuff assumed to exist */
     
    99115 *  Device Driver Table Entries
    100116 */
    101 
     117 
    102118/*
    103119 * NOTE: Use the standard Console driver entry
     
    107123 * NOTE: Use the standard Clock driver entry
    108124 */
    109 
     125 
    110126/*
    111127 * How many libio files we want
    112128 */
    113 
     129 
    114130#define BSP_LIBIO_MAX_FDS       20
    115131
    116132/* functions */
    117133
    118 void bsp_start( void );
     134int bsp_start(
     135  int   argc,
     136  char **argv,
     137  char **environp
     138);
     139
    119140void bsp_cleanup( void );
    120141
  • c/src/lib/libbsp/powerpc/papyrus/include/coverhd.h

    r4442d21c r5c491aef  
    2727
    2828/*
    29  *  Updated for a 25MHz Papyrus by Andrew Bray <andy@i-cubed.demon.co.uk>
     29 *  Updated for a 25MHz Papyrus by Andrew Bray <andy@i-cubed.co.uk>
    3030 *
    3131 *  Units are 100ns.
Note: See TracChangeset for help on using the changeset viewer.